You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Ravi <rc...@rgis.com> on 2012/12/31 20:51:43 UTC
Service Mix as a webservice consumer and the bugs
Hello,
I am trying to invoke an external webservice using service mix (Camel-cxf).
As JBI is being removed, I wanted to develop as a blueprint. I have created
the stubs from the given WSDL file and deployed as a wrap (using osgi wrap)
and deployed the blueprint xml. However, I consistently get the following
error message:
4:48:20,284 | ERROR | basexml\tmp\soap | DefaultErrorHandler |
92 - org.apache.camel.camel-core - 2.8.5 | Failed delivery for exchangeId:
ID-E6400-3191-56720-1356982323304-0-3385. Exhausted after delivery attempt:
1 caught: java.lang.IllegalArgumentException: The PayLoad elements cannot
fit with the message parts of the BindingOperation. Please check the
BindingOperation and PayLoadMessage.
java.lang.IllegalArgumentException: The PayLoad elements cannot fit with the
message parts of the BindingOperation. Please check the BindingOperation and
PayLoadMessage.
at
org.apache.camel.component.cxf.CxfEndpoint$CamelCxfClientImpl.setParameters(CxfEndpoint.java:814)[150:org.apache.camel.camel-cxf:2.8.5]
at
org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:511)[141:org.apache.cxf.bundle:2.4.6]
at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:454)[141:org.apache.cxf.bundle:2.4.6]
at
org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:113)[150:org.apache.camel.camel-cxf:2.8.5]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:114)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:284)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:109)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:162)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.Pipeline.process(Pipeline.java:116)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.Pipeline.process(Pipeline.java:79)[92:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:139)[92:org.apache.camel.camel-core:2.8.5]
Can someone provide me some insight? The biggest problem I am finding is to
find the documentation and related known issues at one place. Any help will
be appreciated.
Regards,
Ravi
--
View this message in context: http://servicemix.396122.n5.nabble.com/Service-Mix-as-a-webservice-consumer-and-the-bugs-tp5715358.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Service Mix as a webservice consumer and the bugs
Posted by Ravi <rc...@rgis.com>.
Freeman,
Thank you very much for the post. Somehow, when we use the same SOAP message
and test through SOAPUI it works fine but not through ServiceMix.
Unfortunately, I am not able to post the complete wsdl and SOAP message here
in the forum for confidentiality purpose.
Regards,
Ravi
--
View this message in context: http://servicemix.396122.n5.nabble.com/Service-Mix-as-a-webservice-consumer-and-the-bugs-tp5715358p5715434.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Service Mix as a webservice consumer and the bugs
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
This error generally indicates that your message payload doesn't match the service model described in the wsdl.
You need ensure your soap message is correct per the wsdl.
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
On 2013-1-1, at 上午3:51, Ravi wrote:
> Hello,
>
> I am trying to invoke an external webservice using service mix (Camel-cxf).
> As JBI is being removed, I wanted to develop as a blueprint. I have created
> the stubs from the given WSDL file and deployed as a wrap (using osgi wrap)
> and deployed the blueprint xml. However, I consistently get the following
> error message:
>
> 4:48:20,284 | ERROR | basexml\tmp\soap | DefaultErrorHandler |
> 92 - org.apache.camel.camel-core - 2.8.5 | Failed delivery for exchangeId:
> ID-E6400-3191-56720-1356982323304-0-3385. Exhausted after delivery attempt:
> 1 caught: java.lang.IllegalArgumentException: The PayLoad elements cannot
> fit with the message parts of the BindingOperation. Please check the
> BindingOperation and PayLoadMessage.
> java.lang.IllegalArgumentException: The PayLoad elements cannot fit with the
> message parts of the BindingOperation. Please check the BindingOperation and
> PayLoadMessage.
> at
> org.apache.camel.component.cxf.CxfEndpoint$CamelCxfClientImpl.setParameters(CxfEndpoint.java:814)[150:org.apache.camel.camel-cxf:2.8.5]
> at
> org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:511)[141:org.apache.cxf.bundle:2.4.6]
> at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:454)[141:org.apache.cxf.bundle:2.4.6]
> at
> org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:113)[150:org.apache.camel.camel-cxf:2.8.5]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:114)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:284)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:109)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:162)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:116)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:79)[92:org.apache.camel.camel-core:2.8.5]
> at
> org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:139)[92:org.apache.camel.camel-core:2.8.5]
>
> Can someone provide me some insight? The biggest problem I am finding is to
> find the documentation and related known issues at one place. Any help will
> be appreciated.
>
> Regards,
> Ravi
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Service-Mix-as-a-webservice-consumer-and-the-bugs-tp5715358.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Service Mix as a webservice consumer and the bugs
Posted by Ravi <rc...@rgis.com>.
I am using ServiceMix 4.4.2 full version and following is the blueprint xml
file (With the class names etc masked off.
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xmlns:amq="http://activemq.org/config/1.0"
xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws"
xmlns:policy="http://cxf.apache.org/policy"
xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf"
xmlns:cxfcore="http://cxf.apache.org/blueprint/core"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://cxf.apache.org/blueprint/jaxws
http://cxf.apache.org/schemas/blueprint/jaxws.xsd
http://cxf.apache.org/blueprint/core
http://cxf.apache.org/schemas/blueprint/core.xsd
http://camel.apache.org/schema/blueprint/cxf
http://camel.apache.org/schema/blueprint/cxf/cxf.xsd">
<cxf:cxfEndpoint id="routerEndpoint" address="/webservice/services/Service"
serviceClass="Name of Service Class">
<cxf:properties>
<entry key="dataFormat" value="PAYLOAD"/>
<entry key="serviceName" value="Name of Service"/>
<entry key="portName" value="Port Name"/>
<entry key="binding" value="Binding information"/>
</cxf:properties>
</cxf:cxfEndpoint>
<camelContext xmlns="http://camel.apache.org/schema/blueprint" trace="true">
<route id="route1">
<from uri="file:\\groupd\interfaces-Dev$\inv\in\xml\tmp\soap"/>
<to uri="cxf:bean:routerEndpoint?dataFormat=PAYLOAD"/>
<to uri="activemq:queue:queue.inboundSoapRequest"/>
</route>
<route id="route2">
<from uri="activemq:queue:queue.inboundSoapRequest"/>
<to uri="routerEndpoint"/>
</route>
<route id="myroute">
<from uri="routerEndpoint"/>
<to uri="file:\\\\group\interfaces-Dev$\inv\in\xml\tmp1\soap\tmp.txt"/>
</route>
</camelContext>
</blueprint>
I am new to ServiceMix and hence please bear with me.
Regards,
Ravi
--
View this message in context: http://servicemix.396122.n5.nabble.com/Service-Mix-as-a-webservice-consumer-and-the-bugs-tp5715358p5715359.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.