locked
Rest service invoking from BizTalk RRS feed

  • Question

  • Hi All,

    I am trying to invoke rest service from the BizTalk 2013,but getting below error.

    Please help me to solve the issue.

    Error details: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at https://webapi-internal-uat that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

       at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)

       at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

       --- End of inner exception stack trace ---

       at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)

       at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStreamAsyncResult.CompleteGetRequestStream(IAsyncResult result)

       --- End of inner exception stack trace ---


    Load Balence

    Friday, November 18, 2016 3:51 AM

Answers

  • Hi Santosh

    The error is clear-

    System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

    Basically, the https endpoint is rejecting the connection that BizTalk is making. Do you need a client certificate to make this call?

    Can you check if you can make the service call using some other tool like Fiddler or SOAP UI?


    Thanks Arindam

    Friday, November 18, 2016 6:04 AM
    Moderator

All replies

  • Hi Santosh,

    It is an issue with api not Biztalk

    The error suggest that the api that is supposed to be consumed by the Bitalk is not responding to BizTalk calls...

    Check if you are able to consume the service using SOAP UI

    Regards


    Mandar Dharmadhikari

    Friday, November 18, 2016 4:24 AM
    Moderator
  • Hi Santosh

    The error is clear-

    System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

    Basically, the https endpoint is rejecting the connection that BizTalk is making. Do you need a client certificate to make this call?

    Can you check if you can make the service call using some other tool like Fiddler or SOAP UI?


    Thanks Arindam

    Friday, November 18, 2016 6:04 AM
    Moderator
  • Hi, I think the URL is incomplete. I expect the service URL to be something like https://webapi-internal-uat/api/service.asmx. What URL did you configure on the send port? V.
    Friday, November 18, 2016 11:02 AM
  • Hi Santosh,

    Try browsing URL in Soap ui or Internet explorer if you are able to access and get request response from soap ui then things are good to start invoking service in BizTalk else figure out what all things you need to access service through soap ui.

    Regards,

    Sharad Verma

    Friday, November 18, 2016 11:18 AM