我正在尝试连接到第三方SOAP Web服务。当HTTP SOAPAction标头为空字符串(“”)时,似乎该服务可以工作。这是WSDL的片段:设置SOAPAction HTTP标头时出现Axis2问题
<wsdl:binding name="detailsRequestMessage" type="tns:UssdPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="details">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
当你看到的soapAction = “”
我产生stubusing Axis2的(1.5)的WSDL2Java。
我希望得到以下(成功输出与运行了SoapUI时):
POST /details HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
User-Agent: Jakarta Commons-HttpClient/3.1
Host: some.host
Content-Length: 323
但,而不是我越来越:
POST /details HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://some.url/wsussd/ussdtypes/UssdPortType/detailsRequest"
User-Agent: Axis2
Host: some.host
Content-Length: 300
没有人有任何想法是什么问题或如何在程序中设置soapAction。
感谢, 罗南
我试过,没有运气。 做的事情是设置选项的属性。 谢谢 – rperez 2009-10-07 09:54:16