Skip navigation links

Package org.openhubframework.openhub.core.common.ws.component

Standard Camel Spring WS component returns raw exception when invalid XML request occurs.

See: Description

Package org.openhubframework.openhub.core.common.ws.component Description

Standard Camel Spring WS component returns raw exception when invalid XML request occurs. We need to have possibility to add own error code constant and returns fault response.

Example:

     <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
        <SOAP-ENV:Header/>
        <SOAP-ENV:Body>
           <SOAP-ENV:Fault>
              <faultcode>SOAP-ENV:Server</faultcode>
              <faultstring xml:lang="en">E111: the request message is not valid XML (InvalidXmlException: 
 Could not parse XML; nested exception is org.xml.sax.SAXParseException: The element type "sub:ICCID" must be 
 terminated by the matching end-tag "</sub:ICCID>".)</faultstring>
           </SOAP-ENV:Fault>
        </SOAP-ENV:Body>
     </SOAP-ENV:Envelope>     
 
Skip navigation links

Copyright © 2018 Pivotal Software, Inc.. All rights reserved.