Hi,

There are some ways to do this, it depends on your use case.
That are you going to do under "http://localhost:90000/allservice"; URL: just 
redirect all requests on different services or somehow process payloads?

I can imagine following solutions:
1) Deploy Servlet (or another CXF service) under 
"http://localhost:90000/allservice"; and communicate with 
"http://localhost:90000/helloworld"; service using LocalTransport (or 
collocated) Client, this make communication a bit more effective.
2) Integrate both services in the same web application, expose both endpoints 
and directly invoke implementation bean of helloworld service for requests 
coming on "http://localhost:90000/allservice?id=helloworld"; endpoint.
3) Implement simple Camel route to accept and redirect requests.

Regards,
Andrei.

> -----Original Message-----
> From: chengy@action [mailto:[email protected]]
> Sent: Mittwoch, 7. Januar 2015 18:26
> To: [email protected]
> Subject: how to proxy to cxf services
> 
> Hi,
> I have a controller servlet to serve all web services request, The steps
> are:
> 1,publish the helloworld service with address:
> http://localhost:90000/helloworld
> 2,implement a servlet accept request: http://localhost:90000/allservice,
> 3,accept helloworld request at url:
> http://localhost:90000/allservice?id=helloworld,
> 4,parse soap message in string or stream, and send the message
> to:http://localhost:90000/helloworld
> 5,write the result to client
> 
> since cxf service and servlet in a same jvm, I think the servlet call maybe
> inefficient, Someone pls tell me is there a better way publish and invoke the
> target service?If cxf possable as a lightweigh soap engine do this?
> 
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/how-to-proxy-
> to-cxf-services-tp5752852.html
> Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to