none
Consume Third Party Service with out adding service reference and with out proxy RRS feed

  • Question

  • How many ways   can consume Third Party Web Service. 

    While  consuming the  Third Party  service  using HttpWebRequest.I am getting the error at below line.

     using (Stream stream = request.GetRequestStream())
                {
                    soapEnvelopeXml.Save(stream);
                }

    Exception:WebException was UnHndled.

    ErrorMessage:

    The remote server returned an error: (407) Proxy Authentication Required.

    How to resolve this issue or any other way can  consume third party Service.

    Thanks & Regards,

    Mohan


    MohanV

    Monday, August 22, 2016 5:13 AM

Answers

  • Hi MohanV,

    >> How many ways   can consume Third Party Web Service

    In my option, consuming web service is to send a request to web service. You could try HttpWebRequest, WebRequest or Ajax to send the request with URL.

    >> The remote server returned an error: (407) Proxy Authentication Required The remote server returned an error: (407) Proxy Authentication Required

    Based on this error message, it seems you need to provide proxy authentication. I think you could enable setting “bypass proxy server for local addresses” in IE, or disable automatic proxy detection at the request level by using a null Proxy with your request. You could refer the links below:

    # REST API question

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/20b03b9c-1965-4bea-8617-ff56b8cf1143/rest-api-question?forum=wcf

    # HttpWebRequest (REST API) question

    https://social.msdn.microsoft.com/Forums/en-US/036d0b30-7166-4e67-b833-0ac099cce78c/httpwebrequest-rest-api-question?forum=vbgeneral

    Since your service is a third party service, I suggest you connect the service developer for help. They know how the service implements, and how to call service with setting properties like request URL, parameters and etc.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Marked as answer by MohanV Monday, August 29, 2016 7:12 AM
    Monday, August 22, 2016 7:35 AM