locked
SoapExtension - Match response with request RRS feed

  • Frage

  • 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?

    Mittwoch, 12. Dezember 2012 23:08

Alle Antworten


  • 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

    Donnerstag, 13. Dezember 2012 00:22
    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.

    Donnerstag, 13. Dezember 2012 00:40