服务器未能识别 HTTP 标头 SOAPAction 的值

来源:互联网 发布:网络贷款不还会怎么样 编辑:程序博客网 时间:2024/05/01 17:00


用Java axis1.x 调用.net编写的webservice 出现 服务器未能识别 HTTP 标头 SOAPAction 的值 这个错误。


解决方法很简单:在浏览器中输入webservice地址:如 http://192.168.130.105:8013/Service.asmx?wsdl,

然后ctrl+f搜索:SOAPAction

搜索到到<soap:operation soapAction="http://tempuri.org/asdfasdf" style="document"/>

然后把soapAction里面的URL复制

到Java里面

设置下面两个属性:

call.setUseSOAPAction(true);
call.setSOAPActionURI("http://tempuri.org/asdfasdf");


ok

搞定


原创粉丝点击