java - How do you generate a SOAP 1.2 WSDL with Enunciate? -


i working on web service written in java , generating web service client enunciate.

the project working fine soap 1.1, when tried upgrade soap 1.2, ran difficulties. wsdl generated enunciate remains soap 1.1 , packaged client.

in following advice here: https://jax-ws.java.net/2.1.5/docs/soap12.html attempted annotate service indicate soap 1.2, no avail:

@webservice(endpointinterface = "com.example.myservice", servicename="myservice") @service("myservice") @bindingtype(value=javax.xml.ws.soap.soapbinding.soap12http_binding) public class  myserviceimpl implements myservice { 

the maven plugin configuration looks this:

        <plugin>             <groupid>org.codehaus.enunciate</groupid>             <artifactid>maven-enunciate-plugin</artifactid>             <version>1.29</version>             <executions>                 <execution>                     <id>docs</id>                     <phase>prepare-package</phase>                     <goals>                         <goal>docs</goal>                     </goals>                     <configuration>                         <configfile>enunciate.xml</configfile>                     </configuration>                 </execution>                 <execution>                     <id>install</id>                     <goals>                         <goal>install-artifact</goal>                         <goal>deploy-artifact</goal>                     </goals>                     <configuration>                         <enunciateartifactid>java.client.library</enunciateartifactid>                         <groupid>com.example</groupid>                         <artifactid>myserviceclient</artifactid>                         <version>${client.version}</version>                     </configuration>                 </execution>             </executions>         </plugin>    

i not see looks helpful on enunciate xml documentation @ https://github.com/stoicflame/enunciate/wiki/module-xml.

how go getting soap 1.2 generated wsdl enunciate?

update

i have been doing little more digging , see wsdl generated through wsdl.fmt , has soap 1.1 namespaces , such hard-coded , doesn't account annotation or invoke cxf.

obviously, can invoke cxf generate soap 1.2 wsdls , can use enunciate re-use through usefile attribute on wsdl element. there way include wsdl file in enunciate client jar? without it, proxy generation seems fail.

what discovered enunciate not support either soap 1.2 wsdls or mix , match approach upon trying fall back. planned addition later version:

https://github.com/stoicflame/enunciate/issues/95#issuecomment-123498784


Comments