Friday, April 4, 2014

Proxy Authentication Required Problem When Proxy Class Genarating Using wsdl.exe


Problem: Proxy Authentication Required Problem When Proxy class genarating using wsdl.exe

Solution 1:
wsdl.exe  /proxyusername:username /proxypassword:password /proxydomain:domain /language:CS /namespace:testservice /out:D:\VISIUAL_STD_WSDL_ARTIFACTS/ClassName.cs /protocol:SOAP http://.......:80/TestService?wsdl

Solution 2:
download wsdl and relating schema files to a local folder (D:\TestServiceProxyClasses\) and update the preceding command as shown below:

wsdl.exe   /language:CS /namespace:testservice /out:D:\VISIUAL_STD_WSDL_ARTIFACTS/ClassName.cs /protocol:SOAP D:\TestServiceProxyClasses\TestService?wsdl