AXIS2 Generate wsdl 1.1

Submitted by surrizola on November 5, 2007 - 08:55 :url: http://wso2.org/forum/thread/2786

Hi, i am new in axis2, and i export a lot of webservices from my applicacion (spring based application). By defaul, axis2 export this services with wsdl 2.0 service contract definition (dynamic wsdl generation), but i need to export them with the wsdl 1.1 version.

Anyone now if there is any configuration parameter to set the wsdl version?

this url (http://localhost:8080/axis2/services/YourService?wsdl axis2 expoirt the wsdl with 2.0 vesrsion (same as with services/YourService?wsdl2 off course).

I read we can put some parameter like : http://sapo:8080/seguridad-web/services/AuthenticationService?wsdl=wsdl1.1

but the server response with this

<error>
  <description>Unable to generate WSDL 1.1 for this service</description>
  <reason>If you wish Axis2 to automatically generate the WSDL 1.1, then please +set useOriginalwsdl as false in your services.xml</reason>
 </error>

y try to add this parameter to the service definition but nothing change:

<service name="AuthenticationService" >
    <description>
         Authentication Service.
    </description>
    <parameter name="ServiceClass">ar.bcra.seguridad.client.servicio.AuthenticationService</parameter>
    <parameter name="ServiceObjectSupplier" locked="false">
               org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier
    </parameter>
    <parameter name="SpringBeanName">authenticationService</parameter>
    <parameter name="useOriginalwsdl">false</parameter>

Any help?

Problem In Deploying .aar file into axis2 How to return an array from a webservice?

  • Login or register to post comments
  • 3968 reads
  • Printer-friendly version
  • Send to friend
  • PDF version
  • Post to twitter Post to twitter

sandakith's picture RE : [AXIS2] Generate wsdl 1.1 Submitted by sandakith on November 5, 2007 - 19:10.

Hi, what is the version of axis2 that you are using, and are you using axis2 standalone server (axis2server.sh/bat) or you have deployed the webapp in a servlet containser.

using Axis2 1.3 with the standalone server running with the version service, I was able to acess the wsdl1.1 document with the uri http://localhost:8080/axis2/services/Version?wsdl and wsdl2 document with the uri http://localhost:8080/axis2/services/Version?wsdl2

this is my services.xml file:

<service name="Version">
    <description>
        This service is to get the running Axis version
    </description>
    <parameter name="ServiceClass">sample.axisversion.Version</parameter>
    <operation name="getVersion">
    <messageReceiver  class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
    </operation>
</service>