非标准Soap消息[高手请进]
老java系统现在要更换短信接口.接口为axis-webservice.现使用.net开发新webservice.发现soap消息.net解析不了.
报头:
<HTTPHeaders>
<content-type>text/xml; charset=utf-8</content-type>
<accept>application/soap+xml, application/dime, multipart/related, text/*</accept>
<user-agent>Axis/1.3</user-agent>
<host>222.186.51.56:803</host>
<cache-control>no-cache</cache-control>
<pragma>no-cache</pragma>
<soapaction>""</soapaction>
<content-length>965</content-length>
</HTTPHeaders>
<?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<send soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<khbh xsi:type="xsd:string">100197&0</khbh>
<khmm xsi:type="xsd:string">14f94b25ad651459d5bf88f670abd340</khmm>
<tms xsi:type="xsd:string">1334231887354</tms>
<mobile xsi:type="xsd:string">15154993410</mobile>
<content xsi:type="xsd:string">尊敬的hyxm您好!本次机票返冲扣除积分bdjf,总可用积分kyjf,感谢您对我司的支持。</content>
<plan_time xsi:type="xsd:string">2012-04-11 21:20:00</plan_time>
<khsmsid xsi:type="xsd:string">6345105</khsmsid>
</send>
</soapenv:Body>
</soapenv:Envelope>
<?xml version="1.0" encoding="utf-8" ?>
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <soap:Body>
- <soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>System.Web.Services.Protocols.SoapException: 无法识别请求元素 <send xmlns=''>。 在 System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() 在 System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message) 在 System.Web.Services.Protocols.SoapServerProtocol.Initialize() 在 System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>