Announcement Announcement Module
Collapse
No announcement yet.
Convert Soap message to Java object Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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, 10:49 PM.

    Comment


    • #3
      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

      Comment

      Working...
      X