Hi ,

While invoking a web service from SOAP UI tool, came across this problem. I
am using Camel 2.9.1 with cxf 2.4.2.
I have exposed my CXF web service using WSDL first approach in PAYLOAD mode
as a camel route which consumes and message and do the further processing.

Input Request from SOAPUI:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:mus="http://mustservice.summit";>
   <soapenv:Header/>
   <soapenv:Body>
      <mus:Accept>
  <mus:MustProduct>
            
            <MustProductName>ss</MustProductName>
            
            <MustProductVersion>dd</MustProductVersion>
         </mus:MustProduct>
         <mus:MustTradeId>
            
            <TradeId>1</TradeId>
         </mus:MustTradeId>
</mus:Accept>
   </soapenv:Body>
</soapenv:Envelope>

Received in camel route :

Exchange[Message: 
  
            
            ss
            
            dd
         
         
            
            1
         
]

which cause below code to return "" .
CxfPayload<SOAPBody> requestPayload = inMessage.getBody(CxfPayload.class);
                        List<Element> inElements = requestPayload.getBody();
                        XmlConverter converter = new XmlConverter();
                        String documentString =
converter.toString(inElements.get(0).cloneNode(true), exchange);

May be i am something really weird here, but i seems to struck here as i
need request xml to pass it further.

Regards
Sachin



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-CXF-strips-all-the-xml-elemets-and-attributes-and-send-only-data-with-whitespace-tp5721973.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to