[
https://issues.apache.org/jira/browse/CXF-5595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13939561#comment-13939561
]
Daniel Kulp edited comment on CXF-5595 at 3/18/14 6:06 PM:
-----------------------------------------------------------
Can you provide the full SOAP message? Maybe a full test case?
& is not a valid character in XML except when used as an entity or within a
CDATA. If you need to transport an & across the wire, it needs to be fully
expanded to an entity ( & ) or placed within a CDATA section.
was (Author: dkulp):
Can you provide the full SOAP message? Maybe a full test case?
& is not a valid character in XML except when used as an entity or within a
CDATA. If you need to transport an & across the wire, it needs to be fully
expanded to an entity (&) or placed within a CDATA section.
> Getting UNMARSHAL_ERROR for CXF XML Beans databinding for '&' in SOAP request
> -----------------------------------------------------------------------------
>
> Key: CXF-5595
> URL: https://issues.apache.org/jira/browse/CXF-5595
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.6.1
> Environment: JBoss 7.1, CXF 2.6.1
> Reporter: Narayan
> Fix For: NeedMoreInfo
>
> Original Estimate: 120h
> Remaining Estimate: 120h
>
> I am using Apache CXF 2.6.1 to define jaxws:endpoint and using
> org.apache.cxf.xmlbeans.XmlBeansDataBinding databinding. The application is
> deployed on JBoss 7.1. When the incoming SOAP request contains '&' character
> in the data node, it throws following exception. If '&' character is not
> present, everything works fine.
> thrown exception, unwinding now | org.apache.cxf.interceptor.Fault:
> UNMARSHAL_ERROR
> at
> org.apache.cxf.xmlbeans.DataReaderImpl.doRead(DataReaderImpl.java:113)
> at org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:63)
> at org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:45)
> at
> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:200)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
--
This message was sent by Atlassian JIRA
(v6.2#6252)