Thanks Sergey, will give it a try! Regards Kiren
On Thu, Nov 14, 2013 at 12:36 PM, Sergey Beryozkin <[email protected]>wrote: > Hi Kiren > > Add one more jaxrs:server endpoint with a local transport address, sharing > the same JAX-RS bean with the HTTP-aware jaxrs:endpoint, and then inject a > jaxrs:client or WebClient initialized with the local transport address into > your JAX-WS server, example, > > <jaxrs:server address="/http"> > <jaxrs:serviceBeans> > <ref bean="service"/> > </jaxrs:serviceBeans> > </jaxrs:server> > > <jaxrs:server address="local://rsservice" > transportId="http://cxf.apache.org/transports/local"> > <jaxrs:serviceBeans> > <ref bean="service"/> > </jaxrs:serviceBeans> > </jaxrs:server> > > <jaxrs:client address="local://rsservice"> > </jaxrs:client> > > and inject this client (or WebClient) into the soap server > > This should do > > Cheers, Sergey > > > On 13/11/13 23:10, Kiren Pillay wrote: > >> Hi Sergey, >> >> I am trying to have a SOAP service calling a RESTFUL service, both >> deployed >> within the same CXF servlet. >> >> What is the best or most efficient way to invoke the RestFul service from >> the SOAP service?. I want the RestFul service to behave as if its being >> called from an external source so that the invokers etc are all called as >> normal. >> >> I'm trying the following call but it doesn't seem to be invoking the >> service. Both the SOAP and REST service are within the same Servlet >> Context. >> >> WebClient wc = WebClient.create( >> >> " >> http://localhost:8080/deploy-mms-billing/rest/function/mmsBilling", >> "test", "test", null); >> >> Regards >> Kiren >> >> > > -- > Sergey Beryozkin > > Talend Community Coders > http://coders.talend.com/ > > Blog: http://sberyozkin.blogspot.com >
