You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Mohinder Verma (JIRA)" <ji...@apache.org> on 2008/07/02 14:01:45 UTC

[jira] Created: (AXIS2C-1224) Error in WSDL2C while generating stubs in C

Error in WSDL2C while generating stubs in C
-------------------------------------------

                 Key: AXIS2C-1224
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1224
             Project: Axis2-C
          Issue Type: Bug
          Components: wsdl2c tool
    Affects Versions: 1.4.0
         Environment: Windows 2003, jdk1.5
            Reporter: Mohinder Verma
             Fix For: 1.4.0


We are trying to generate C code with WSDL2C tool. We are running WSDL2C.bat as follows:

WSDL2C.bat -uri D:\Axis2c\bin\tools\wsdl2c\PublicReportService.wsdl -d adb -u

The WSDL file is as below:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:intf="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
 <wsdl:types>
  <schema targetNamespace="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="ArrayOf_xsd_string">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
     </restriction>
    </complexContent>
   </complexType>
   <complexType name="ParamNameValue">
    <sequence>
     <element name="multiValuesAllowed" type="xsd:boolean"/>
     <element name="name" nillable="true" type="xsd:string"/>
     <element name="values" nillable="true" type="impl:ArrayOf_xsd_string"/>
    </sequence>
   </complexType>
   <complexType name="ArrayOfParamNameValue">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ParamNameValue[]"/>
     </restriction>
    </complexContent>
   </complexType>
   <complexType name="ReportRequest">
    <sequence>
     <element name="attributeFormat" nillable="true" type="xsd:string"/>
     <element name="attributeLocale" nillable="true" type="xsd:string"/>
     <element name="attributeTemplate" nillable="true" type="xsd:string"/>
     <element name="parameterNameValues" nillable="true" type="impl:ArrayOfParamNameValue"/>
     <element name="reportAbsolutePath" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="AccessDeniedException">
    <sequence/>
   </complexType>
   <complexType name="OperationFailedException">
    <sequence/>
   </complexType>
   <complexType name="InvalidParametersException">
    <sequence/>
   </complexType>
   <complexType name="ReportResponse">
    <sequence>
     <element name="reportBytes" nillable="true" type="xsd:base64Binary"/>
     <element name="reportContentType" nillable="true" type="xsd:string"/>
     <element name="reportLocale" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="ReportDefinition">
    <sequence>
     <element name="defaultOutputFormat" nillable="true" type="xsd:string"/>
     <element name="defaultTemplateId" nillable="true" type="xsd:string"/>
     <element name="parameterNames" nillable="true" type="impl:ArrayOf_xsd_string"/>
     <element name="reportParameterNameValues" nillable="true" type="impl:ArrayOfParamNameValue"/>
     <element name="templateIds" nillable="true" type="impl:ArrayOf_xsd_string"/>
    </sequence>
   </complexType>
   <complexType name="ItemData">
    <sequence>
     <element name="absolutePath" nillable="true" type="xsd:string"/>
     <element name="creationDate" nillable="true" type="xsd:dateTime"/>
     <element name="displayName" nillable="true" type="xsd:string"/>
     <element name="fileName" nillable="true" type="xsd:string"/>
     <element name="lastModified" nillable="true" type="xsd:dateTime"/>
     <element name="lastModifier" nillable="true" type="xsd:string"/>
     <element name="owner" nillable="true" type="xsd:string"/>
     <element name="parentAbsolutePath" nillable="true" type="xsd:string"/>
     <element name="type" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="ArrayOfItemData">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ItemData[]"/>
     </restriction>
    </complexContent>
   </complexType>
   <complexType name="EMailDeliveryOption">
    <sequence>
     <element name="emailBCC" nillable="true" type="xsd:string"/>
     <element name="emailBody" nillable="true" type="xsd:string"/>
     <element name="emailCC" nillable="true" type="xsd:string"/>
     <element name="emailFrom" nillable="true" type="xsd:string"/>
     <element name="emailReplyTo" nillable="true" type="xsd:string"/>
     <element name="emailSubject" nillable="true" type="xsd:string"/>
     <element name="emailTo" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="FaxDeliveryOption">
    <sequence>
     <element name="faxNumber" nillable="true" type="xsd:string"/>
     <element name="faxServer" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="FTPDeliveryOption">
    <sequence>
     <element name="ftpServerName" nillable="true" type="xsd:string"/>
     <element name="ftpUserName" nillable="true" type="xsd:string"/>
     <element name="ftpUserPassword" nillable="true" type="xsd:string"/>
     <element name="remoteFile" nillable="true" type="xsd:string"/>
     <element name="sftpOption" type="xsd:boolean"/>
    </sequence>
   </complexType>
   <complexType name="LocalDeliveryOption">
    <sequence>
     <element name="destination" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="PrintDeliveryOption">
    <sequence>
     <element name="printNumberOfCopy" nillable="true" type="xsd:string"/>
     <element name="printRange" nillable="true" type="xsd:string"/>
     <element name="printSide" nillable="true" type="xsd:string"/>
     <element name="printTray" nillable="true" type="xsd:string"/>
     <element name="printerName" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="WebDAVDeliveryOption">
    <sequence>
     <element name="deliveryAuthType" nillable="true" type="xsd:string"/>
     <element name="deliveryAuthTypeBasic" nillable="true" type="xsd:string"/>
     <element name="deliveryAuthTypeDigest" nillable="true" type="xsd:string"/>
     <element name="password" nillable="true" type="xsd:string"/>
     <element name="remoteFilePath" nillable="true" type="xsd:string"/>
     <element name="server" nillable="true" type="xsd:string"/>
     <element name="userName" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="DeliveryRequest">
    <sequence>
     <element name="emailOption" nillable="true" type="impl:EMailDeliveryOption"/>
     <element name="faxOption" nillable="true" type="impl:FaxDeliveryOption"/>
     <element name="ftpOption" nillable="true" type="impl:FTPDeliveryOption"/>
     <element name="localOption" nillable="true" type="impl:LocalDeliveryOption"/>
     <element name="printOption" nillable="true" type="impl:PrintDeliveryOption"/>
     <element name="webDAVOption" nillable="true" type="impl:WebDAVDeliveryOption"/>
    </sequence>
   </complexType>
   <complexType name="ScheduleRequest">
    <sequence>
     <element name="deliveryRequest" nillable="true" type="impl:DeliveryRequest"/>
     <element name="endDate" nillable="true" type="xsd:dateTime"/>
     <element name="jobCalendar" nillable="true" type="xsd:string"/>
     <element name="jobLocale" nillable="true" type="xsd:string"/>
     <element name="jobTZ" nillable="true" type="xsd:string"/>
     <element name="notificationTo" nillable="true" type="xsd:string"/>
     <element name="notifyWhenFailed" type="xsd:boolean"/>
     <element name="notifyWhenSuccess" type="xsd:boolean"/>
     <element name="notifyWhenWarning" type="xsd:boolean"/>
     <element name="repeatCount" type="xsd:int"/>
     <element name="repeatInterval" type="xsd:int"/>
     <element name="reportRequest" nillable="true" type="impl:ReportRequest"/>
     <element name="saveDataOption" type="xsd:boolean"/>
     <element name="saveOutputOption" type="xsd:boolean"/>
     <element name="scheduleBurstringOption" type="xsd:boolean"/>
     <element name="schedulePublicOption" type="xsd:boolean"/>
     <element name="startDate" nillable="true" type="xsd:dateTime"/>
     <element name="useUTF8Option" type="xsd:boolean"/>
     <element name="userJobName" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>

   <wsdl:message name="getReportParametersResponse">

      <wsdl:part name="getReportParametersReturn" type="impl:ArrayOfParamNameValue"/>

   </wsdl:message>

   <wsdl:message name="getReportDefinitionResponse">

      <wsdl:part name="getReportDefinitionReturn" type="impl:ReportDefinition"/>

   </wsdl:message>

   <wsdl:message name="getReportParametersRequest">

      <wsdl:part name="reportRequest" type="impl:ReportRequest"/>

      <wsdl:part name="userID" type="xsd:string"/>

      <wsdl:part name="password" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="hasReportAccessResponse">

      <wsdl:part name="hasReportAccessReturn" type="xsd:boolean"/>

   </wsdl:message>

   <wsdl:message name="AccessDeniedException">

      <wsdl:part name="fault" type="impl:AccessDeniedException"/>

   </wsdl:message>

   <wsdl:message name="validateLoginResponse">

      <wsdl:part name="validateLoginReturn" type="xsd:boolean"/>

   </wsdl:message>

   <wsdl:message name="scheduleReportResponse">

      <wsdl:part name="scheduleReportReturn" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="runReportResponse">

      <wsdl:part name="runReportReturn" type="impl:ReportResponse"/>

   </wsdl:message>

   <wsdl:message name="OperationFailedException">

      <wsdl:part name="fault" type="impl:OperationFailedException"/>

   </wsdl:message>

   <wsdl:message name="getFolderContentsRequest">

      <wsdl:part name="folderAbsolutePath" type="xsd:string"/>

      <wsdl:part name="userID" type="xsd:string"/>

      <wsdl:part name="password" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="hasReportAccessRequest">

      <wsdl:part name="reportAbsolutePath" type="xsd:string"/>

      <wsdl:part name="userID" type="xsd:string"/>

      <wsdl:part name="password" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="getReportDefinitionRequest">

      <wsdl:part name="reportAbsolutePath" type="xsd:string"/>

      <wsdl:part name="userID" type="xsd:string"/>

      <wsdl:part name="password" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="getFolderContentsResponse">

      <wsdl:part name="getFolderContentsReturn" type="impl:ArrayOfItemData"/>

   </wsdl:message>

   <wsdl:message name="InvalidParametersException">

      <wsdl:part name="fault" type="impl:InvalidParametersException"/>

   </wsdl:message>

   <wsdl:message name="scheduleReportRequest">

      <wsdl:part name="scheduleRequest" type="impl:ScheduleRequest"/>

      <wsdl:part name="userID" type="xsd:string"/>

      <wsdl:part name="password" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="runReportRequest">

      <wsdl:part name="reportRequest" type="impl:ReportRequest"/>

      <wsdl:part name="userID" type="xsd:string"/>

      <wsdl:part name="password" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="validateLoginRequest">

      <wsdl:part name="userID" type="xsd:string"/>

      <wsdl:part name="password" type="xsd:string"/>

   </wsdl:message>

   <wsdl:portType name="PublicReportService">

      <wsdl:operation name="getReportParameters" parameterOrder="reportRequest userID password">

         <wsdl:input message="impl:getReportParametersRequest" name="getReportParametersRequest"/>

         <wsdl:output message="impl:getReportParametersResponse" name="getReportParametersResponse"/>

         <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>

         <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>

         <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>

      </wsdl:operation>

      <wsdl:operation name="validateLogin" parameterOrder="userID password">

         <wsdl:input message="impl:validateLoginRequest" name="validateLoginRequest"/>

         <wsdl:output message="impl:validateLoginResponse" name="validateLoginResponse"/>

      </wsdl:operation>

      <wsdl:operation name="runReport" parameterOrder="reportRequest userID password">

         <wsdl:input message="impl:runReportRequest" name="runReportRequest"/>

         <wsdl:output message="impl:runReportResponse" name="runReportResponse"/>

         <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>

         <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>

         <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>

      </wsdl:operation>

      <wsdl:operation name="getReportDefinition" parameterOrder="reportAbsolutePath userID password">

         <wsdl:input message="impl:getReportDefinitionRequest" name="getReportDefinitionRequest"/>

         <wsdl:output message="impl:getReportDefinitionResponse" name="getReportDefinitionResponse"/>

         <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>

         <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>

         <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>

      </wsdl:operation>

      <wsdl:operation name="getFolderContents" parameterOrder="folderAbsolutePath userID password">

         <wsdl:input message="impl:getFolderContentsRequest" name="getFolderContentsRequest"/>

         <wsdl:output message="impl:getFolderContentsResponse" name="getFolderContentsResponse"/>

         <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>

         <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>

         <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>

      </wsdl:operation>

      <wsdl:operation name="scheduleReport" parameterOrder="scheduleRequest userID password">

         <wsdl:input message="impl:scheduleReportRequest" name="scheduleReportRequest"/>

         <wsdl:output message="impl:scheduleReportResponse" name="scheduleReportResponse"/>

         <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>

         <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>

         <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>

      </wsdl:operation>

      <wsdl:operation name="hasReportAccess" parameterOrder="reportAbsolutePath userID password">

         <wsdl:input message="impl:hasReportAccessRequest" name="hasReportAccessRequest"/>

         <wsdl:output message="impl:hasReportAccessResponse" name="hasReportAccessResponse"/>

         <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="PublicReportServiceSoapBinding" type="impl:PublicReportService">

      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="getReportParameters">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getReportParametersRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="getReportParametersResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="AccessDeniedException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

         <wsdl:fault name="OperationFailedException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

         <wsdl:fault name="InvalidParametersException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="validateLogin">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="validateLoginRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="validateLoginResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="runReport">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="runReportRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="runReportResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="AccessDeniedException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

         <wsdl:fault name="OperationFailedException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

         <wsdl:fault name="InvalidParametersException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="getReportDefinition">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getReportDefinitionRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="getReportDefinitionResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="AccessDeniedException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

         <wsdl:fault name="OperationFailedException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

         <wsdl:fault name="InvalidParametersException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="getFolderContents">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getFolderContentsRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="getFolderContentsResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="AccessDeniedException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

         <wsdl:fault name="OperationFailedException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

         <wsdl:fault name="InvalidParametersException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="scheduleReport">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="scheduleReportRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="scheduleReportResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="AccessDeniedException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

         <wsdl:fault name="OperationFailedException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

         <wsdl:fault name="InvalidParametersException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="hasReportAccess">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="hasReportAccessRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="hasReportAccessResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:output>

         <wsdl:fault name="InvalidParametersException">

            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>

         </wsdl:fault>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="PublicReportServiceService">

      <wsdl:port binding="impl:PublicReportServiceSoapBinding" name="PublicReportService">

         <wsdlsoap:address location="http://localhost:9704/xmlpserver/services/PublicReportService"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>

