-
1. Re: How to configure external web service as service endpoint in FUSE
davsclaus Jun 19, 2012 4:59 AM (in response to sarfarajsayyad)Hi
You may want to read the CXF proxy example
http://camel.apache.org/cxf-proxy-example.html
There are numerous ways of doing this. But this example should get you started.
-
2. Re: How to configure external web service as service endpoint in FUSE
sarfarajsayyad Jun 19, 2012 7:19 AM (in response to sarfarajsayyad)I did as follows
<log loggingLevel="INFO" message=">>> $"/> <to uri="cxf://http://localhost:8080/targetws/services/testTargetService?wsdlURL=src/etc/testTargetService.wsdl&dataFormat=MESSAGE"/> <log loggingLevel="INFO" message=">>> $"/>
</route>
</camelContext>
but not solved my problem. Can somebody point/correct me?
-
3. Re: How to configure external web service as service endpoint in FUSE
davsclaus Jun 19, 2012 7:38 AM (in response to sarfarajsayyad)In the instead so you do a plain HTTP call, as your message is already a SOAP message.
-
4. Re: How to configure external web service as service endpoint in FUSE
sarfarajsayyad Jun 19, 2012 7:52 AM (in response to davsclaus)like
To[http://localhost:8080/targetws/services/testTargetService] <<< in route: Route[[From[cxf://http://localhost:8080/sourcews/services/te... because of Failed to resolve endpoint: http://localhost:8080/targetws/services/testTargetService due to: No component found with scheme: http
FYI: Both web services are external (running on tomcat)
Edited by: sarfarajsayyad on Jun 19, 2012 11:51 AM
-
5. Re: How to configure external web service as service endpoint in FUSE
sarfarajsayyad Jun 19, 2012 8:37 AM (in response to davsclaus)After adding
The error message gone, but run time i got
ERROR Failed delivery for (MessageId: ID-XXXXX-WS01-55740-1333283117556-0-2 on ExchangeId: ID-SASAYYAD-WS01-55740-1333283117556-0-1). Exhausted after delivery attempt: 1 caught: org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/targetws/services/testTargetService with statusCode: 404
org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/tar
-
6. Re: How to configure external web service as service endpoint in FUSE
njiang Jun 19, 2012 9:52 PM (in response to sarfarajsayyad)Can you double check if you start the real back end service which listen to the address of "http://localhost:8080/targetws/services/testTargetService"?
Willem