You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by thazapo <ad...@gmail.com> on 2009/04/02 03:56:10 UTC
Re: Calling an External service with
org.apache.cxf.jaxws.JaxWsProxyFactoryBean
Hi Martin,
Could you please tell me how do you consume an external webservice? if you
could send me the src code it would be great.
Thanks.
mfeeney wrote:
>
> Hi Freeman,
>
> Thanks very much for the speedy reply. Much appricated. So I ll use the
> Proxies to deal with a CXF BC and thus the external service and all is
> good.
>
> Thanks Again
>
> Freeman Fang wrote:
>> Hi Martin,
>>
>> You shouldn't inject the org.apache.cxf.jaxws.JaxWsProxyFactoryBean to
>> cxf se, you should use cxf proxies described in [1]. Basically cxf
>> proxies is the ClientProxyFactoryBean but specified transport as JBI,
>> we hide the transport details for the end user.
>> And you can take a look the CxfSeClientProxyTest[2] which is exactly
>> same scenario as you want.
>> Btw, the cxf http-jetty transport shouldn't be used inside cxf se, I
>> think it was introduced by your injected JaxWsProxyFactoryBean
>>
>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>> [2]http://svn.apache.org/repos/asf/servicemix/smx3/branches/servicemix-3.2/deployables/serviceengines/servicemix-cxf-se/src/test/java/org/apache/servicemix/cxfse/CxfSeClientProxyTest.java
>>
>>
>> Freeman
>> Martin Feeney wrote:
>>> Hi All,
>>>
>>> I am trying to call an External Web Service from servicemix. I am
>>> injecting the org.apache.cxf.jaxws.JaxWsProxyFactoryBean as the
>>> client factory and method create in to my CXF SE service unit and on
>>> a call I get an error org.apache.cxf.interceptor.Fault: Could not
>>> find conduit initiator for transport
>>> http://schemas.xmlsoap.org/soap/http. I would prefer to use the proxy
>>> client object as apposed to using the CXF BC and the JBI CLient API.
>>> The appropriate dependencies are included especially
>>> cxf-rt-transports-http-jetty-2.1.3.jar. Has anyone achieved this
>>> before and can you enlighten me?
>>>
>>> Thanks
>>>
>>>
>>>
>>
>
> --
> Research Software Developer
> IMSARCS
>
> Telecommunications Software & Systems Group (TSSG),
> ArcLabs Research and Innovation Building,
> Waterford Institute of Technology,
> Carriganore Campus, Carriganore,
> Co. Waterford, Ireland
> www: www.tssg.org
>
> Mobile: +353 (0)85 1463212
> Work e-mail: mfeeney@tssg.org
> Personal e-mail: martinfeeney@gmail.com
> Skype: martinfeeney
>
>
>
>
--
View this message in context: http://www.nabble.com/Calling-an-External-service-with-org.apache.cxf.jaxws.JaxWsProxyFactoryBean-tp20678251p22838041.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.