Error thrown is as below:

Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)
Caused by: org.apache.axis2.AxisFault: Part 'fault' of fault message '{http://xmlns.oracle.com/oxp/service/PublicReportService}AccessDeniedException'
must be defined with 'element=QName' and not 'type=QName'
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1240)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:771)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:538)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:489)
        at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:363)
        at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
        ... 2 more

 Please help us to rectify this error.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-1224) Error in WSDL2C while generating stubs in C

Posted by "Dimuthu Gamage (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610679#action_12610679 ] 

Dimuthu Gamage commented on AXIS2C-1224:
----------------------------------------

first of all, there s a problem in the WSDL as mentioned as shown in the error message. That is by the rule that fault should always refers to an element and not to a type.
For an example instead,
   <wsdl:message name="OperationFailedException">

      <wsdl:part name="fault" type="impl:OperationFailedException"/>

   </wsdl:message>

you have to use something like
   <wsdl:message name="OperationFailedException">

      <wsdl:part name="fault" element="impl:OperationFailedExceptionElement"/>

   </wsdl:message>

Where OperationFailedExceptionElement is declared in the schema section
<xsd:element name="OperationFailedExceptionElement" type="impl:OperationFailedException"/> 

And the second thing is WSDL2C generated code is not handling soap encoded types correctly. (That is rpc-encoded style WSDLS). Because WSDL2C is mainly designed to support DOC-LIT style WSDLS. 



