Hi!
Thanks for the reply.
The "camel-cxf" prefix was declared elsewhere for the XML.
It was the Java code that I was having trouble with:
camelContext_.addRoutes(new RouteBuilder() {
@Override
public void configure()
throws Exception {
CxfEndpoint cxfEndpoint = new CxfEndpoint();
cxfEndpoint.setWsdlURL("wsdl/invoke.wsdl");
cxfEndpoint.setCamelContext(camelContext_);
// cxfEndpoint.setBeanId("soapClientEndpoint"); also tried this
cxfEndpoint.setEndpointNameString("soapClientEndpoint");
cxfEndpoint.setDataFormat(org.apache.camel.component.cxf.DataFormat.CXF_MESSAGE);
camelContext_.addEndpoint("soapClientEndpoint", cxfEndpoint);
from("direct:soapClient").to("soapClientEndpoint");
}
});
java.lang.IllegalArgumentException: endpointUri is not specified and
org.apache.camel.component.cxf.CxfEndpoint does not implement
createEndpointUri() to create a default value.
The XML worked and was what I was aiming to get dynamically from Java.
-Doug
--
View this message in context:
http://camel.465427.n5.nabble.com/cxf-endpoint-configuration-in-java-DSL-tp5771538p5771881.html
Sent from the Camel - Users mailing list archive at Nabble.com.