Re: Using cxf:bean to invoke external webservice

2011-07-15 Thread kmoens
In meantime I progressed a bit. Because my WSDL contains a single service/port, I can leave out the following in the cxfEndpoint configuration: serviceName="s:AmlService" endpointName="s:AmlServicePort" xmlns:s="http://aml.mycomp.com"; so it ends up like http://localhost:8080/aml/AmlService"

Re: Using cxf:bean to invoke external webservice

2011-07-14 Thread kmoens
Hi Willem, I did send you a private email. Thanks for the help BRs, Kris -- View this message in context: http://camel.465427.n5.nabble.com/Using-cxf-bean-to-invoke-external-webservice-tp4561146p4586369.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread Willem Jiang
Can you send a small test case to me? I can not tell if there is something wrong from the files that you showed to me. On 7/8/11 7:53 PM, kmoens wrote: update: I used cxf tool java2ws to generate wsdl, where I changed the name to "foo". I used this wsdl to expose my external web service, whic

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread kmoens
update: I used cxf tool java2ws to generate wsdl, where I changed the name to "foo". I used this wsdl to expose my external web service, which is now running on http://localhost:8080/aml/FooService?WSDL http://aml.mycomp.com/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="http://am

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread kmoens
The WSDL is generated from the following piece of code, so the name="AmlService" is there for free @WebService(portName = "AmlServicePort") public class Aml { @WebMethod public boolean isValidPayment(@WebParam(name = "currency") String currency, @WebParam(name = "amount") BigDecimal amount

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread Willem Jiang
On 7/8/11 3:40 PM, kmoens wrote: Hi Willem, I did. Here it is: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:wsp="http://www.w3.org/ns/ws-policy"; xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy"; xmlns:wsam="http://www.w3.org/2007/05/add

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread kmoens
Hi Willem, I did. Here it is: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:wsp="http://www.w3.org/ns/ws-policy"; xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy"; xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"; xmlns:soap="http

Re: Using cxf:bean to invoke external webservice

2011-07-08 Thread kmoens
Hi Ashwin, yes, this wsdl folder containing the AmlService.wsdl is available under src/main/resources. If I remove "src/main/resources" I get a FileNotFoundException. I am not using maven. I use eclipse, defined a java project and put the camel and cxf jars in the referenced libraries. I just r

Re: Using cxf:bean to invoke external webservice

2011-07-07 Thread Willem Jiang
http://localhost:8080/aml/AmlService?wsdl is the WSDL which is generated from your service. You still need to open the WSDL file to find out the service name and the port name. BTW, can I have a look of URI of you CXF endpoint? Maybe it shows something we are just missing. On 7/7/11 10:56 PM

Re: Using cxf:bean to invoke external webservice

2011-07-07 Thread kmoens
Hi Willem, yes, I double checked. Got this also from the generated code: package com.mycomp.aml; import... @WebServiceClient(name = "AmlService", wsdlLocation = "http://localhost:8080/aml/AmlService?wsdl";, targetNamespace = "http://aml.mycomp.com/";) publ

Re: Using cxf:bean to invoke external webservice

2011-07-07 Thread Ashwin Karpe
Hi, Can you please remove "src/main/resources/" from the wsdlURL and change it to "wsdl/AmlService.wsdl". See example below... BTW, I am assuming you have a wsdl directory under src/main/resources. The directory src/main/resources is already on your classloader classpath if this is a maven deploy

Re: Using cxf:bean to invoke external webservice

2011-07-07 Thread Willem Jiang
Hi, Can you double check your WSDL definition to make sure the service name is right? On 7/7/11 10:01 PM, kmoens wrote: Hi, I am playing around to invoke an external webservice from Camel 2.6. With Java DSL this works fine, but I struggle with the Spring DSL using cxf:bean /Failed to creat

Using cxf:bean to invoke external webservice

2011-07-07 Thread kmoens
Hi, I am playing around to invoke an external webservice from Camel 2.6. With Java DSL this works fine, but I struggle with the Spring DSL using cxf:bean /Failed to create Producer for endpoint: Endpoint[cxf://bean:amlEndpoint]. Reason: org.apache.cxf.service.factory.ServiceConstructionException