> Error in WSDL2C while generating stubs in C
> -------------------------------------------
>
>                 Key: AXIS2C-1224
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1224
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: wsdl2c tool
>    Affects Versions: 1.4.0
>         Environment: Windows 2003, jdk1.5
>            Reporter: Mohinder Verma
>             Fix For: 1.4.0
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> We are trying to generate C code with WSDL2C tool. We are running WSDL2C.bat as follows:
> WSDL2C.bat -uri D:\Axis2c\bin\tools\wsdl2c\PublicReportService.wsdl -d adb -u
> The WSDL file is as below:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:intf="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.3
> Built on Oct 05, 2005 (05:23:37 EDT)-->
>  <wsdl:types>
>   <schema targetNamespace="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns="http://www.w3.org/2001/XMLSchema">
>    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
>    <complexType name="ArrayOf_xsd_string">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="ParamNameValue">
>     <sequence>
>      <element name="multiValuesAllowed" type="xsd:boolean"/>
>      <element name="name" nillable="true" type="xsd:string"/>
>      <element name="values" nillable="true" type="impl:ArrayOf_xsd_string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOfParamNameValue">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ParamNameValue[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="ReportRequest">
>     <sequence>
>      <element name="attributeFormat" nillable="true" type="xsd:string"/>
>      <element name="attributeLocale" nillable="true" type="xsd:string"/>
>      <element name="attributeTemplate" nillable="true" type="xsd:string"/>
>      <element name="parameterNameValues" nillable="true" type="impl:ArrayOfParamNameValue"/>
>      <element name="reportAbsolutePath" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="AccessDeniedException">
>     <sequence/>
>    </complexType>
>    <complexType name="OperationFailedException">
>     <sequence/>
>    </complexType>
>    <complexType name="InvalidParametersException">
>     <sequence/>
>    </complexType>
>    <complexType name="ReportResponse">
>     <sequence>
>      <element name="reportBytes" nillable="true" type="xsd:base64Binary"/>
>      <element name="reportContentType" nillable="true" type="xsd:string"/>
>      <element name="reportLocale" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ReportDefinition">
>     <sequence>
>      <element name="defaultOutputFormat" nillable="true" type="xsd:string"/>
>      <element name="defaultTemplateId" nillable="true" type="xsd:string"/>
>      <element name="parameterNames" nillable="true" type="impl:ArrayOf_xsd_string"/>
>      <element name="reportParameterNameValues" nillable="true" type="impl:ArrayOfParamNameValue"/>
>      <element name="templateIds" nillable="true" type="impl:ArrayOf_xsd_string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ItemData">
>     <sequence>
>      <element name="absolutePath" nillable="true" type="xsd:string"/>
>      <element name="creationDate" nillable="true" type="xsd:dateTime"/>
>      <element name="displayName" nillable="true" type="xsd:string"/>
>      <element name="fileName" nillable="true" type="xsd:string"/>
>      <element name="lastModified" nillable="true" type="xsd:dateTime"/>
>      <element name="lastModifier" nillable="true" type="xsd:string"/>
>      <element name="owner" nillable="true" type="xsd:string"/>
>      <element name="parentAbsolutePath" nillable="true" type="xsd:string"/>
>      <element name="type" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOfItemData">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ItemData[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="EMailDeliveryOption">
>     <sequence>
>      <element name="emailBCC" nillable="true" type="xsd:string"/>
>      <element name="emailBody" nillable="true" type="xsd:string"/>
>      <element name="emailCC" nillable="true" type="xsd:string"/>
>      <element name="emailFrom" nillable="true" type="xsd:string"/>
>      <element name="emailReplyTo" nillable="true" type="xsd:string"/>
>      <element name="emailSubject" nillable="true" type="xsd:string"/>
>      <element name="emailTo" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="FaxDeliveryOption">
>     <sequence>
>      <element name="faxNumber" nillable="true" type="xsd:string"/>
>      <element name="faxServer" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="FTPDeliveryOption">
>     <sequence>
>      <element name="ftpServerName" nillable="true" type="xsd:string"/>
>      <element name="ftpUserName" nillable="true" type="xsd:string"/>
>      <element name="ftpUserPassword" nillable="true" type="xsd:string"/>
>      <element name="remoteFile" nillable="true" type="xsd:string"/>
>      <element name="sftpOption" type="xsd:boolean"/>
>     </sequence>
>    </complexType>
>    <complexType name="LocalDeliveryOption">
>     <sequence>
>      <element name="destination" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="PrintDeliveryOption">
>     <sequence>
>      <element name="printNumberOfCopy" nillable="true" type="xsd:string"/>
>      <element name="printRange" nillable="true" type="xsd:string"/>
>      <element name="printSide" nillable="true" type="xsd:string"/>
>      <element name="printTray" nillable="true" type="xsd:string"/>
>      <element name="printerName" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="WebDAVDeliveryOption">
>     <sequence>
>      <element name="deliveryAuthType" nillable="true" type="xsd:string"/>
>      <element name="deliveryAuthTypeBasic" nillable="true" type="xsd:string"/>
>      <element name="deliveryAuthTypeDigest" nillable="true" type="xsd:string"/>
>      <element name="password" nillable="true" type="xsd:string"/>
>      <element name="remoteFilePath" nillable="true" type="xsd:string"/>
>      <element name="server" nillable="true" type="xsd:string"/>
>      <element name="userName" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="DeliveryRequest">
>     <sequence>
>      <element name="emailOption" nillable="true" type="impl:EMailDeliveryOption"/>
>      <element name="faxOption" nillable="true" type="impl:FaxDeliveryOption"/>
>      <element name="ftpOption" nillable="true" type="impl:FTPDeliveryOption"/>
>      <element name="localOption" nillable="true" type="impl:LocalDeliveryOption"/>
>      <element name="printOption" nillable="true" type="impl:PrintDeliveryOption"/>
>      <element name="webDAVOption" nillable="true" type="impl:WebDAVDeliveryOption"/>
>     </sequence>
>    </complexType>
>    <complexType name="ScheduleRequest">
>     <sequence>
>      <element name="deliveryRequest" nillable="true" type="impl:DeliveryRequest"/>
>      <element name="endDate" nillable="true" type="xsd:dateTime"/>
>      <element name="jobCalendar" nillable="true" type="xsd:string"/>
>      <element name="jobLocale" nillable="true" type="xsd:string"/>
>      <element name="jobTZ" nillable="true" type="xsd:string"/>
>      <element name="notificationTo" nillable="true" type="xsd:string"/>
>      <element name="notifyWhenFailed" type="xsd:boolean"/>
>      <element name="notifyWhenSuccess" type="xsd:boolean"/>
>      <element name="notifyWhenWarning" type="xsd:boolean"/>
>      <element name="repeatCount" type="xsd:int"/>
>      <element name="repeatInterval" type="xsd:int"/>
>      <element name="reportRequest" nillable="true" type="impl:ReportRequest"/>
>      <element name="saveDataOption" type="xsd:boolean"/>
>      <element name="saveOutputOption" type="xsd:boolean"/>
>      <element name="scheduleBurstringOption" type="xsd:boolean"/>
>      <element name="schedulePublicOption" type="xsd:boolean"/>
>      <element name="startDate" nillable="true" type="xsd:dateTime"/>
>      <element name="useUTF8Option" type="xsd:boolean"/>
>      <element name="userJobName" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="getReportParametersResponse">
>       <wsdl:part name="getReportParametersReturn" type="impl:ArrayOfParamNameValue"/>
>    </wsdl:message>
>    <wsdl:message name="getReportDefinitionResponse">
>       <wsdl:part name="getReportDefinitionReturn" type="impl:ReportDefinition"/>
>    </wsdl:message>
>    <wsdl:message name="getReportParametersRequest">
>       <wsdl:part name="reportRequest" type="impl:ReportRequest"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="hasReportAccessResponse">
>       <wsdl:part name="hasReportAccessReturn" type="xsd:boolean"/>
>    </wsdl:message>
>    <wsdl:message name="AccessDeniedException">
>       <wsdl:part name="fault" type="impl:AccessDeniedException"/>
>    </wsdl:message>
>    <wsdl:message name="validateLoginResponse">
>       <wsdl:part name="validateLoginReturn" type="xsd:boolean"/>
>    </wsdl:message>
>    <wsdl:message name="scheduleReportResponse">
>       <wsdl:part name="scheduleReportReturn" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="runReportResponse">
>       <wsdl:part name="runReportReturn" type="impl:ReportResponse"/>
>    </wsdl:message>
>    <wsdl:message name="OperationFailedException">
>       <wsdl:part name="fault" type="impl:OperationFailedException"/>
>    </wsdl:message>
>    <wsdl:message name="getFolderContentsRequest">
>       <wsdl:part name="folderAbsolutePath" type="xsd:string"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="hasReportAccessRequest">
>       <wsdl:part name="reportAbsolutePath" type="xsd:string"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="getReportDefinitionRequest">
>       <wsdl:part name="reportAbsolutePath" type="xsd:string"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="getFolderContentsResponse">
>       <wsdl:part name="getFolderContentsReturn" type="impl:ArrayOfItemData"/>
>    </wsdl:message>
>    <wsdl:message name="InvalidParametersException">
>       <wsdl:part name="fault" type="impl:InvalidParametersException"/>
>    </wsdl:message>
>    <wsdl:message name="scheduleReportRequest">
>       <wsdl:part name="scheduleRequest" type="impl:ScheduleRequest"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="runReportRequest">
>       <wsdl:part name="reportRequest" type="impl:ReportRequest"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="validateLoginRequest">
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:portType name="PublicReportService">
>       <wsdl:operation name="getReportParameters" parameterOrder="reportRequest userID password">
>          <wsdl:input message="impl:getReportParametersRequest" name="getReportParametersRequest"/>
>          <wsdl:output message="impl:getReportParametersResponse" name="getReportParametersResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="validateLogin" parameterOrder="userID password">
>          <wsdl:input message="impl:validateLoginRequest" name="validateLoginRequest"/>
>          <wsdl:output message="impl:validateLoginResponse" name="validateLoginResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="runReport" parameterOrder="reportRequest userID password">
>          <wsdl:input message="impl:runReportRequest" name="runReportRequest"/>
>          <wsdl:output message="impl:runReportResponse" name="runReportResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="getReportDefinition" parameterOrder="reportAbsolutePath userID password">
>          <wsdl:input message="impl:getReportDefinitionRequest" name="getReportDefinitionRequest"/>
>          <wsdl:output message="impl:getReportDefinitionResponse" name="getReportDefinitionResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="getFolderContents" parameterOrder="folderAbsolutePath userID password">
>          <wsdl:input message="impl:getFolderContentsRequest" name="getFolderContentsRequest"/>
>          <wsdl:output message="impl:getFolderContentsResponse" name="getFolderContentsResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="scheduleReport" parameterOrder="scheduleRequest userID password">
>          <wsdl:input message="impl:scheduleReportRequest" name="scheduleReportRequest"/>
>          <wsdl:output message="impl:scheduleReportResponse" name="scheduleReportResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="hasReportAccess" parameterOrder="reportAbsolutePath userID password">
>          <wsdl:input message="impl:hasReportAccessRequest" name="hasReportAccessRequest"/>
>          <wsdl:output message="impl:hasReportAccessResponse" name="hasReportAccessResponse"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="PublicReportServiceSoapBinding" type="impl:PublicReportService">
>       <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="getReportParameters">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getReportParametersRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getReportParametersResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="validateLogin">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="validateLoginRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="validateLoginResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="runReport">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="runReportRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="runReportResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="getReportDefinition">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getReportDefinitionRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getReportDefinitionResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="getFolderContents">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getFolderContentsRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getFolderContentsResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="scheduleReport">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="scheduleReportRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="scheduleReportResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="hasReportAccess">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="hasReportAccessRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="hasReportAccessResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="PublicReportServiceService">
>       <wsdl:port binding="impl:PublicReportServiceSoapBinding" name="PublicReportService">
>          <wsdlsoap:address location="http://localhost:9704/xmlpserver/services/PublicReportService"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> Error thrown is as below:
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)
> Caused by: org.apache.axis2.AxisFault: Part 'fault' of fault message '{http://xmlns.oracle.com/oxp/service/PublicReportService}AccessDeniedException'
> must be defined with 'element=QName' and not 'type=QName'
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1240)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:771)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:538)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:489)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:363)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         ... 2 more
>  Please help us to rectify this error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-1224) Error in WSDL2C while generating stubs in C

Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

