Hi,

I've deployed an Axis2 web service to Oracle 11g application server
(version 10.3.3). I'm using Axis2 version 1.5. When I access the WSDL
I'm getting the following.

<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>

Google search pointed me to the following code snippet in
AxisService.java method printUserWSDL

      public void printUserWSDL(OutputStream out, String wsdlName)
 1020               throws AxisFault {
 1021           Definition definition = null;
 1022           // first find the correct wsdl definition
 1023           Parameter wsdlParameter =
getParameter(WSDLConstants.WSDL_4_J_DEFINITION);
 1024           if (wsdlParameter != null) {
 1025               definition = (Definition) wsdlParameter.getValue();
 1026           }
 1027   
 1028           if (definition != null) {
 1029               try {
 1030
printDefinitionObject(getWSDLDefinition(definition, wsdlName),
 1031                           out, null);
 1032               } catch (WSDLException e) {
 1033                   throw AxisFault.makeFault(e);
 1034               }
 1035           } else {
 1036               printWSDLError(out);
 1037           }
 1038   
 1039       }

It looks like it is expecting wsdl4jDefinition (value of constant
WSDLConstants.WSDL_4_J_DEFINITION) to be defined in services.xml. What
should be the value of this parameter? Google search didn't help. Please
help.
Thanks,

Rajan

Reply via email to