Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.7.3
-
None
-
None
-
* Axis2: 1.7.3
* Tomcat: 8.0.35
* OpenJDK: java-1.8.0-openjdk-debuginfo-1.8.0.91-6.b14.fc23.x86_64
Description
It seems some codes related with JAX-WS are hard-corded with SOAP 1.1 binding. It should be configurable with annotations.
In my example( https://github.com/emag/axis2-jaxws-soap12-demo) case, you should get a wsdl generated by axis2 runtime if you access 'http://localhost:8080/axis2-jaxws-soap12-demo-server/services/HelloWorldSoap12?wsdl'.
Axis2 uses wsgen(included JDK) to generate the requested wsdl at the time.
https://github.com/apache/axis2-java/blob/v1.7.3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java#L183-L184
and, however, initialize() set binding as SOAP 1.1 regardless of the service classess binding annotation.
https://github.com/apache/axis2-java/blob/v1.7.3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java#L389
so, wsgen arguments will set as SOAP 1.1.
https://github.com/apache/axis2-java/blob/v1.7.3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java#L208-L215
You must set extra arguments like extension, wsdl:Xsoap1.2 If you want to use wsgen for SOAP 1.2. so, wsgen will complain about it.
https://github.com/emag/axis2-jaxws-soap12-demo#error-log
Moreover, Martin Gainty told me some provider implementations are the same. Thanks a lot.
http://mail-archives.apache.org/mod_mbox/axis-java-user/201606.mbox/%3CBLU172-W17B41A7B685582B0EC2288AE570%40phx.gbl%3E
Again, I think they should not be hard-coded with specific value, but conigurable with annotations.