S.Uthaiyashankar updated AXIS2C-1224:
-------------------------------------

    Fix Version/s:     (was: Current (Nightly))
                   1.6.0

> Error in WSDL2C while generating stubs in C
> -------------------------------------------
>
>                 Key: AXIS2C-1224
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1224
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: wsdl2c tool
>    Affects Versions: 1.4.0
>         Environment: Windows 2003, jdk1.5
>            Reporter: Mohinder Verma
>             Fix For: 1.6.0
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> We are trying to generate C code with WSDL2C tool. We are running WSDL2C.bat as follows:
> WSDL2C.bat -uri D:\Axis2c\bin\tools\wsdl2c\PublicReportService.wsdl -d adb -u
> The WSDL file is as below:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:intf="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.3
> Built on Oct 05, 2005 (05:23:37 EDT)-->
>  <wsdl:types>
>   <schema targetNamespace="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns="http://www.w3.org/2001/XMLSchema">
>    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
>    <complexType name="ArrayOf_xsd_string">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="ParamNameValue">
>     <sequence>
>      <element name="multiValuesAllowed" type="xsd:boolean"/>
>      <element name="name" nillable="true" type="xsd:string"/>
>      <element name="values" nillable="true" type="impl:ArrayOf_xsd_string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOfParamNameValue">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ParamNameValue[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="ReportRequest">
>     <sequence>
>      <element name="attributeFormat" nillable="true" type="xsd:string"/>
>      <element name="attributeLocale" nillable="true" type="xsd:string"/>
>      <element name="attributeTemplate" nillable="true" type="xsd:string"/>
>      <element name="parameterNameValues" nillable="true" type="impl:ArrayOfParamNameValue"/>
>      <element name="reportAbsolutePath" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="AccessDeniedException">
>     <sequence/>
>    </complexType>
>    <complexType name="OperationFailedException">
>     <sequence/>
>    </complexType>
>    <complexType name="InvalidParametersException">
>     <sequence/>
>    </complexType>
>    <complexType name="ReportResponse">
>     <sequence>
>      <element name="reportBytes" nillable="true" type="xsd:base64Binary"/>
>      <element name="reportContentType" nillable="true" type="xsd:string"/>
>      <element name="reportLocale" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ReportDefinition">
>     <sequence>
>      <element name="defaultOutputFormat" nillable="true" type="xsd:string"/>
>      <element name="defaultTemplateId" nillable="true" type="xsd:string"/>
>      <element name="parameterNames" nillable="true" type="impl:ArrayOf_xsd_string"/>
>      <element name="reportParameterNameValues" nillable="true" type="impl:ArrayOfParamNameValue"/>
>      <element name="templateIds" nillable="true" type="impl:ArrayOf_xsd_string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ItemData">
>     <sequence>
>      <element name="absolutePath" nillable="true" type="xsd:string"/>
>      <element name="creationDate" nillable="true" type="xsd:dateTime"/>
>      <element name="displayName" nillable="true" type="xsd:string"/>
>      <element name="fileName" nillable="true" type="xsd:string"/>
>      <element name="lastModified" nillable="true" type="xsd:dateTime"/>
>      <element name="lastModifier" nillable="true" type="xsd:string"/>
>      <element name="owner" nillable="true" type="xsd:string"/>
>      <element name="parentAbsolutePath" nillable="true" type="xsd:string"/>
>      <element name="type" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOfItemData">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ItemData[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="EMailDeliveryOption">
>     <sequence>
>      <element name="emailBCC" nillable="true" type="xsd:string"/>
>      <element name="emailBody" nillable="true" type="xsd:string"/>
>      <element name="emailCC" nillable="true" type="xsd:string"/>
>      <element name="emailFrom" nillable="true" type="xsd:string"/>
>      <element name="emailReplyTo" nillable="true" type="xsd:string"/>
>      <element name="emailSubject" nillable="true" type="xsd:string"/>
>      <element name="emailTo" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="FaxDeliveryOption">
>     <sequence>
>      <element name="faxNumber" nillable="true" type="xsd:string"/>
>      <element name="faxServer" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="FTPDeliveryOption">
>     <sequence>
>      <element name="ftpServerName" nillable="true" type="xsd:string"/>
>      <element name="ftpUserName" nillable="true" type="xsd:string"/>
>      <element name="ftpUserPassword" nillable="true" type="xsd:string"/>
>      <element name="remoteFile" nillable="true" type="xsd:string"/>
>      <element name="sftpOption" type="xsd:boolean"/>
>     </sequence>
>    </complexType>
>    <complexType name="LocalDeliveryOption">
>     <sequence>
>      <element name="destination" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="PrintDeliveryOption">
>     <sequence>
>      <element name="printNumberOfCopy" nillable="true" type="xsd:string"/>
>      <element name="printRange" nillable="true" type="xsd:string"/>
>      <element name="printSide" nillable="true" type="xsd:string"/>
>      <element name="printTray" nillable="true" type="xsd:string"/>
>      <element name="printerName" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="WebDAVDeliveryOption">
>     <sequence>
>      <element name="deliveryAuthType" nillable="true" type="xsd:string"/>
>      <element name="deliveryAuthTypeBasic" nillable="true" type="xsd:string"/>
>      <element name="deliveryAuthTypeDigest" nillable="true" type="xsd:string"/>
>      <element name="password" nillable="true" type="xsd:string"/>
>      <element name="remoteFilePath" nillable="true" type="xsd:string"/>
>      <element name="server" nillable="true" type="xsd:string"/>
>      <element name="userName" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="DeliveryRequest">
>     <sequence>
>      <element name="emailOption" nillable="true" type="impl:EMailDeliveryOption"/>
>      <element name="faxOption" nillable="true" type="impl:FaxDeliveryOption"/>
>      <element name="ftpOption" nillable="true" type="impl:FTPDeliveryOption"/>
>      <element name="localOption" nillable="true" type="impl:LocalDeliveryOption"/>
>      <element name="printOption" nillable="true" type="impl:PrintDeliveryOption"/>
>      <element name="webDAVOption" nillable="true" type="impl:WebDAVDeliveryOption"/>
>     </sequence>
>    </complexType>
>    <complexType name="ScheduleRequest">
>     <sequence>
>      <element name="deliveryRequest" nillable="true" type="impl:DeliveryRequest"/>
>      <element name="endDate" nillable="true" type="xsd:dateTime"/>
>      <element name="jobCalendar" nillable="true" type="xsd:string"/>
>      <element name="jobLocale" nillable="true" type="xsd:string"/>
>      <element name="jobTZ" nillable="true" type="xsd:string"/>
>      <element name="notificationTo" nillable="true" type="xsd:string"/>
>      <element name="notifyWhenFailed" type="xsd:boolean"/>
>      <element name="notifyWhenSuccess" type="xsd:boolean"/>
>      <element name="notifyWhenWarning" type="xsd:boolean"/>
>      <element name="repeatCount" type="xsd:int"/>
>      <element name="repeatInterval" type="xsd:int"/>
>      <element name="reportRequest" nillable="true" type="impl:ReportRequest"/>
>      <element name="saveDataOption" type="xsd:boolean"/>
>      <element name="saveOutputOption" type="xsd:boolean"/>
>      <element name="scheduleBurstringOption" type="xsd:boolean"/>
>      <element name="schedulePublicOption" type="xsd:boolean"/>
>      <element name="startDate" nillable="true" type="xsd:dateTime"/>
>      <element name="useUTF8Option" type="xsd:boolean"/>
>      <element name="userJobName" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="getReportParametersResponse">
>       <wsdl:part name="getReportParametersReturn" type="impl:ArrayOfParamNameValue"/>
>    </wsdl:message>
>    <wsdl:message name="getReportDefinitionResponse">
>       <wsdl:part name="getReportDefinitionReturn" type="impl:ReportDefinition"/>
>    </wsdl:message>
>    <wsdl:message name="getReportParametersRequest">
>       <wsdl:part name="reportRequest" type="impl:ReportRequest"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="hasReportAccessResponse">
>       <wsdl:part name="hasReportAccessReturn" type="xsd:boolean"/>
>    </wsdl:message>
>    <wsdl:message name="AccessDeniedException">
>       <wsdl:part name="fault" type="impl:AccessDeniedException"/>
>    </wsdl:message>
>    <wsdl:message name="validateLoginResponse">
>       <wsdl:part name="validateLoginReturn" type="xsd:boolean"/>
>    </wsdl:message>
>    <wsdl:message name="scheduleReportResponse">
>       <wsdl:part name="scheduleReportReturn" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="runReportResponse">
>       <wsdl:part name="runReportReturn" type="impl:ReportResponse"/>
>    </wsdl:message>
>    <wsdl:message name="OperationFailedException">
>       <wsdl:part name="fault" type="impl:OperationFailedException"/>
>    </wsdl:message>
>    <wsdl:message name="getFolderContentsRequest">
>       <wsdl:part name="folderAbsolutePath" type="xsd:string"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="hasReportAccessRequest">
>       <wsdl:part name="reportAbsolutePath" type="xsd:string"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="getReportDefinitionRequest">
>       <wsdl:part name="reportAbsolutePath" type="xsd:string"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="getFolderContentsResponse">
>       <wsdl:part name="getFolderContentsReturn" type="impl:ArrayOfItemData"/>
>    </wsdl:message>
>    <wsdl:message name="InvalidParametersException">
>       <wsdl:part name="fault" type="impl:InvalidParametersException"/>
>    </wsdl:message>
>    <wsdl:message name="scheduleReportRequest">
>       <wsdl:part name="scheduleRequest" type="impl:ScheduleRequest"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="runReportRequest">
>       <wsdl:part name="reportRequest" type="impl:ReportRequest"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="validateLoginRequest">
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:portType name="PublicReportService">
>       <wsdl:operation name="getReportParameters" parameterOrder="reportRequest userID password">
>          <wsdl:input message="impl:getReportParametersRequest" name="getReportParametersRequest"/>
>          <wsdl:output message="impl:getReportParametersResponse" name="getReportParametersResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="validateLogin" parameterOrder="userID password">
>          <wsdl:input message="impl:validateLoginRequest" name="validateLoginRequest"/>
>          <wsdl:output message="impl:validateLoginResponse" name="validateLoginResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="runReport" parameterOrder="reportRequest userID password">
>          <wsdl:input message="impl:runReportRequest" name="runReportRequest"/>
>          <wsdl:output message="impl:runReportResponse" name="runReportResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="getReportDefinition" parameterOrder="reportAbsolutePath userID password">
>          <wsdl:input message="impl:getReportDefinitionRequest" name="getReportDefinitionRequest"/>
>          <wsdl:output message="impl:getReportDefinitionResponse" name="getReportDefinitionResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="getFolderContents" parameterOrder="folderAbsolutePath userID password">
>          <wsdl:input message="impl:getFolderContentsRequest" name="getFolderContentsRequest"/>
>          <wsdl:output message="impl:getFolderContentsResponse" name="getFolderContentsResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="scheduleReport" parameterOrder="scheduleRequest userID password">
>          <wsdl:input message="impl:scheduleReportRequest" name="scheduleReportRequest"/>
>          <wsdl:output message="impl:scheduleReportResponse" name="scheduleReportResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="hasReportAccess" parameterOrder="reportAbsolutePath userID password">
>          <wsdl:input message="impl:hasReportAccessRequest" name="hasReportAccessRequest"/>
>          <wsdl:output message="impl:hasReportAccessResponse" name="hasReportAccessResponse"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="PublicReportServiceSoapBinding" type="impl:PublicReportService">
>       <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="getReportParameters">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getReportParametersRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getReportParametersResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="validateLogin">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="validateLoginRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="validateLoginResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="runReport">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="runReportRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="runReportResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="getReportDefinition">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getReportDefinitionRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getReportDefinitionResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="getFolderContents">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getFolderContentsRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getFolderContentsResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="scheduleReport">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="scheduleReportRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="scheduleReportResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="hasReportAccess">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="hasReportAccessRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="hasReportAccessResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="PublicReportServiceService">
>       <wsdl:port binding="impl:PublicReportServiceSoapBinding" name="PublicReportService">
>          <wsdlsoap:address location="http://localhost:9704/xmlpserver/services/PublicReportService"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> Error thrown is as below:
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)
> Caused by: org.apache.axis2.AxisFault: Part 'fault' of fault message '{http://xmlns.oracle.com/oxp/service/PublicReportService}AccessDeniedException'
> must be defined with 'element=QName' and not 'type=QName'
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1240)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:771)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:538)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:489)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:363)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         ... 2 more
>  Please help us to rectify this error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2C-1224) Error in WSDL2C while generating stubs in C

