Results 1 to 3 of 3

Thread: Convert Soap message to Java object

  1. #1

    Default Convert Soap message to Java object

    I will receive a soap message from MQ.I want to convert it in a java object which will contain two properties storeId and correlationId.Than i will put this object on a spring integration output channel.Could you please provide me any help do i need to create custom tranformer to create this java object or there already exist some thing in spring integration itself.It i need to create custome than how

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wal="http://abc.dbs.com">
    <soapenv:Header/>
    <soapenv:Body>
    <wal:PutStoreIdsInMsgQue>
    <MsgQueName>
    <storeIds>5945</storeIds>
    <correlationId>ECOMM_09132011</correlationId>
    </MsgQueName>
    </wal:PutStoreIdsInMsgQue>
    </soapenv:Body>
    </soapenv:Envelope>

  2. #2

    Default

    i also want to route bases on the value in soap header.Is it possible that router can read soap header.Can you please help me out on this as i will get some value in soap header and then i will route.I know how to route based on header in Message object but not soap header.
    Last edited by resolve123; Sep 14th, 2011 at 10:49 PM.

  3. #3
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    You can write your own transformer and configure it via <transformer> element or you can use one of the Marshallers provided by spring. Look at the hierarchy of org.springframework.oxm.Marshaller

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •