开发者

Considerations for using auto generated proxies for web services (Advantages and Disadvantages)

开发者 https://www.devze.com 2023-03-07 16:38 出处:网络
We are using a lot of manual code in .net (through HttpWebRequest) to access some web services. I was reading we do not need to do this as we can easily generate proxies. Has anyone converted from man

We are using a lot of manual code in .net (through HttpWebRequest) to access some web services. I was reading we do not need to do this as we can easily generate proxies. Has anyone converted from manual to auto-generated services. We do need to use some customized settings like UseProxyServer based on config settings and client certificates.

What are the considerations I need t开发者_高级运维o take care of? Any helpful link is really appreciated.

Update (as pointed by John Saunders): Our web services are using WS-Security and hence the need to pass UsernameToken.


Anything you would have set "manually" can be set on the proxy class. You should use the proxy unless you have a specific reason not to. It will save you a great deal of time that you could spend solving other problems.

0

精彩评论

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