If you are planning to call out from a JSR181 Service Unit to an HTTP
provider in order to interact with an external webservice then you
probably should look at the JSR181 Proxy (see
http://www.servicemix.org/site/servicemix-jsr181.html) - basically you
will need to use XFire to create stub classes based on your WSDL (for
the external service) then you can inject the stub into your JSR181
Service Unit - as so:
<jsr181:endpoint serviceInterface="test.Echo">
<jsr181:pojo>
<bean class="test.EchoProxy">
<property name="echo">
<jsr181:proxy service="test:EchoService" context="#context"
type="test.Echo" />
</property>
</bean>
</jsr181:pojo>
</jsr181:endpoint>
The stub will be used by the proxy to generate the exchange with the
HTTP provider (which should be referenced as the "service".
Cheers
P
On 10/23/06, Mukesh Mediratta <[EMAIL PROTECTED]> wrote:
We want to invoke an external webservice from within ServiceMix.
We have seen the documentation of ServiceMix-Http BC and set the Xbean.xml
as suggested.
Is there any example we can use as a reference where the external Webservice
is being invoked from a ServiceMix Service using the ServiceMix Http BC.
Thanks
Mukesh Mediratta
--
View this message in context:
http://www.nabble.com/Invoking-External-Webservice-tf2495197.html#a6956309
Sent from the ServiceMix - User mailing list archive at Nabble.com.