The consumer endpoint is used to provide a webservice into servicemix,
not to call an external one.
In fact, if you use a consumer endpoint, an external webservice will be
able to send a message into servicemix (by this endpoint), but the
consumer endpoint can't be configured to call a webservice.
For me, my message doesn't have a soap enveloppe, so I transforme it
(using a xslt transformer) in order to add the envelope and to send it
to the webservice.
Cheers,
Pierre NOTEL
//****************************************************
João Luz wrote:
So you don't use consumer endpoint?
You create the input message in component made by you?
Thanks,
João Vieira da Luz
-----Original Message-----
From: Pierre NOTEL [mailto:[EMAIL PROTECTED]
Sent: segunda-feira, 24 de Julho de 2006 12:15
To: [email protected]
Subject: Re: How to call a external webservice?
Hello,
To call an external webservice, I think you must use a provider endpoint with
the servicemix-http component.
For example, I use this service unit :
<http:endpoint
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
service="foo:WService"
endpoint="myProvider"
role="provider"
locationURI="http://localhost:8080/axis/services/myWS"
soap="true">
</http:endpoint>
The input message must be in a soap envelope and normally, it would be great.
Good luck,
Pierre NOTEL
//*******************************************
João Luz wrote:
How can we, using provider/consumer endpoints, call an external webservice
using servicemix?
Thanks in advance,
João