Your cxfEndpoint should be
<cxf:cxfEndpoint id="wsEndpoint"
address="http://192.168.5.1:9767/services/version"
wsdlURL="http://192.168.5.1:9763/services/version?wsdl"
xmlns:s="http://ws.apache.org/axis2"
serviceName="s:getVersion"
endpointName="s:versionSOAP12port1">
<cxf:properties>
<entry key="dataFormat" value="MESSAGE"/>
</cxf:properties>
</cxf:cxfEndpoint>
Willem
Francois Lefoll wrote:
ok,
thanks for your reply,
it allows me to go deeper and to get some new errors suggesting an endpoint
spring definition anyway.
I'm here now :
<cxf:cxfEndpoint id="wsEndpoint"
address="http://192.168.5.1:9767/services/version"
wsdlURL="http://192.168.5.1:9763/services/version?wsdl"
serviceName="getVersion">
<cxf:properties>
<entry key="dataFormat" value="MESSAGE"/>
<entry key="portName" value="versionSOAP12port1"/>
</cxf:properties>
</cxf:cxfEndpoint>
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<package>org.foo.bar</package>
<route>
<from uri="activemq:example.AA"/>
<to uri="cxf:bean:wsEndpoint"/>
<to uri="activemq:example.BB"/>
</route>
</camelContext>
but it claims :
org.apache.camel.FailedToCreateProducerException: Failed to create Producer
for endpoint: Endpoint[http://localhost:9767/services/version]. Reason:
org.apache.cxf.service.factory.ServiceConstructionException: Could not find
definition for service
{http://www.springframework.org/schema/beans}getVersion.
http://www.easy-share.com/1910393961/applicationContext.xml
http://www.easy-share.com/1910393776/version.wsdl
Maybe serviceName or portName are not correctly configured,
Do we agree such values are specific to the remote webservice, and should be
identifiable within the wsdl?
Thanks in advance for your help,
Francois
janstey wrote:
Try the following as the CXF endpoint URI
cxf://
http://192.168.5.1:9763/services/myservice?wsdlURL=/services/myservice%3Fwsdl