-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facing an error while Invoking a SOAP service method from Camel-K #3973
Comments
Hello, I think you may have a look at the following resources in order to test your route. I also suggest to have a working version in Camel/Camel Quarkus before trying to run in Camel K (ie, via Camel JBang) to simplify the troubleshooting in a local environment. Please refer to Camel Quarkus CXF component documentation, Camel CXF component documentation and the following Camel Quarkus CXF unit test that may give you hints on how to develop the route correctly (ie, it seems you're missing |
Thank you @squakez, I am trying to use Camel JBang and it is really helpful to debug the issues locally with the camel version.
I found the solution for the first question - Please ignore
Regards, |
Sorry, I don't have any example. You may check in the Camel Quarkus test or Camel examples maybe.
Yes, in that case it will use the apache maven repo. If it's not in the maven repo you normally use, you can adjust the configuration to use any additional repo as you're doing. |
Hi @squakez , Thank you for all your suggestions on this CXF SOAP invocation. Here I am attaching the sample code from GitHub. and the command i use to run is as below. https://github.com/gtata007/camel-k-soap/tree/develop camel run TestWeb.java --deps=camel-cxf:3.14.0 While I am trying to build/run the application with the camel command, it started throwing an error. Because it is unable to reference the java package/classes from the repository in my route builder java code. What are the possible ways to build this application by referring to the class files? Below is the error stack trace for reference. org.joor.ReflectException: Compilation error:
Can you please throw some light on this issue? Regards, |
This looks to be a generic Camel JBang question. I invite you to post the question to the chat or users/dev camel mailing list to have a wider audience and receive help. |
Hi @squakez , TestWeb.java // camel-k: language=java import org.apache.camel.builder.RouteBuilder; import org.apache.camel.Message; public class TestWeb extends RouteBuilder {
} Regards, |
Glad it worked and thanks to provide the example for any future reference! |
Hello Everyone,
I am trying a POC to invoke a sample SOAP service from Camel-K. My requirement is very simple I have a simple XML Payload which i need to pass to the SOAP operation. Is there any way to achieve this without having wsdl2java jax-ws client classes generation?
The sample code looks as below.
Camel-k Version : Camel K Client 1.10.2
Service : http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?wsdl
Run command:
kamel run -d camel:cxf-soap TestWeb.java --dev -t logging.level=DEBUG
Appreciate any valuable thoughts or suggestions on this.
Regards,
Guru Tata
The text was updated successfully, but these errors were encountered: