开发者

Asmx webservice IP Address change issue due to hosting in internet

开发者 https://www.devze.com 2023-01-12 04:58 出处:网络
I have a asmx webservice which is accessed from office intranet. I could consume through my flex app with the local IP Address of the hosted system. When that particular system was exposed to the inte

I have a asmx webservice which is accessed from office intranet. I could consume through my flex app with the local IP Address of the hosted system. When that particular system was exposed to the internet, the external IP got changed. Now If I use the same flex app using ex开发者_如何学Goposed URL, the wsdl is not getting loaded. Reason being the WSDL is accessed using the outbound IP and the request was trying to route to the intranet IP. The Intranet IP being not exposed, gives a webservice load error.


This is why you should always use a named route and not an IP address.

you should use something like webservices.your_domain.com

When you are in development, you edit you hosts file so that this address will be routed to the local IP, when you are in production the DNS will route to the real URL.

Never, Never use an IP, this is not best case, and you can have many errors with it.

0

精彩评论

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