Thank you for suggestions.
I have constructed CXF startpoint in route according to documantation
from("cxf:CountryInfoProxyService:countryInfoProxyService?wsdlURL=C:/RedHat/workspace/soap2soapSpring/src/main/resources/CountryInfoProxyService.wsdl&dataFormat=PAYLOAD").routeId("FullCountryInfo")
beanId CountryInfoProxyService is serviceClass generated by cxf-codegen-plugin
WSDL2JAVA
Now I get
org.apache.camel.FailedToCreateRouteException: Failed to create route
FullCountryInfo:
Route(FullCountryInfo)[[From[cxf:CountryInfoProxyService:cou... because of
ServiceConstructionException
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: null
Caused by: java.io.IOException: Could not find destination factory for
transport http://schemas.xmlsoap.org/soap/http
Thank you for help in advance
______________________________________________________________
Od: "dimas [via Camel]" <ml+s465427n5891596...@n5.nabble.com>
Komu: "PT" <peter.tura...@pobox.sk>
Dátum: 23.10.2020 19:32
Predmet: Re: Camel CXF with SOAP 1.1 and SOAP 1.2
Everybody was in the same boat, no worries.
Best place to start (if replies in the email list doesn't do it) is Camel online documentation, here is for CXF component https://camel.apache.org/components/latest/cxf-component.html <https://camel.apache.org/components/latest/cxf-component.html> BTW, it has serviceClass mentioned 10 times(!)
Also, have a look at the examples/samples/component tests in GitHub, for example:
https://github.com/apache/camel/search?q=serviceClass
<https://github.com/apache/camel/search?q=serviceClass>
[https://avatars3.githubusercontent.com/u/47359?s=400&v=4 <https://avatars3.githubusercontent.com/u/47359?s=400&v=4>]<https://github.com/apache/camel/search?q=serviceClass <https://github.com/apache/camel/search?q=serviceClass>>
apache/camel<https://github.com/apache/camel/search?q=serviceClass <https://github.com/apache/camel/search?q=serviceClass>>
Apache Camel is an open source integration framework that empowers you to quickly and easily integrate various systems consuming or producing data. - apache/camel
github.com
CXF :: Apache Camel<https://camel.apache.org/components/latest/cxf-component.html <https://camel.apache.org/components/latest/cxf-component.html>>
Consumer — (at the start of a route) represents a Web service instance, which integrates with the route. The type of payload injected into the route depends on the value of the endpoint’s dataFormat option. Producer — (at other points in the route) represents a WS client proxy, which converts the current exchange object into an operation invocation on a remote Web service.
camel.apache.org
________________________________
From: Peter Turányi <[hidden email] <user/SendEmail.jtp?type=node&node=5891596&i=0>>
Sent: 22 October 2020 22:08
To: [hidden email] <user/SendEmail.jtp?type=node&node=5891596&i=1> <[hidden email] <user/SendEmail.jtp?type=node&node=5891596&i=2>>
Subject: Re: Camel CXF with SOAP 1.1 and SOAP 1.2
Excuse me. I am newbee in this area. I don't know where and how to specify serviceClass.
My project contains WSDL and respective classes generated by cxf-codegen-plugin WSDL2JAVA.
Dňa 22. 10. 2020 o 18:00 dimas [via Camel] napísal(a):
Reading the error message (and specifying serviceClass url parameter as it clearly asks) should help.
From: Peter Turányi [mailto:[hidden email]<user/SendEmail.jtp?type=node&node=5891347&i=0>]
Sent: Thursday, October 22, 2020 6:33 AM
To: [hidden email]<user/SendEmail.jtp?type=node&node=5891347&i=1>
Subject: RE: Camel CXF with SOAP 1.1 and SOAP 1.2
I am sorry but I didn't found any useful code there.
My project contains standard app class
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
route class
package org.demo.routes;
import org.apache.camel.builder.RouteBuilder;
import org.demo.processors.Country2KrajinaProcessor;
import org.demo.processors.FullCountryInfoRequestXmlBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class soap2soapRoute extends RouteBuilder {
@Override
public void configure() throws Exception {
from("cxf:countryInfoProxyService").routeId("FullCountryInfo")
.log("Unmarshalled output: ${body} ")
.removeHeaders("*");
}
}
but result is
org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route FullCountryInfo: Route(FullCountryInfo)[[From[cxf:countryInfoProxyService]] -... because of serviceClass must be specified
______________________________________________________________
Od: "Shenavai, Manuel" <[hidden email]<user/SendEmail.jtp?type=node&node=5891347&i=2>>
Komu: "[hidden email]<user/SendEmail.jtp?type=node&node=5891347&i=3>" <[hidden email]<user/SendEmail.jtp?type=node&node=5891347&i=4>>
Dátum: 22.10.2020 15:06
Predmet: RE: Camel CXF with SOAP 1.1 and SOAP 1.2
Hi Peter,
my code looks similar to whats provided in the docs:
https://camel.apache.org/components/latest/cxf-component.html <https://camel.apache.org/components/latest/cxf-component.html> [camel.apache.org]<https://urldefense.com/v3/__https:/camel.apache.org/components/latest/cxf-component.html__;!!LdWlNaMnLCM!LNF7qjHIwm1eNx27YMdLnRjV4DSJhNaf5KylWEJVEEh_SiA1L6DGv0czexRP3MhXEFUn$ <https://urldefense.com/v3/__https:/camel.apache.org/components/latest/cxf-component.html__;!!LdWlNaMnLCM!LNF7qjHIwm1eNx27YMdLnRjV4DSJhNaf5KylWEJVEEh_SiA1L6DGv0czexRP3MhXEFUn$>>
Hope this helps.
Best regards,
Manuel
From: Peter Turányi <[hidden email]<user/SendEmail.jtp?type=node&node=5891347&i=5>>
Sent: Donnerstag, 22. Oktober 2020 10:50
To: [hidden email]<user/SendEmail.jtp?type=node&node=5891347&i=6>
Subject: Re: Camel CXF with SOAP 1.1 and SOAP 1.2
Hello.
Sorry, I don't know answer.
But tell me how do you configure cxf beast to work with Camel Apache. I have tried but I have no luck. :(