Details
-
Bug
-
Resolution: Done
-
Major
-
2.9.0-fuse-00-00
-
None
-
None
Description
When I re-marshal the message, the object is lost. It's contents are set to the body.
<camelContext trace="false" id="blueprintContext" xmlns="http://camel.apache.org/schema/blueprint"> <route id="SoapToJaxB"> <from uri="file://input"/> <unmarshal> <soapjaxb version="1.2" contextPath="org.mycompany.test"/> </unmarshal> <log loggingLevel="INFO" message="${body}"/> <marshal> <soapjaxb version="1.2" encoding="UTF-8" contextPath="org.mycompany.test"/> </marshal> <log loggingLevel="INFO" message="${body}"/> <to uri="activemq:queue:notifications?jmsMessageType=Text"/> </route> </camelContext>
it goes from this message
<CaseNotification schemaVersion="3:3" messageProducedDateTime="2012-08-31T05:39:54-05:00" xmlns="http://www.mycompany.org/test"> <NotificationAdminHeader caseNumberKey="27CR0855607" caseKey="3720845"> <CourtFileNumber> <ID>27-CR-08-55607</ID> </CourtFileNumber>....
To this message:
<Envelope xmlns="http://www.w3.org/2003/05/soap-envelope" xmlns:ns2="http://www.mycompany.org/test"> <Body> <ns2: schemaVersion="3:3" messageProducedDateTime="2012-08-31T05:44:23-05:00"> <ns2:NotificationAdminHeader caseNumberKey="27CR091720" caseKey="4047488"> <ns2:CourtFileNumber> <ns2:ID>27-CR-09-1720</ns2:ID> </ns2:CourtFileNumber> <ns2:CaseCountyNumber>27</ns2:CaseCountyNumber>
These are not the same messages as the top level element <CaseNotification> was gone disappeared. Instead, the message should be something like:
<Envelope xmlns="http://www.w3.org/2003/05/soap-envelope" xmlns:ns2="http://www.mycompany.org/test"> <Body> <ns2:CaseNotification schemaVersion="3:3" messageProducedDateTime="2012-08-31T05:44:23-05:00"> <ns2:NotificationAdminHeader caseNumberKey="27CR091720" caseKey="4047488"> <ns2:CourtFileNumber> <ns2:ID>27-CR-09-1720</ns2:ID> </ns2:CourtFileNumber> <ns2:CaseCountyNumber>27</ns2:CaseCountyNumber>