locked
Error when using WSDL tool RRS feed

  • Question

  • User-2074002914 posted
    I'm using a C# console application which make a calls to a Web Service. I'm using WSDL tool to generate Client Code. When WSDL runs, following error occurs: WSDL: error WSDL1: There was an error processing 'http://999.99.99.999:8080/webApp/WSDemo?WSDL'. There was an error downloading 'http://xxx.xx.xx.xxx:8080/webApp/WSDemo?WSDL'. The request failed with HTTP status 407: Proxy Authentication Required. If you would like more help, please type "wsdl /?". I don't know why this error occurs, Web Service server and client host are located on same Local Area Network. No proxies are required between Server and client host. I appreciate some help. Best Regards
    Thursday, July 15, 2004 3:44 PM

All replies

  • User1412851440 posted

    Daniel,

    Even i had the same issue. Even thou it does require proxy for intranet, you have to explicitly specify the credentials it.

     Here the code, this worked out for me

    DFMMarketData.MarketData obj = new CurrencyConverter.DFMMarketData.MarketData();            WebProxy objWeb = new WebProxy("http://proxy:80",true);

    obj.Proxy = objWeb;
    obj.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;   

    or else you can specify the  default Credentials

    DFMMarketData.MarketData obj = new CurrencyConverter.DFMMarketData.MarketData();              obj.Proxy = System.Net.WebProxy.GetDefaultProxy();
    obj.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

     

    Sunday, February 15, 2009 5:10 AM
  • User1412851440 posted

    Daniel,

    Even i had the same issue. Even thou it does not require proxy for intranet, you have to explicitly specify the credentials it.

     Here the code, this worked out for me

     

     
    DFMMarketData.MarketData obj = new CurrencyConverter.DFMMarketData.MarketData();            
    WebProxy objWeb = new WebProxy("http://proxy:80",true);
    obj.Proxy = objWeb;
    obj.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
     

     

    or else you can specify the  default Credentials

     

    DFMMarketData.MarketData obj = new CurrencyConverter.DFMMarketData.MarketData();             
    obj.Proxy = System.Net.WebProxy.GetDefaultProxy();
    obj.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
     

    Hope this works out

    Thanks

    Prabhu

     

    Sunday, February 15, 2009 5:11 AM
  • User-1094143783 posted

    sometimes u have to change ur code. the message part-names should not the same ;)

    <wsdl:message name="AnfrageRisikoAnfrageL"> <wsdl:part name="parameters" element="his1_0:typeIn"/> </wsdl:message> <wsdl:message name="AnfrageRisikoAntwortL"> <wsdl:part name="parameters" element="his1_0:typeOut"/> </wsdl:message>

    to this:

    <wsdl:message name="AnfrageRisikoAnfrageL"> <wsdl:part name="in" element="his1_0:typeIn"/> </wsdl:message> <wsdl:message name="AnfrageRisikoAntwortL"> <wsdl:part name="out" element="his1_0:typeOut"/> </wsdl:message>
    Sunday, April 21, 2013 4:12 PM