Jump to content

Asynchronous access to synchronous webservice


Recommended Posts

I have a user that uses a tool called SonicMQ to send XML to my web service. The web service responds instantly and sends a response back to the client.

However, this particular user cannot tie up the response from the web service to the request he has made. This is a problem.

I've been looking into SOAP headers and thought it might be possible to create an optional 'MessageID' that he could pass in the header and then it could be returned in the response. Therefore allowing him to tie up both messages.

Question:

If I do this to my web method;

<WebMethod(), SoapHeader("MessageID", Direction:=SoapHeaderDirection.InOut, Required:=False)> _

Public Function MethodName(ByVal s As String) As String

Will it automatically include the 'MessageID' in the response if it is supplied? Or do I have to tell it to send it back?

Any help would be greatly appreciated.

Cheers,

Francis

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...