1 Reply Latest reply on Sep 9, 2011 6:04 AM by mageshbk

    SOAPProcessor how to marshal response message from a further action.

    justinwyer

      Hi I am exposing legacy API's via a SOAP service. The service is accepting requests and responsing correctly.

       

      What I would like to do now is use SOAPProcessor.setMessage(message) to set the message on the ESB to be processed by a further action and then based on the message as set by that further action generate the SOAP response.

       

      My question is should I manually marshal the ESB message to the SOAP response or is there a better way to do this ?

        • 1. Re: SOAPProcessor how to marshal response message from a further action.
          mageshbk

          When you say exposing are you doing like the way publish_as_webservice quickstart is doing? SOAPProcessor.setMessage will no longer be available in the next release. What is the need for you to set the ESB message? Do you want to look at the SOAP request down the pipeline? If that is the case you can add an action prior to your main action and copy the body from the default location to some other location and the actions down the pipeline can see the request intact from that location. Will this work?