JAVA调用.NET的webservice异常服务器未能识别 HTTP头SOAPAction 的值

    xiaoxiao2021-08-28  84

    今天用JAVA调用.NET的webservice报异常服务器 未能识别 HTTP头SOAPAction 的值,检测没有发现程序有问题,访问别的webservice没有问题。

    后来经过测试发现,JAVA调用.NET的webservice,需要在webservice的头上加上 [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [SoapDocumentService(RoutingStyle = SoapServiceRoutingStyle.RequestElement)] 这两句代码

    转载请注明原文地址: https://ju.6miu.com/read-677272.html

    最新回复(0)