Reading the error message (and specifying serviceClass url parameter as it 
clearly asks) should help.


From: Peter Turányi [mailto:peter.tura...@pobox.sk]
Sent: Thursday, October 22, 2020 6:33 AM
To: users@camel.apache.org
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" 
> <manuel.shena...@sap.com<mailto:manuel.shena...@sap.com>>
> Komu: "peter.tura...@pobox.sk<mailto:peter.tura...@pobox.sk>" 
> <peter.tura...@pobox.sk<mailto:peter.tura...@pobox.sk>>
> 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 
[camel.apache.org]<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 <peter.tura...@pobox.sk<mailto:peter.tura...@pobox.sk>>
Sent: Donnerstag, 22. Oktober 2020 10:50
To: users@camel.apache.org<mailto:users@camel.apache.org>
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. :(

______________________________________________________________
> Od: "Shenavai, Manuel [via Camel]" 
> <ml+s465427n5891227...@n5.nabble.com<mailto:ml+s465427n5891227...@n5.nabble.com>>
> Komu: "PT" <peter.tura...@pobox.sk<mailto:peter.tura...@pobox.sk>>
> Dátum: 22.10.2020 10:27
> Predmet: Camel CXF with SOAP 1.1 and SOAP 1.2
>
Hi everyone,

I have a question regarding the camel CXF component. I setup a cxfEndpoint 
using a SOAP 1.2 WSDL, endpoint & port. This allows to call the endpoint with 
SOAP 1.2. But when I call the endpoint with SOAP 1.1 messages, I got different 
results. In CamelBlueprintTestSupport this works (with SOAP 1.1 request I get 
SOAP 1.1 response), but in my real application it fails. With SOAP 1.1 the 
route is entered, but an error occurs when the response is trying to be send 
(logs attached, HIERARCHY_REQUEST_ERR: An attempt was made to insert a node 
where it is not permitted)

What is the expected behavior in this use-case? Should a SOAP1.2 Endpoint be 
able to handle SOAP1.1 message?

Thanks in advance &
Best regards,
Manuel



[Image removed by sender.]error.txt (7K) Download Attachment 
[camel.465427.n5.nabble.com]<https://urldefense.com/v3/__http:/camel.465427.n5.nabble.com/attachment/5891227/0/error.txt__;!!LdWlNaMnLCM!LNF7qjHIwm1eNx27YMdLnRjV4DSJhNaf5KylWEJVEEh_SiA1L6DGv0czexRP3KiBU13r$>

________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/Camel-CXF-with-SOAP-1-1-and-SOAP-1-2-tp5891227.html
 
[camel.465427.n5.nabble.com]<https://urldefense.com/v3/__http:/camel.465427.n5.nabble.com/Camel-CXF-with-SOAP-1-1-and-SOAP-1-2-tp5891227.html__;!!LdWlNaMnLCM!LNF7qjHIwm1eNx27YMdLnRjV4DSJhNaf5KylWEJVEEh_SiA1L6DGv0czexRP3I4B6M4i$>
To unsubscribe from Camel - Users, click here 
[camel.465427.n5.nabble.com]<https://urldefense.com/v3/__http:/camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=cGV0ZXIudHVyYW55aUBwb2JveC5za3w0NjU0Mjh8LTY0MTU0ODA4Mg==__;!!LdWlNaMnLCM!LNF7qjHIwm1eNx27YMdLnRjV4DSJhNaf5KylWEJVEEh_SiA1L6DGv0czexRP3BuawgZt$>.
NAML 
[camel.465427.n5.nabble.com]<https://urldefense.com/v3/__http:/camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html*21nabble*3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers*21nabble*3Aemail.naml-instant_emails*21nabble*3Aemail.naml-send_instant_email*21nabble*3Aemail.naml__;JSUlJSUlJSU!!LdWlNaMnLCM!LNF7qjHIwm1eNx27YMdLnRjV4DSJhNaf5KylWEJVEEh_SiA1L6DGv0czexRP3Lr9oxN3$>

Reply via email to