-
1. Re: How to call external web service from Fuse ESB
edelln Jul 3, 2008 4:52 AM (in response to jayasreeb)Hi,
I submitted a test case for this at apache - Have a look at
SERVICEMIX_SRC_DIRECTORTY\deployables\bindingcomponents\servicemix-cxf-bc\src\test\java\org\apache\servicemix\cxfbc\provider\CxfBCSEProviderSystemTest.java
You need to setup the Cxf-bc provider
Create your archtype for the service-unit and in the pom indicatate that its the servicemix-cxf-bc component that you are going to use.
So effectively your project should have
pom
src/main/resources/xbean.xml
src/main/resources/warehouse.wsdl (wsdl for your service)
An example xbean.xml I have connecting to a warehouseService.
"
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:ware="http://logisticx.demo.fuse.iona.com/warehouseService/">
<cxfbc:provider service="ware:WarehouseService"
endpoint="WarehouseEndpoint" useJBIWrapper="false"
wsdl="classpath:warehouse.wsdl"
locationURI="http://localhost:8080/warehouse/services/warehouse"/>
</beans>
"
Hope this helps, Edell.
Edited by: edelln on Jul 3, 2008 4:43 AM
-
2. Re: How to call external web service from Fuse ESB
jayasreeb Jul 3, 2008 5:13 AM (in response to jayasreeb)Hi
As per my understanding no need to write any java code if I am going to simply call the external web service.
I need to create servicemix-cxf-bc which includes pom,xbean and wsdl of external web service.I need to add this to service assembly and deploy it in servicemix.
If this is the case then how will I be testing the whole scenario of invoking external web service from Fuse?
If my requirement is like that I will be getting response back from External Web service then what are the steps do i need to follow?
Jayasree.B