what's the configuration for your jsr181 endpoint, the payload mismatch cause the problem.
Could you add
typeMapping="jaxb2" for your jsr181 endpoint configuration?

Freeman

On 2009-6-29, at 下午7:47, jcamus wrote:


Ok. It works better but I have a new error message :

ERROR - DefaultFaultHandler            - Fault occurred!
org.codehaus.xfire.XFireRuntimeException: Could not read XML stream.. Nested
exception is com.ctc.wstx.exc.WstxParsingException: E
xpected a text token, got START_ELEMENT.
at [row,col {unknown-source}]: [1,174]
com.ctc.wstx.exc.WstxParsingException: Expected a text token, got
START_ELEMENT.
at [row,col {unknown-source}]: [1,174]
       at
com .ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java: 630)
       at
com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
       at
com .ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java: 677)
       at
org .codehaus .xfire .util .stax.DepthXMLStreamReader.getElementText(DepthXMLStreamReader.java: 86)
       at
org .codehaus .xfire .util .stax.DepthXMLStreamReader.getElementText(DepthXMLStreamReader.java: 86)
       at
org .codehaus.xfire.aegis.stax.ElementReader.getValue(ElementReader.java: 122)
       at
org .codehaus .xfire.aegis.type.basic.StringType.readObject(StringType.java:21)
       at
org .codehaus .xfire .aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java: 162)
       at
org .codehaus .xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206)
       at
org .codehaus .xfire .service.binding.WrappedBinding.readMessage(WrappedBinding.java:50)
       at
org .codehaus .xfire .jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java: 182)
       at
org .codehaus .xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
       at
org .codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java: 131)
       at
org .codehaus .xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
       at
org .codehaus .xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
       at
org .apache.servicemix.jsr181.Jsr181Endpoint.process(Jsr181Endpoint.java: 498)
       at
org .apache .servicemix .common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
       at
org .apache .servicemix .common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java: 581)
       at
org .apache .servicemix .common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java: 535)
       at
org .apache .servicemix .common .SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
       at
org .apache .servicemix .jbi .messaging .DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
       at
org .apache .servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
       at
org .apache .servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
       at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue $1.run(SedaQueue.java:134)
       at
java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:885)
       at
java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:907)
       at java.lang.Thread.run(Thread.java:619)


My class JsrTextServiceImpl is :

package test;

import javax.jws.WebService;

@WebService(serviceName = "TestService", targetNamespace = "http://test/ ",
endpointInterface = "test.ITest")
public class JsrTestServiceImpl
   implements ITest
{

   public String newOperation(String in) {
       return "ok : " + in;
   }

}


What is wrong now?

--
View this message in context: 
http://www.nabble.com/How-to-call-a-JSR181-proxy-from-CXF-SE--tp24250726p24252721.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.



--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com

Reply via email to