Java调net WSDL 报文头转换错误

来源:互联网 发布:新开淘宝店铺装修 编辑:程序博客网 时间:2024/06/05 17:37

对方提供:

<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>

    <ns1:corpBinding soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"

xmlns:ns1="http://eaaapi.eaa.eidc.huawei.com">

      <msg xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

协议数据单元PDU</msg>

    </ns1:corpBinding>

  </soapenv:Body>

 

 

POST /SIService.asmx HTTP/1.1Host: localhostContent-Type: application/soap+xml; charset=utf-8Content-Length: length<?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">  <soap12:Body>    <corpBinding xmlns="http://ap.eidc.huawei.com/">      <msg>string</msg>    </corpBinding>  </soap12:Body></soap12:Envelope>
HTTP/1.1 200 OKContent-Type: application/soap+xml; charset=utf-8Content-Length: length<?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">  <soap12:Body>    <corpBindingResponse xmlns="http://ap.eidc.huawei.com/">      <corpBindingResult>string</corpBindingResult>    </corpBindingResponse>  </soap12:Body></soap12:Envelope>

就只提示错误:报文头转换错误

那位大侠请帮帮忙啊。

原创粉丝点击