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
CXF generates different WSDL files with JVM/Native modes #4746
Comments
I am not finding any WSDL test in https://github.com/llowinge/camel-quarkus-examples/tree/cxf-soap-example/cxf-soap Along reviewing and polishing the java2ws PR in QCXF I wrote this test that compares the WSDL produced by java2ws with the served one. For native mode, I am seeing a correct document being served, but it is indeed slightly different than with JVM mode. The difference is in namespace prefixes. Where JVM has
native has
Then all occurrences of those prefixes also differ - e.g.
vs.
This should not happen, but I would not say it is a serious bug. The native WSDL correct and mutatis mutandis also equal with the JVM one. Is this what you also see in the quickstart? |
@ppalaga No, i see much bigger difference (you can easily try it - just run the app in JVM and in Native, then access I'm attaching the diffchecker (JVM WSDL vs Native WDSL) without |
The main issue in https://github.com/llowinge/camel-quarkus-examples/tree/cxf-soap-example/cxf-soap was that the Service interface was not annotated with
Both have fixes now. I am keeping this issue open while the releases 2.0.0 and 1.5.12 of quarkus-cxf reach Camel Quarkus |
I should also add a test ensuring that the WSDLs served by JVM and native endpoints are the same. |
Reproducer https://github.com/llowinge/camel-quarkus-examples/tree/cxf-soap-example/cxf-soap.
With JVM mode it generates correct WSDL at
curl http://0.0.0.0:8081/cxf/services/contact\?wsdl
, but with Native it generatesWhen i've added
@WebService
(which should be mandatory - but works in JVM without it) annotation, the WSDL got changed, but still the test didn't pass (but passed in JVM).The text was updated successfully, but these errors were encountered: