camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: cxf-core 3.1.7 Validation issue with camel
Date Tue, 20 Sep 2016 05:31:41 GMT
Can you show us the camel route?
It looks like you are trying to send a XML message to the CXF server.
We need to find out where the exception is thrown.

--  
Willem Jiang


Blog: http://willemjiang.blogspot.com (English)  
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On September 20, 2016 at 3:26:38 AM, sari.reach (sari.reach@gmail.com) wrote:
> cxf-core 3.1.7 is not validating the xml with xsd at appropriate location
>  
> Exception says: Could not generate the XML stream caused by:
> org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of
> element 'ATT_CheckRS'..
>  
> 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 "> 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\">"
> +""
> +""
> +""
> +""
> +""
> +""
> +"> Status=\"\" Type=\"4\"/>"
> +""
> +"";
>  
>  
>  
> }
> }
>  
>  
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/cxf-core-3-1-7-Validation-issue-with-camel-tp5787728.html
 
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  


Mime
View raw message