You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by tomalley <to...@mail.com> on 2010/11/17 21:55:16 UTC

Call external web service without provider?

Is there a way to call an external web service without a provider?

We have a situation where our SE will keep track of a dynamic list of client
web services and when client one wants something from client two, the SE
will look up the location of client two and we would like to POST a request
to client two and map the response back to the client one response.

I was thinking of using HTTPClient inside the SE. Is there an easier
(better) way?

Thanks,
~T
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/Call-external-web-service-without-provider-tp3269762p3269762.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Call external web service without provider?

Posted by Freeman Fang <fr...@gmail.com>.
Yeah, this test involve cxfse, se proxy and provider, also demonstrate  
how they can work together, I believe you can find something useful  
for your scenario.

Freeman
On 2010-11-18, at 上午5:32, tomalley wrote:

>
> I also found the CxfBcProviderTest.java example. Would I do  
> something like
> that?
> -- 
> View this message in context: http://servicemix.396122.n5.nabble.com/Call-external-web-service-without-provider-tp3269762p3269832.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


-- 
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org


Re: Call external web service without provider?

Posted by tomalley <to...@mail.com>.
I also found the CxfBcProviderTest.java example. Would I do something like
that?
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/Call-external-web-service-without-provider-tp3269762p3269832.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Call external web service without provider?

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

My comment inline
On 2010-11-18, at 上午4:55, tomalley wrote:

>
> Is there a way to call an external web service without a provider?
Yes and no.
Although you can call an external web service from se endpoint  
directly without provider, that's not good practice in JBI world. In  
JBI, you should always delegate the protocol stuff work to the  
BindingComponent, so you should always use a provider to call external  
webservice when you use JBI.

Freeman
>
> We have a situation where our SE will keep track of a dynamic list  
> of client
> web services and when client one wants something from client two,  
> the SE
> will look up the location of client two and we would like to POST a  
> request
> to client two and map the response back to the client one response.
>
> I was thinking of using HTTPClient inside the SE. Is there an easier
> (better) way?
>
> Thanks,
> ~T
> -- 
> View this message in context: http://servicemix.396122.n5.nabble.com/Call-external-web-service-without-provider-tp3269762p3269762.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


-- 
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org