You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by mfeeney <mf...@tssg.org> on 2008/11/19 16:04:28 UTC

Calling a WebService from a WebService

Hi All,
I currently have a CXF-SE endpoint pojo which is working fine I now want to
be able to contact another external web service dynamically from this
service. The external web service is set-up and working correctly and I have
a CXF-BC provider endpoint set up for it. I understand I can use the jbi
Client API to set up a message exchange to contact the external web service
via the NMR and CXF-BC. My question is, Is there anyother way of doing this
in an approved maner by where I can just make method calls on a service
object like would be done in the normal webserce call instead of mannually
creating a SOAP message for the jbi client API?

Thanks 
-- 
View this message in context: http://www.nabble.com/Calling-a-WebService-from-a-WebService-tp20581738p20581738.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Calling a WebService from a WebService

Posted by mfeeney <mf...@tssg.org>.
Ok,

Thanks just wondering was there a more ServiceMix orientated solution.

Thanks Very Much
-- 
View this message in context: http://www.nabble.com/Calling-a-WebService-from-a-WebService-tp20581738p20582020.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Calling a WebService from a WebService

Posted by Adrian Trenaman <tr...@progress.com>.
On 19 Nov 2008, at 15:04, mfeeney wrote:

>
> Hi All,
> I currently have a CXF-SE endpoint pojo which is working fine I now  
> want to
> be able to contact another external web service dynamically from this
> service. The external web service is set-up and working correctly  
> and I have
> a CXF-BC provider endpoint set up for it. I understand I can use the  
> jbi
> Client API to set up a message exchange to contact the external web  
> service
> via the NMR and CXF-BC. My question is, Is there anyother way of  
> doing this
> in an approved maner by where I can just make method calls on a  
> service
> object like would be done in the normal webserce call instead of  
> mannually
> creating a SOAP message for the jbi client API?
>

"Approved"? By whom?!

For what it's worth, you can simply inject a CXF client proxy into  
your current endpoint POJO, and then just invoke outwards. All you  
need to know is how to configure the CXF proxy using Spring: see the  
CXF users guide at cxf.apache.org.

Hope that helps,
Ade

> Thanks
> -- 
> View this message in context: http://www.nabble.com/Calling-a-WebService-from-a-WebService-tp20581738p20581738.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

---
Adrian Trenaman, Consultant Fellow, PS - Opensource Center of Competence
Progress Software Corp
Shelbourne Road, Dublin 4, Ireland
---
+353-1-637-2659 (Office)
+353-1-637-2882 (Fax)
+353-86-6051026 (Mobile)
  adrian.trenaman (Skype)
----
Blog: http://trenaman.blogspot.com