java调用.net webservice出现错误-服务器未能识别 HTTP 标头 SOAPAction 的值

解决对策:
给.NET的WebService类(即.asmx文件下的类)添加属性[SoapDocumentService(RoutingStyle=SoapServiceRoutingStyle.RequestElement)]

另外,需要注意的是:

1,命名空间一定要一致

2,必须确保两种web service的soap 包格式相同.

猜你喜欢

转载自javavsnet.iteye.com/blog/1591730