开发者

Web Service URL change is not recognized

开发者 https://www.devze.com 2022-12-28 00:58 出处:网络
I deployed in a production environment a .net solution that consumes a web service added as \"Service reference\" in visual studio.

I deployed in a production environment a .net solution that consumes a web service added as "Service reference" in visual studio.

Today the endpoint URL has changed, and I modified that URL in web.config. But when I run the solution I get 开发者_如何学JAVAthe error:

System.ServiceModel.FaultException: Server did not recognize the value of HTTP Header SOAPAction: http://93.62.150.200/LogEvent.

Now that sound strange to me. As you can see, the IP is 93.62.... but the new value is different.

The web.config entry (with the new value or the URL) is:

<client>
  <endpoint address="http://213.92.50.215/sawfc/WS_SAWFC_Int.asmx"
            binding="basicHttpBinding" bindingConfiguration="wsSAWFCInterfaceSoap"
            contract="it.datasphere.ws.wsSAWFCInterfaceSoap" name="wsSAWFCInterfaceSoap" />
</client>

I cannot reach the new web service from dev environment, so I cannot modify the Service reference there.

Any idea? Thanks a lot!


Just for the records: I discovered that the namespace of the web service that I was calling changed. The namespace used reflected the IP of the service, and when "on the other side" the IP changed, the developers changed also the namespace.

In this situation my service reference crashed, expecting the "old" namespace.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号