Please accept this request On Mon, Sep 19, 2016 at 11:01 PM, sari.reach [via Camel] < ml-node+s465427n5787728...@n5.nabble.com> wrote:
> cxf-core 3.1.7 is not validating the xml with xsd at appropriate location > > Exception says: <faultstring>Could not generate the XML stream caused by: > org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of > element 'ATT_CheckRS'..</faultstring> > > Sample code is as below > > import org.apache.camel.Exchange; > import org.apache.camel.Message; > import org.apache.camel.Processor; > > public class TestProcess implements Processor { > > public void process(Exchange exchange) throws Exception { > Message message = exchange.getOut(); > > message.setBody( bindMessage()); > exchange.setOut(message); > //java.lang.System.out.println("MIP of Http Endpoint is " + > message); > java.lang.System.out.println("NEW MIP of Http Endpoint is " > + exchange.getPattern()); > > } > > > private String bindMessage(){ > return "<ATT_CheckRS > TimeStamp=\"2016-03-08T07:01:30.175Z\" > Version=\"1.003\" TransactionIdentifier=\"\" PrimaryLangID=\"ENG\" > xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\" > http://www.travel.org/ABC/2003/05\">" > +"<POS>" > +"<Source PseudoCityCode=\"\" ISOCurrency=\"\">" > +"<RequestorID Type=\"05\"/>" > +"</Source>" > +"</POS>" > +"<Errors xmlns=\"\">" > +"<Error Code=\"320\" Language=\"en_US\" ShortText=\"Invalid value\" > Status=\"\" Type=\"4\"/>" > +"</Errors>" > +"</ATT_CheckRS>"; > > > > } > } > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/cxf-core-3-1-7-Validation- > issue-with-camel-tp5787728.html > To start a new topic under Camel - Users, email > ml-node+s465427n465428...@n5.nabble.com > To unsubscribe from Camel - Users, click here > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c2FyaS5yZWFjaEBnbWFpbC5jb218NDY1NDI4fDE2ODE4MDY5NDU=> > . > NAML > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://camel.465427.n5.nabble.com/cxf-core-3-1-7-Validation-issue-with-camel-tp5787728p5787729.html Sent from the Camel - Users mailing list archive at Nabble.com.