用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
搞定