[
https://issues.apache.org/jira/browse/CXF-293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ajay Paibir reopened CXF-293:
-----------------------------
This bug is not fixed yet as the xmlformat rootNode is not consumed and
eventually fails in HolderInInterceptor with a ArrayIndexOutofBoundsException
> Defining a XML Binding with a rootNode results in Fault Response at the
> Client end.
> -----------------------------------------------------------------------------------
>
> Key: CXF-293
> URL: https://issues.apache.org/jira/browse/CXF-293
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.0-M1
> Reporter: Ajay Paibir
> Assigned To: tli
> Fix For: 2.0
>
> Attachments: soap_header1.txt
>
>
> I have defined a XML Binding with the attached wsdl The wsdl is along the
> lines of soapheader.wsdl in testutils.
> While invoking on the inoutHeader Operation. The Client fails with the
> following exception
> org.apache.cxf.interceptor.Fault: Could not read request. Operation
> {http://apache.org/headers}inoutHeaderNode is unknown.
> at
> org.apache.cxf.binding.xml.interceptor.XMLMessageInInterceptor.handleMessage(XMLMessageInInterceptor.java:134)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:147)
> at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:253)
> at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:489)
> at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doClose(HTTPConduit.java:451)
> at
> org.apache.cxf.io.AbstractCachedOutputStream.close(AbstractCachedOutputStream.java:113)
> at
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:259)
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:58)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:147)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:130)
> at
> org.apache.cxf.jaxws.EndpointInvocationHandler.invokeSync(EndpointInvocationHandler.java:129)
> at
> org.apache.cxf.jaxws.EndpointInvocationHandler.invoke(EndpointInvocationHandler.java:115)
> at $Proxy37.inoutHeader(Unknown Source)
> The reason being it does not process the xmlformat:rootNode element defined
> in the binding.
> The XMLMessageInInterceptor needs to be fixed.
> The xml message for which the client fails is as follows.
> <tns:inoutHeaderNode xmlns:tns="http://apache.org/headers">
> <ns2:inoutHeaderResponse
> xmlns="http://www.w3.org/2005/08/addressing/wsdl"
> xmlns:ns2="http://apache.org/headers/types">
> <ns2:responseType
> xmlns:ns2="http://apache.org/headers/types">inout request type
> out</ns2:responseType>
> </ns2:inoutHeaderResponse>
> <ns2:SOAPHeaderInfo
> xmlns="http://www.w3.org/2005/08/addressing/wsdl"
> xmlns:ns2="http://apache.org/headers/types">
> <ns2:originator
> xmlns:ns2="http://apache.org/headers/types">inout orginator
> out</ns2:originator>
> <ns2:message
> xmlns:ns2="http://apache.org/headers/types">inout message out</ns2:message>
> </ns2:SOAPHeaderInfo>
> </tns:inoutHeaderNode>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira