-
Notifications
You must be signed in to change notification settings - Fork 194
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
CxfSoapMtomIT fails in native mode #4214
Conversation
cc @llowinge |
No, I think both are useful and most importantly, we cannot merge them into a single Maven module, because they have different set of deps. |
Indeed, @ffang is that expected, that an MTOM service must have the Image BLOB wrapped inside a request/response object ( Within jbossws-cxf I also found only tests using that wrapped style and no BLOB args directly in service methods. |
So CxfSoapMtomAwtIT only failed in native mode, but it's JVM mode counterpart CxfSoapMtomAwtTest passed, right? If so, my gut is that this is something related to the javax.awt.headless in native mode, so that the javax.awt maynot fully working in native mode. As java.awt.Image requires graphic sever(something like X11 server on linux/unix machine), so javax.awt may not work if lack the graphic server or whatnot. Freeman |
No that's not really the case. The test passes after changing the signature of the service method from In Quarkiverse CXF I saw the So the question is whether |
No, there is no such requirements from CXF point of view. The signature
definitely should work if being defined correctly. If it doesn't work in your or Quarkiverse CXF, most likely the SEI(service endpoint interface) is incorrect(most likely annotations there not fully follow the JAXWS spec), then this can mess up the service model(what the message payload should be) which is generated from the SEI on the fly. If the SEI in your testcase is handwriting rather than auto-generated from a wsdl, you may run into this issue. And here I just post a SEI which works with javax.awt.Image image but not in a wrapper, and this is auto-generated from a well-defined wsdl, just FYI
|
Thanks a lot, I should try whether adding |
... and strange enough, when I changed
to
it worked flawlessly. |
Hi @ppalaga , I just add a CxfMtomConsumerMutipleParameterTest on my CSB working branch to demonstrate
work here ffang/camel-spring-boot-apache@e43b155 Freeman |
Adding an explicit |
fix #4208