Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-656

New SOAP/JAB marshaling doesn't include top class element in xml document

    XMLWordPrintable

Details

    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>
      

      Attachments

        Activity

          People

            cibsen@redhat.com Claus Ibsen
            rhn-support-qluo Joe Luo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: