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 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://avatars3.githubusercontent.com/u/47359?s=400&v=4]<https://github.com/apache/camel/search?q=serviceClass>
apache/camel<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>
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 <peter.tura...@pobox.sk>
Sent: 22 October 2020 22:08
To: users@camel.apache.org <users@camel.apache.org>
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 
[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 <[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. :(

______________________________________________________________
> Od: "Shenavai, Manuel [via Camel]" <[hidden 
> email]<user/SendEmail.jtp?type=node&node=5891347&i=7>>
> Komu: "PT" <[hidden email]<user/SendEmail.jtp?type=node&node=5891347&i=8>>
> 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





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$>


________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/Re-Camel-CXF-with-SOAP-1-1-and-SOAP-1-2-tp5891286p5891347.html
 
[camel.465427.n5.nabble.com]<https://urldefense.com/v3/__http://camel.465427.n5.nabble.com/Re-Camel-CXF-with-SOAP-1-1-and-SOAP-1-2-tp5891286p5891347.html__;!!LdWlNaMnLCM!P8Vi7xBNFiS4qBWE3dJcf8RU1IuyI3KT9DBccJ8x2FBTOdSiIDgCQbd1uLZd3n4LUsGr$>
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!P8Vi7xBNFiS4qBWE3dJcf8RU1IuyI3KT9DBccJ8x2FBTOdSiIDgCQbd1uLZd3kQ4UhVH$>.
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!P8Vi7xBNFiS4qBWE3dJcf8RU1IuyI3KT9DBccJ8x2FBTOdSiIDgCQbd1uLZd3rraSMuL$>




Reply via email to