You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by madusanka <ma...@gmail.com> on 2013/12/17 03:09:04 UTC
"serviceClass must be specified" error in ServiceMix
Hi,
I'm trying to proxy a web service using the <cxf:cxfEndpoint> in ServiceMix
4.5.2. I have specified the WSDL url. Even then the "serviceClass must be
specified" error comes.
--
View this message in context: http://camel.465427.n5.nabble.com/serviceClass-must-be-specified-error-in-ServiceMix-tp5744904.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: "serviceClass must be specified" error in ServiceMix
Posted by Willem Jiang <wi...@gmail.com>.
It could be more straight is you choice to use camel-jetty.
The camel route just routing the request and response and doesn’t change the message content.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English)
http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On December 17, 2013 at 4:50:30 PM, madusanka (madusankabalasooriya@gmail.com) wrote:
>
> still the issue is there? I also want to proxy a RESTful service
> developed in
> CXF. Can I use or should I have to use jetty?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/serviceClass-must-be-specified-error-in-ServiceMix-tp5744904p5744925.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: "serviceClass must be specified" error in ServiceMix
Posted by madusanka <ma...@gmail.com>.
still the issue is there? I also want to proxy a RESTful service developed in
CXF. Can I use <cxfEndpoint> or should I have to use jetty?
--
View this message in context: http://camel.465427.n5.nabble.com/serviceClass-must-be-specified-error-in-ServiceMix-tp5744904p5744925.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: "serviceClass must be specified" error in ServiceMix
Posted by Willem Jiang <wi...@gmail.com>.
You need to specify the dataformat option this time, as the default POJO dataformat need you to specify the serviceClass option.
The configuration should be
<cxf:cxfEndpoint id="routerEndpoint"
address="http://localhost:9090/cxf-proxy"
endpointName="tns:HelloServicePort"
serviceName="tns:HelloService"
wsdlURL="etc/HelloService.wsdl"
xmlns:tns="http://www.example.org/HelloService"/>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<endpoint id="HelloServiceEndpoint"
uri="http://localhost:8080/cxf-service/services/HelloService?dataformat=MESSAGE"/>
<route>
<from uri="cxf:bean:routerEndpoint" />
<to ref="HelloServiceEndpoint"/>
</route>
</camelContext>
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English)
http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On December 17, 2013 at 10:13:14 AM, madusanka (madusankabalasooriya@gmail.com) wrote:
>
> My configuration
>
> > address="http://localhost:9090/cxf-proxy"
> endpointName="tns:HelloServicePort"
> serviceName="tns:HelloService"
> wsdlURL="etc/HelloService.wsdl"
> xmlns:tns="http://www.example.org/HelloService"/>
>
>
>
> >
> uri="http://localhost:8080/cxf-service/services/HelloService"/>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/serviceClass-must-be-specified-error-in-ServiceMix-tp5744904p5744905.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: "serviceClass must be specified" error in ServiceMix
Posted by madusanka <ma...@gmail.com>.
My configuration
<cxf:cxfEndpoint id="routerEndpoint"
address="http://localhost:9090/cxf-proxy"
endpointName="tns:HelloServicePort"
serviceName="tns:HelloService"
wsdlURL="etc/HelloService.wsdl"
xmlns:tns="http://www.example.org/HelloService"/>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<endpoint id="HelloServiceEndpoint"
uri="http://localhost:8080/cxf-service/services/HelloService"/>
<route>
<from uri="cxf:bean:routerEndpoint" />
<to ref="HelloServiceEndpoint"/>
</route>
</camelContext>
--
View this message in context: http://camel.465427.n5.nabble.com/serviceClass-must-be-specified-error-in-ServiceMix-tp5744904p5744905.html
Sent from the Camel - Users mailing list archive at Nabble.com.