Error occurs when I specify a "wsdlURL" in my cxfendpoint blueprint definition

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error occurs when I specify a "wsdlURL" in my cxfendpoint blueprint definition

Harrison Tarr
Good afternoon,

I recently ran into an issue when changing a WSDL in my project. I noticed the new changes weren’t recognized by my CXF endpoint. It turns out, it looks like it’s using a WSDL from elsewhere in my project.

So therefore, I’d like to specify exactly which wsdl file to use in the construction of the cxfEndpoint. From the research that I’ve done, it looks like the way to specify a WSDL is using the “wsdlURL” argument on the “cxfendpoint” bean in blueprint. This is what my CXF endpoint looks like:

<camel-cxf:cxfEndpoint xmlns:svc="http://test.Service/test"
                           id="testEndpoint"
                           address="{{testWebServiceURI}}/{{testWebServiceEndpoint}}"
                           serviceClass="service.test"
                           serviceName="svc:serviceTest"
                           endpointName="svc:endpointTest"
                           loggingFeatureEnabled="true"
                           wsdlURL="wsdl/test_Service.svc.wsdl" />

My targetNamespace in my wsdl, declared in the “wsdl:definitions” block, matches to the “xlmns:svc” value of the cxfEndpoint. My name in the “wsdl:definitions” block matches the “serviceName” in the cxfEndpoint, and finally, my “portType” matches the “endpointName” in the cxfEndpoint.

However, I’m getting the following error:
Error occurred during starting Camel: CamelContext(camel-507) due Could not find definition for port {http://test.Service/test}endpointTest.
org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for port {http://test.Service/test}endpointTest.

Have I misinterpreted how the fields map from WSDL to the cxfEndpoint bean attributes?

Regards,

Harrison Tarr