Hi All,
I've a simple process made as follow:
CXF-BC -> Console Out
For the same configuration i've try two configuration:
1) In the fisrt configuration the xbean looks like:
<?xml version="1.0"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:testMtom_v_0="urn:iona:spagic:processes:testMtom:v0">
<cxfbc:consumer
service="testMtom_v_0:testMtom.End1_v_0"
targetService="testMtom_v_0:testMtom.End1_v_0"
endpoint="testMtom.Start1_v_0"
wsdl="classpath:XDS.b_DocumentRepository.wsdl"
mtomEnabled="true"
>
</cxfbc:consumer>
</beans>
If i send to this endpoint a SOAP request with wsa headers, the process
works but i loose
all the wsa headers
2) In the second configuration i've enabled the wsa-interceptors as follow:
<?xml version="1.0"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:testMtom_v_0="urn:iona:spagic:processes:testMtom:v0">
<cxfbc:consumer
service="testMtom_v_0:testMtom.End1_v_0"
targetService="testMtom_v_0:testMtom.End1_v_0"
endpoint="testMtom.Start1_v_0"
wsdl="classpath:XDS.b_DocumentRepository.wsdl"
mtomEnabled="true"
>
<cxfbc:inInterceptors>
<bean
class="org.apache.cxf.ws.addressing.MAPAggregator"/>
<bean
class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>
</cxfbc:inInterceptors>
<cxfbc:outInterceptors>
<bean
class="org.apache.cxf.ws.addressing.MAPAggregator"/>
<bean
class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>
</cxfbc:outInterceptors>
<cxfbc:inFaultInterceptors>
<bean
class="org.apache.cxf.ws.addressing.MAPAggregator"/>
<bean
class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>
</cxfbc:inFaultInterceptors>
<cxfbc:outFaultInterceptors>
<bean
class="org.apache.cxf.ws.addressing.MAPAggregator"/>
<bean
class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>
</cxfbc:outFaultInterceptors>
</cxfbc:consumer>
</beans>
But in that case with the same message as above i see from the console
that wsa headers
are reader but i've the following exception:
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unexpected end of input block;
expected an identifier
at [row,col {unknown-source}]: [201,62]
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.getBodyElement(JbiInWsdl1Interceptor.java:217)
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handleMessage(JbiInWsdl1Interceptor.java:108)
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handleMessage(JbiInWsdl1Interceptor.java:60)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
at
org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:184)
at
org.apache.cxf.ws.addressing.ContextUtils$1.run(ContextUtils.java:420)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected end of input
block; expected an identifier
at [row,col {unknown-source}]: [201,62]
at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOB(StreamScanner.java:675)
at
com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1029)
at
com.ctc.wstx.sr.StreamScanner.getNextCharFromCurrent(StreamScanner.java:786)
at
com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:2980)
at
com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2934)
at
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2846)
at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
at
org.apache.cxf.staxutils.DepthXMLStreamReader.next(DepthXMLStreamReader.java:215)
at
org.apache.cxf.staxutils.DepthXMLStreamReader.next(DepthXMLStreamReader.java:215)
at
org.apache.cxf.staxutils.PartialXMLStreamReader.next(PartialXMLStreamReader.java:41)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:660)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:582)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:619)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:582)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:619)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:582)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:619)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:582)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:619)
at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:519)
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.getBodyElement(JbiInWsdl1Interceptor.java:214)
Is this a bug??
Any idea