You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2017/03/22 20:00:44 UTC
[jira] [Resolved] (CXF-7063) cxf-core 3.1.7 is not validating the
xml with xsd
[ https://issues.apache.org/jira/browse/CXF-7063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-7063.
------------------------------
Resolution: Incomplete
Fix Version/s: Invalid
This needs a full test case. This is quite likely a camel-cxf issue and not a pure cxf issue.
> cxf-core 3.1.7 is not validating the xml with xsd
> -------------------------------------------------
>
> Key: CXF-7063
> URL: https://issues.apache.org/jira/browse/CXF-7063
> Project: CXF
> Issue Type: Bug
> Reporter: Saritha
> Priority: Blocker
> Fix For: Invalid
>
>
> 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>";
>
>
>
> }
> }
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)