Posted by "Dimuthu Gamage (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dimuthu Gamage updated AXIS2C-1224:
-----------------------------------

    Fix Version/s:     (was: 1.4.0)
                   Current (Nightly)

> Error in WSDL2C while generating stubs in C
> -------------------------------------------
>
>                 Key: AXIS2C-1224
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1224
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: wsdl2c tool
>    Affects Versions: 1.4.0
>         Environment: Windows 2003, jdk1.5
>            Reporter: Mohinder Verma
>             Fix For: Current (Nightly)
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> We are trying to generate C code with WSDL2C tool. We are running WSDL2C.bat as follows:
> WSDL2C.bat -uri D:\Axis2c\bin\tools\wsdl2c\PublicReportService.wsdl -d adb -u
> The WSDL file is as below:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:intf="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.3
> Built on Oct 05, 2005 (05:23:37 EDT)-->
>  <wsdl:types>
>   <schema targetNamespace="http://xmlns.oracle.com/oxp/service/PublicReportService" xmlns="http://www.w3.org/2001/XMLSchema">
>    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
>    <complexType name="ArrayOf_xsd_string">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="ParamNameValue">
>     <sequence>
>      <element name="multiValuesAllowed" type="xsd:boolean"/>
>      <element name="name" nillable="true" type="xsd:string"/>
>      <element name="values" nillable="true" type="impl:ArrayOf_xsd_string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOfParamNameValue">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ParamNameValue[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="ReportRequest">
>     <sequence>
>      <element name="attributeFormat" nillable="true" type="xsd:string"/>
>      <element name="attributeLocale" nillable="true" type="xsd:string"/>
>      <element name="attributeTemplate" nillable="true" type="xsd:string"/>
>      <element name="parameterNameValues" nillable="true" type="impl:ArrayOfParamNameValue"/>
>      <element name="reportAbsolutePath" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="AccessDeniedException">
>     <sequence/>
>    </complexType>
>    <complexType name="OperationFailedException">
>     <sequence/>
>    </complexType>
>    <complexType name="InvalidParametersException">
>     <sequence/>
>    </complexType>
>    <complexType name="ReportResponse">
>     <sequence>
>      <element name="reportBytes" nillable="true" type="xsd:base64Binary"/>
>      <element name="reportContentType" nillable="true" type="xsd:string"/>
>      <element name="reportLocale" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ReportDefinition">
>     <sequence>
>      <element name="defaultOutputFormat" nillable="true" type="xsd:string"/>
>      <element name="defaultTemplateId" nillable="true" type="xsd:string"/>
>      <element name="parameterNames" nillable="true" type="impl:ArrayOf_xsd_string"/>
>      <element name="reportParameterNameValues" nillable="true" type="impl:ArrayOfParamNameValue"/>
>      <element name="templateIds" nillable="true" type="impl:ArrayOf_xsd_string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ItemData">
>     <sequence>
>      <element name="absolutePath" nillable="true" type="xsd:string"/>
>      <element name="creationDate" nillable="true" type="xsd:dateTime"/>
>      <element name="displayName" nillable="true" type="xsd:string"/>
>      <element name="fileName" nillable="true" type="xsd:string"/>
>      <element name="lastModified" nillable="true" type="xsd:dateTime"/>
>      <element name="lastModifier" nillable="true" type="xsd:string"/>
>      <element name="owner" nillable="true" type="xsd:string"/>
>      <element name="parentAbsolutePath" nillable="true" type="xsd:string"/>
>      <element name="type" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="ArrayOfItemData">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ItemData[]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
>    <complexType name="EMailDeliveryOption">
>     <sequence>
>      <element name="emailBCC" nillable="true" type="xsd:string"/>
>      <element name="emailBody" nillable="true" type="xsd:string"/>
>      <element name="emailCC" nillable="true" type="xsd:string"/>
>      <element name="emailFrom" nillable="true" type="xsd:string"/>
>      <element name="emailReplyTo" nillable="true" type="xsd:string"/>
>      <element name="emailSubject" nillable="true" type="xsd:string"/>
>      <element name="emailTo" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="FaxDeliveryOption">
>     <sequence>
>      <element name="faxNumber" nillable="true" type="xsd:string"/>
>      <element name="faxServer" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="FTPDeliveryOption">
>     <sequence>
>      <element name="ftpServerName" nillable="true" type="xsd:string"/>
>      <element name="ftpUserName" nillable="true" type="xsd:string"/>
>      <element name="ftpUserPassword" nillable="true" type="xsd:string"/>
>      <element name="remoteFile" nillable="true" type="xsd:string"/>
>      <element name="sftpOption" type="xsd:boolean"/>
>     </sequence>
>    </complexType>
>    <complexType name="LocalDeliveryOption">
>     <sequence>
>      <element name="destination" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="PrintDeliveryOption">
>     <sequence>
>      <element name="printNumberOfCopy" nillable="true" type="xsd:string"/>
>      <element name="printRange" nillable="true" type="xsd:string"/>
>      <element name="printSide" nillable="true" type="xsd:string"/>
>      <element name="printTray" nillable="true" type="xsd:string"/>
>      <element name="printerName" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="WebDAVDeliveryOption">
>     <sequence>
>      <element name="deliveryAuthType" nillable="true" type="xsd:string"/>
>      <element name="deliveryAuthTypeBasic" nillable="true" type="xsd:string"/>
>      <element name="deliveryAuthTypeDigest" nillable="true" type="xsd:string"/>
>      <element name="password" nillable="true" type="xsd:string"/>
>      <element name="remoteFilePath" nillable="true" type="xsd:string"/>
>      <element name="server" nillable="true" type="xsd:string"/>
>      <element name="userName" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="DeliveryRequest">
>     <sequence>
>      <element name="emailOption" nillable="true" type="impl:EMailDeliveryOption"/>
>      <element name="faxOption" nillable="true" type="impl:FaxDeliveryOption"/>
>      <element name="ftpOption" nillable="true" type="impl:FTPDeliveryOption"/>
>      <element name="localOption" nillable="true" type="impl:LocalDeliveryOption"/>
>      <element name="printOption" nillable="true" type="impl:PrintDeliveryOption"/>
>      <element name="webDAVOption" nillable="true" type="impl:WebDAVDeliveryOption"/>
>     </sequence>
>    </complexType>
>    <complexType name="ScheduleRequest">
>     <sequence>
>      <element name="deliveryRequest" nillable="true" type="impl:DeliveryRequest"/>
>      <element name="endDate" nillable="true" type="xsd:dateTime"/>
>      <element name="jobCalendar" nillable="true" type="xsd:string"/>
>      <element name="jobLocale" nillable="true" type="xsd:string"/>
>      <element name="jobTZ" nillable="true" type="xsd:string"/>
>      <element name="notificationTo" nillable="true" type="xsd:string"/>
>      <element name="notifyWhenFailed" type="xsd:boolean"/>
>      <element name="notifyWhenSuccess" type="xsd:boolean"/>
>      <element name="notifyWhenWarning" type="xsd:boolean"/>
>      <element name="repeatCount" type="xsd:int"/>
>      <element name="repeatInterval" type="xsd:int"/>
>      <element name="reportRequest" nillable="true" type="impl:ReportRequest"/>
>      <element name="saveDataOption" type="xsd:boolean"/>
>      <element name="saveOutputOption" type="xsd:boolean"/>
>      <element name="scheduleBurstringOption" type="xsd:boolean"/>
>      <element name="schedulePublicOption" type="xsd:boolean"/>
>      <element name="startDate" nillable="true" type="xsd:dateTime"/>
>      <element name="useUTF8Option" type="xsd:boolean"/>
>      <element name="userJobName" nillable="true" type="xsd:string"/>
>     </sequence>
>    </complexType>
>   </schema>
>  </wsdl:types>
>    <wsdl:message name="getReportParametersResponse">
>       <wsdl:part name="getReportParametersReturn" type="impl:ArrayOfParamNameValue"/>
>    </wsdl:message>
>    <wsdl:message name="getReportDefinitionResponse">
>       <wsdl:part name="getReportDefinitionReturn" type="impl:ReportDefinition"/>
>    </wsdl:message>
>    <wsdl:message name="getReportParametersRequest">
>       <wsdl:part name="reportRequest" type="impl:ReportRequest"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="hasReportAccessResponse">
>       <wsdl:part name="hasReportAccessReturn" type="xsd:boolean"/>
>    </wsdl:message>
>    <wsdl:message name="AccessDeniedException">
>       <wsdl:part name="fault" type="impl:AccessDeniedException"/>
>    </wsdl:message>
>    <wsdl:message name="validateLoginResponse">
>       <wsdl:part name="validateLoginReturn" type="xsd:boolean"/>
>    </wsdl:message>
>    <wsdl:message name="scheduleReportResponse">
>       <wsdl:part name="scheduleReportReturn" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="runReportResponse">
>       <wsdl:part name="runReportReturn" type="impl:ReportResponse"/>
>    </wsdl:message>
>    <wsdl:message name="OperationFailedException">
>       <wsdl:part name="fault" type="impl:OperationFailedException"/>
>    </wsdl:message>
>    <wsdl:message name="getFolderContentsRequest">
>       <wsdl:part name="folderAbsolutePath" type="xsd:string"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="hasReportAccessRequest">
>       <wsdl:part name="reportAbsolutePath" type="xsd:string"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="getReportDefinitionRequest">
>       <wsdl:part name="reportAbsolutePath" type="xsd:string"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="getFolderContentsResponse">
>       <wsdl:part name="getFolderContentsReturn" type="impl:ArrayOfItemData"/>
>    </wsdl:message>
>    <wsdl:message name="InvalidParametersException">
>       <wsdl:part name="fault" type="impl:InvalidParametersException"/>
>    </wsdl:message>
>    <wsdl:message name="scheduleReportRequest">
>       <wsdl:part name="scheduleRequest" type="impl:ScheduleRequest"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="runReportRequest">
>       <wsdl:part name="reportRequest" type="impl:ReportRequest"/>
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:message name="validateLoginRequest">
>       <wsdl:part name="userID" type="xsd:string"/>
>       <wsdl:part name="password" type="xsd:string"/>
>    </wsdl:message>
>    <wsdl:portType name="PublicReportService">
>       <wsdl:operation name="getReportParameters" parameterOrder="reportRequest userID password">
>          <wsdl:input message="impl:getReportParametersRequest" name="getReportParametersRequest"/>
>          <wsdl:output message="impl:getReportParametersResponse" name="getReportParametersResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="validateLogin" parameterOrder="userID password">
>          <wsdl:input message="impl:validateLoginRequest" name="validateLoginRequest"/>
>          <wsdl:output message="impl:validateLoginResponse" name="validateLoginResponse"/>
>       </wsdl:operation>
>       <wsdl:operation name="runReport" parameterOrder="reportRequest userID password">
>          <wsdl:input message="impl:runReportRequest" name="runReportRequest"/>
>          <wsdl:output message="impl:runReportResponse" name="runReportResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="getReportDefinition" parameterOrder="reportAbsolutePath userID password">
>          <wsdl:input message="impl:getReportDefinitionRequest" name="getReportDefinitionRequest"/>
>          <wsdl:output message="impl:getReportDefinitionResponse" name="getReportDefinitionResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="getFolderContents" parameterOrder="folderAbsolutePath userID password">
>          <wsdl:input message="impl:getFolderContentsRequest" name="getFolderContentsRequest"/>
>          <wsdl:output message="impl:getFolderContentsResponse" name="getFolderContentsResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="scheduleReport" parameterOrder="scheduleRequest userID password">
>          <wsdl:input message="impl:scheduleReportRequest" name="scheduleReportRequest"/>
>          <wsdl:output message="impl:scheduleReportResponse" name="scheduleReportResponse"/>
>          <wsdl:fault message="impl:AccessDeniedException" name="AccessDeniedException"/>
>          <wsdl:fault message="impl:OperationFailedException" name="OperationFailedException"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>       <wsdl:operation name="hasReportAccess" parameterOrder="reportAbsolutePath userID password">
>          <wsdl:input message="impl:hasReportAccessRequest" name="hasReportAccessRequest"/>
>          <wsdl:output message="impl:hasReportAccessResponse" name="hasReportAccessResponse"/>
>          <wsdl:fault message="impl:InvalidParametersException" name="InvalidParametersException"/>
>       </wsdl:operation>
>    </wsdl:portType>
>    <wsdl:binding name="PublicReportServiceSoapBinding" type="impl:PublicReportService">
>       <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
>       <wsdl:operation name="getReportParameters">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getReportParametersRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getReportParametersResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="validateLogin">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="validateLoginRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="validateLoginResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>       </wsdl:operation>
>       <wsdl:operation name="runReport">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="runReportRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="runReportResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="getReportDefinition">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getReportDefinitionRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getReportDefinitionResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="getFolderContents">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getFolderContentsRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="getFolderContentsResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="scheduleReport">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="scheduleReportRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="scheduleReportResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="AccessDeniedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="AccessDeniedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="OperationFailedException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="OperationFailedException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>       <wsdl:operation name="hasReportAccess">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="hasReportAccessRequest">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:input>
>          <wsdl:output name="hasReportAccessResponse">
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:output>
>          <wsdl:fault name="InvalidParametersException">
>             <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="InvalidParametersException" namespace="http://xmlns.oracle.com/oxp/service/PublicReportService" use="encoded"/>
>          </wsdl:fault>
>       </wsdl:operation>
>    </wsdl:binding>
>    <wsdl:service name="PublicReportServiceService">
>       <wsdl:port binding="impl:PublicReportServiceSoapBinding" name="PublicReportService">
>          <wsdlsoap:address location="http://localhost:9704/xmlpserver/services/PublicReportService"/>
>       </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
> Error thrown is as below:
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)
> Caused by: org.apache.axis2.AxisFault: Part 'fault' of fault message '{http://xmlns.oracle.com/oxp/service/PublicReportService}AccessDeniedException'
> must be defined with 'element=QName' and not 'type=QName'
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1240)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:771)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:538)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:489)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:363)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         ... 2 more
>  Please help us to rectify this error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org