Discussion:
camel soap endpoint only WSDL but without serviceClass, is it possible?
Wang Yan
2018-10-22 13:59:36 UTC
Permalink
camel soap endpoint only using wsdl , not using serviceClass , is it
possbile?

private static final String SOAP_ENDPOINT_URI = "cxf://
http://0.0.0.0:9009/create?serviceClass=com.xyz.CreateService";

I tried like below, but it does not work, it looks like the endpoint really
expecting serviceClass

private static final String SOAP_ENDPOINT_URI = "cxf://
http://0.0.0.0:9009/create?wsdlURL=wsdl/createService.wsdl";

the reason why not using POJO, because the system which providing WSDL is
old. we just want to using soap with dataformat as message not as POJO
Willem Jiang
2018-11-02 02:46:08 UTC
Permalink
Yeah, you can just specify the WSDL, but you have to provide more
information such as the service name and endpoint name to let CXF to
look up right endpoint for you.

Please check out this test file[1] as an example.

[1]https://github.com/apache/camel/blob/master/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/GreeterEndpointCxfMessageWithoutSEIBeans.xml

Willem Jiang

Twitter: willemjiang
Weibo: 姜宁willem
Post by Wang Yan
camel soap endpoint only using wsdl , not using serviceClass , is it
possbile?
private static final String SOAP_ENDPOINT_URI = "cxf://
http://0.0.0.0:9009/create?serviceClass=com.xyz.CreateService";
I tried like below, but it does not work, it looks like the endpoint really
expecting serviceClass
private static final String SOAP_ENDPOINT_URI = "cxf://
http://0.0.0.0:9009/create?wsdlURL=wsdl/createService.wsdl";
the reason why not using POJO, because the system which providing WSDL is
old. we just want to using soap with dataformat as message not as POJO
Loading...