locked
SoapExtension - Match response with request RRS feed

  • Question

  • Given a SoapExtension, I am assuming the messages coming thru the ProcessMessage() method can be synchronous; meaning on the server side, multiple requests could come thru ProcessMessage() prior to a response being returned to the client and/or the responses will not necessarily come back in the same order the requests came in.  Is that a true statement?

    Given that statement is true, I need to be able to match a response with the processing state of the request (e.g. processing state of request is determined during SoapMessageStage.AfterDeserialize).  Based on that processing state, I need to do something with the response during SoapMessageStage.BeforeSerialize.

    How to do the type of match-back?

    Wednesday, December 12, 2012 11:08 PM

All replies


  • Briefly, look at GetInitializer(Type) and GetInitializer(LogicalMethodInfo, SoapExtensionAttribute), as well as Initialize.

    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects

    Thursday, December 13, 2012 12:22 AM
    Moderator
  • Not sure what you are getting at...  I have looked at these methods for initialization, but not seeing the answer to the question.  Are you saying, each request-response will be proceeded by an initialization() call (e.g. initialize(), request.., response.., initialize(), request, response, XEndOfStreamX).  

    If so, sounds like I'm good, I should be able to save off the processing state of the request as a member variable of my SoapExtension class.

    Thursday, December 13, 2012 12:40 AM