Unknown method addAnonymousOperations() called in the generated code of the 
client stub
---------------------------------------------------------------------------------------

                 Key: AXIS2-3658
                 URL: https://issues.apache.org/jira/browse/AXIS2-3658
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.4
         Environment: Windows XP; Eclipse 3.4 M5; Tomcat 6.0.16; Java 6 0_05
            Reporter: Walter Weinmann


The following is an excerpt of the client stub, the method 
addAnonymousOperations() was not generated, but called:
===================================================================================

   private void populateAxisService() throws org.apache.axis2.AxisFault {

      // creating the Service with a unique name
      _service = new org.apache.axis2.description.AxisService(
            "ObjectModelQueryService" + getUniqueSuffix());
      addAnonymousOperations();

      // creating the operations
      org.apache.axis2.description.AxisOperation __operation;

      _operations = new org.apache.axis2.description.AxisOperation[3];

The XML schema file is as follows:
=========================

<?xml version="1.0" encoding="UTF-8"?>
<!-- Schema ================================================================ -->
<xsd:schema 
targetNamespace="http://ic.com/IMSware/WebServices/ObjectModel/schemas";
  xmlns:imsom="http://ic.com/IMSware/WebServices/ObjectModel/schemas";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified"
  attributeFormDefault="unqualified" version="01.00">
  <!-- Purpose ============================================================= -->
  <xsd:annotation>
    <xsd:documentation>
           ---------------------------------------------------------------------
           Defines the messages available in a Web service which is querying 
           data from the object model of an IMSware application.
           ---------------------------------------------------------------------
           Copyright (c) 1991-2008 IC information company. All rights reserved.
           ---------------------------------------------------------------------
    </xsd:documentation>
  </xsd:annotation>
  <!-- Element Definitions ================================================= -->
  <xsd:element name="queryAttributes" type="imsom:attributesType" />
  <xsd:element name="queryAttributesResponse" 
type="imsom:attributesResponseType" />
  <xsd:element name="queryObjects" type="imsom:objectsType" />
  <xsd:element name="queryObjectsAttributes" type="imsom:objectsAttributesType" 
/>
  <xsd:element name="queryObjectsAttributesResponse" 
type="imsom:objectsAttributesResponseType" />
  <xsd:element name="queryObjectsResponse" type="imsom:objectsResponseType" />
  <!-- Type Definitions ==================================================== -->
  <xsd:complexType name="attributeMetadataResponseType">
    <xsd:sequence>
      <xsd:element name="attributeMessage" type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
    </xsd:sequence>
    <xsd:attribute name="identification" type="xsd:string" />
    <xsd:attribute name="dataType" type="xsd:string" />
    <xsd:attribute name="history" type="xsd:string" />
    <xsd:attribute name="label" type="xsd:string" />
    <xsd:attribute name="language" type="xsd:string" />
    <xsd:attribute name="mandant" type="xsd:string" />
    <xsd:attribute name="required" type="xsd:string" />
    <xsd:attribute name="sortCriterium" type="xsd:string" />
    <xsd:attribute name="timeRelated" type="xsd:string" />
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="attributesResponseType">
    <xsd:sequence>
      <xsd:element name="databaseMessage" type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="authenticationMessage" 
type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="queryAttributeResponse" 
type="imsom:queryAttributeResponseType"
        maxOccurs="unbounded" minOccurs="0" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="attributesType">
    <xsd:sequence>
      <xsd:element name="authentication" type="imsom:authenticationType"
        maxOccurs="1" minOccurs="1" />
      <xsd:element name="database" type="imsom:databaseType"
        maxOccurs="1" minOccurs="1" />
      <xsd:element name="queryAttribute" type="imsom:queryAttributeType"
        maxOccurs="unbounded" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="attributeResponseType">
    <xsd:sequence>
      <xsd:element name="attributeMessage" type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="metadata"
        type="imsom:attributeMetadataResponseType" maxOccurs="1"
        minOccurs="0" />
    </xsd:sequence>
    <xsd:attribute name="identification" type="xsd:string" />
    <xsd:attribute name="language" type="xsd:string" />
    <xsd:attribute name="value" type="xsd:string" />
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="attributeType">
    <xsd:attribute name="identification" type="imsom:identificationType"
      use="required" />
    <xsd:attribute name="metadata" type="imsom:metadataType" />
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="authenticationType">
    <xsd:attribute name="userName" type="imsom:userNameType"
      use="required" />
    <xsd:attribute name="password" type="imsom:passwordType"
      use="required" />
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:simpleType name="databaseDeploymentIdType">
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="1" />
    </xsd:restriction>
  </xsd:simpleType>
  <!--                                                                       -->
  <xsd:simpleType name="databaseSchemaIdType">
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="1" />
    </xsd:restriction>
  </xsd:simpleType>
  <!--                                                                       -->
  <xsd:complexType name="databaseType">
    <xsd:attribute name="databaseDeploymentId" 
type="imsom:databaseDeploymentIdType"
      use="required" />
    <xsd:attribute name="databaseSchemaId" type="imsom:databaseSchemaIdType"
      use="required" />
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:simpleType name="identificationType">
    <xsd:restriction base="imsom:positiveLongType">
      <xsd:maxInclusive value="999999999999" />
    </xsd:restriction>
  </xsd:simpleType>
  <!--                                                                       -->
  <xsd:simpleType name="metadataType">
    <xsd:annotation>
      <xsd:documentation>
F - First occurrence
N - Never
Y - Always
      </xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:maxLength value="1" />
      <xsd:pattern value="[FNY]" />
    </xsd:restriction>
  </xsd:simpleType>
  <!--                                                                       -->
  <xsd:complexType name="objectMetadataResponseType">
    <xsd:sequence>
      <xsd:element name="objectMessage" type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
    </xsd:sequence>
    <xsd:attribute name="identification" type="xsd:string" />
    <xsd:attribute name="accountingArea" type="xsd:string" />
    <xsd:attribute name="art" type="xsd:string" />
    <xsd:attribute name="classId" type="xsd:string" />
    <xsd:attribute name="classDescription" type="xsd:string" />
    <xsd:attribute name="costCenter" type="xsd:string" />
    <xsd:attribute name="key" type="xsd:string" />
    <xsd:attribute name="locationClassDescription" type="xsd:string" />
    <xsd:attribute name="locationClassId" type="xsd:string" />
    <xsd:attribute name="locationDescription" type="xsd:string" />
    <xsd:attribute name="locationId" type="xsd:string" />
    <xsd:attribute name="mandant" type="xsd:string" />
    <xsd:attribute name="objectDescription" type="xsd:string" />
    <xsd:attribute name="type" type="xsd:string" />
    <xsd:attribute name="validFrom" type="xsd:string" />
    <xsd:attribute name="validUntil" type="xsd:string" />
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="objectResponseType">
    <xsd:sequence>
      <xsd:element name="objectMessage" type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="metadataObject" type="imsom:objectMetadataResponseType"
        maxOccurs="1" minOccurs="0" />
    </xsd:sequence>
    <xsd:attribute name="identification" type="xsd:string" />
    <xsd:attribute name="accountingArea" type="xsd:string" />
    <xsd:attribute name="art" type="xsd:string" />
    <xsd:attribute name="classDescription" type="xsd:string" />
    <xsd:attribute name="classId" type="xsd:string" />
    <xsd:attribute name="costCenter" type="xsd:string" />
    <xsd:attribute name="key" type="xsd:string" />
    <xsd:attribute name="locationClassDescription" type="xsd:string" />
    <xsd:attribute name="locationClassId" type="xsd:string" />
    <xsd:attribute name="locationDescription" type="xsd:string" />
    <xsd:attribute name="locationId" type="xsd:string" />
    <xsd:attribute name="mandant" type="xsd:string" />
    <xsd:attribute name="objectDescription" type="xsd:string" />
    <xsd:attribute name="type" type="xsd:string" />
    <xsd:attribute name="validFrom" type="xsd:string" />
    <xsd:attribute name="validUntil" type="xsd:string" />
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="objectType">
    <xsd:attribute name="identification" type="imsom:identificationType"
      use="required" />
    <xsd:attribute name="metadata" type="imsom:metadataType" />
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:simpleType name="passwordType">
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="3" />
    </xsd:restriction>
  </xsd:simpleType>
  <!--                                                                       -->
  <xsd:simpleType name="positiveLongType">
    <xsd:restriction base="xsd:long">
      <xsd:minInclusive value="1" />
    </xsd:restriction>
  </xsd:simpleType>
  <!--                                                                       -->
  <xsd:complexType name="objectAttributesResponseType">
    <xsd:sequence>
      <xsd:element name="queryIdentification" 
type="imsom:queryIdentificationType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="objectResponse" type="imsom:objectResponseType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="attributeResponse" type="imsom:attributeResponseType"
        maxOccurs="unbounded" minOccurs="0" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="objectAttributesType">
    <xsd:sequence>
      <xsd:element name="queryIdentification" 
type="imsom:queryIdentificationType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="object" type="imsom:objectType"
        maxOccurs="1" />
      <xsd:element name="attribute" type="imsom:attributeType"
        maxOccurs="unbounded" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="objectsAttributesResponseType">
    <xsd:sequence>
      <xsd:element name="databaseMessage" type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="authenticationMessage" 
type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="objectAttributesResponse" 
type="imsom:objectAttributesResponseType"
        maxOccurs="unbounded" minOccurs="0" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="objectsAttributesType">
    <xsd:sequence>
      <xsd:element name="authentication" type="imsom:authenticationType"
        maxOccurs="1" minOccurs="1" />
      <xsd:element name="database" type="imsom:databaseType"
        maxOccurs="1" minOccurs="1" />
      <xsd:element name="objectAttributes" type="imsom:objectAttributesType"
        maxOccurs="unbounded" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="objectsResponseType">
    <xsd:sequence>
      <xsd:element name="databaseMessage" type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="authenticationMessage" 
type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="queryObjectResponse" 
type="imsom:queryObjectResponseType"
        maxOccurs="unbounded" minOccurs="0" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="objectsType">
    <xsd:sequence>
      <xsd:element name="authentication" type="imsom:authenticationType"
        maxOccurs="1" minOccurs="1" />
      <xsd:element name="database" type="imsom:databaseType"
        maxOccurs="1" minOccurs="1" />
      <xsd:element name="queryObject" type="imsom:queryObjectType"
        maxOccurs="unbounded" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="processingMessageType">
    <xsd:annotation>
      <xsd:documentation>
Error EA01 Problem(s) with authentication
Error ED01 Problem(s) retrieving the attribute data: ...
Error ED02 Attribute not found in database (end of cursor)
Error ED03 Problem(s) retrieving the attribute metadata: ...
Error ED04 Attribute metadata not found in database (end of cursor)
Error ED05 Problem(s) retrieving the object data: ...
Error ED06 Object not found in database (end of cursor)
Error ED07 Problem(s) retrieving the object metadata: ...
Error ED08 Object metadata not found in database (end of cursor)
Error ED09 Problem(s) retrieving a database access object: ...
Error ED10 Problem(s) testing the database accesibility: ...
Error ED11 Class identification missing
      </xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:element name="messageLevel" type="xsd:string"
        maxOccurs="1" minOccurs="1">
        <xsd:annotation>
          <xsd:documentation>
Abort
Error
Info
Warning
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="messageCode" type="xsd:string"
        maxOccurs="1" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
Mandatory with aborts and errors, optional else:
  EA.. - Authentication problems
  ED.. - Data access problems
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="message" type="xsd:string"
        maxOccurs="1" minOccurs="1" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:simpleType name="queryIdentificationType">
    <xsd:annotation>
      <xsd:documentation>Optional characterisation of the 
query</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="1" />
    </xsd:restriction>
  </xsd:simpleType>
  <!--                                                                       -->
  <xsd:complexType name="queryAttributeResponseType">
    <xsd:sequence>
      <xsd:element name="queryIdentification" 
type="imsom:queryIdentificationType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="attributeMessage" type="imsom:processingMessageType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="attributeMetadata"
        type="imsom:attributeMetadataResponseType" maxOccurs="1"
        minOccurs="0" />
    </xsd:sequence>
    <xsd:attribute name="identificationObject" type="xsd:string" />
    <xsd:attribute name="identificationAttribute" type="xsd:string" />
    <xsd:attribute name="language" type="xsd:string" />
    <xsd:attribute name="value" type="xsd:string" />
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="queryAttributeType">
    <xsd:sequence>
      <xsd:element name="queryIdentification" 
type="imsom:queryIdentificationType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="identificationObject" type="imsom:identificationType"
        maxOccurs="1" minOccurs="1" />
      <xsd:element name="identificationAttribute" 
type="imsom:identificationType"
        maxOccurs="1" minOccurs="1" />
      <xsd:element name="attributeMetdata" type="imsom:metadataType"
        maxOccurs="1" minOccurs="0" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="queryObjectType">
    <xsd:sequence>
      <xsd:element name="queryIdentification" 
type="imsom:queryIdentificationType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="objectType" type="imsom:objectType"
        maxOccurs="1" minOccurs="1" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:complexType name="queryObjectResponseType">
    <xsd:sequence>
      <xsd:element name="queryIdentification" 
type="imsom:queryIdentificationType"
        maxOccurs="1" minOccurs="0" />
      <xsd:element name="objectResponse" type="imsom:objectResponseType" />
    </xsd:sequence>
  </xsd:complexType>
  <!--                                                                       -->
  <xsd:simpleType name="userNameType">
    <xsd:restriction base="xsd:string">
      <xsd:maxLength value="30" />
      <xsd:minLength value="1" />
    </xsd:restriction>
  </xsd:simpleType>
</xsd:schema>

The WSDL file is as follows:
=====================

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions name="ObjectModelQuery"
  targetNamespace="http://ic.com/IMSware/WebServices/ObjectModel/Query/";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:tns="http://ic.com/IMSware/WebServices/ObjectModel/Query/";
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:imsom="http://ic.com/IMSware/WebServices/ObjectModel/schemas";
  imsom:schemaLocation="http://ic.com/IMSware/WebServices/ObjectModel/schemas 
ObjectModel.xsd">
  <!-- Types =============================================================== -->
  <wsdl:types>
    <xsd:schema 
targetNamespace="http://ic.com/IMSware/WebServices/ObjectModel/Query/";
      xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
      <xsd:import
        namespace="http://ic.com/IMSware/WebServices/ObjectModel/schemas";
        schemaLocation="ObjectModel.xsd" />
    </xsd:schema>
  </wsdl:types>
  <!-- Messages ============================================================ -->
  <wsdl:message name="queryAttributesRequestMessage">
    <wsdl:part element="imsom:queryAttributes" name="parameters" />
  </wsdl:message>
  <wsdl:message name="queryAttributesResponseMessage">
    <wsdl:part element="imsom:queryAttributesResponse" name="parameters" />
  </wsdl:message>
  <wsdl:message name="queryObjectsAttributesRequestMessage">
    <wsdl:part element="imsom:queryObjectsAttributes" name="parameters" />
  </wsdl:message>
  <wsdl:message name="queryObjectsAttributesResponseMessage">
    <wsdl:part element="imsom:queryObjectsAttributesResponse"
      name="parameters" />
  </wsdl:message>
  <wsdl:message name="queryObjectsRequestMessage">
    <wsdl:part element="imsom:queryObjects" name="parameters" />
  </wsdl:message>
  <wsdl:message name="queryObjectsResponseMessage">
    <wsdl:part element="imsom:queryObjectsResponse"
      name="parameters" />
  </wsdl:message>
  <!-- PortTypes =========================================================== -->
  <wsdl:portType name="ObjectModelQueryPortType">
    <wsdl:operation name="queryAttributes">
      <wsdl:input message="tns:queryAttributesRequestMessage" />
      <wsdl:output message="tns:queryAttributesResponseMessage" />
    </wsdl:operation>
    <wsdl:operation name="queryObjectsAttributes">
      <wsdl:input message="tns:queryObjectsAttributesRequestMessage" />
      <wsdl:output message="tns:queryObjectsAttributesResponseMessage" />
    </wsdl:operation>
    <wsdl:operation name="queryObjects">
      <wsdl:input message="tns:queryObjectsRequestMessage" />
      <wsdl:output message="tns:queryObjectsResponseMessage" />
    </wsdl:operation>
  </wsdl:portType>
  <!-- Binding ============================================================= -->
  <wsdl:binding name="ObjectModelQuerySOAPBinding" 
type="tns:ObjectModelQueryPortType">
    <soap:binding style="document"
      transport="http://schemas.xmlsoap.org/soap/http"; />
    <wsdl:operation name="queryAttributes">
      <soap:operation
        
soapAction="http://ic.com/IMSware/WebServices/ObjectModel/Query/queryAttributes";
 />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="queryObjectsAttributes">
      <soap:operation
        
soapAction="http://ic.com/IMSware/WebServices/ObjectModel/Query/queryObjectsAttributes";
 />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="queryObjects">
      <soap:operation
        
soapAction="http://ic.com/IMSware/WebServices/ObjectModel/Query/queryObjects"; />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <!-- Service ============================================================= -->
  <wsdl:service name="ObjectModelQueryService">
    <wsdl:port binding="tns:ObjectModelQuerySOAPBinding" 
name="ObjectModelQuerySOAP">
      <soap:address
        location="http://localhost:8680/axis2/services/ObjectModelQueryService"; 
/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

The code was generated with the following ant script:
======================================

<?xml version="1.0"?>
<project name="IMSware Web Service ObjectModelQueryService"
         default="distribute"
         basedir="."
>

   <description>The build file for the Axis2 Code Generator.</description>

   <!-- Global Properties ================================================== -->

   <property name="version" value="01.00" />

   <property environment="env" />

   <property name="dir.axis2" value="${env.AXIS2_HOME}" />
   <property name="dir.build" value="${basedir}/temp" />

   <path id="axis2.classpath">
      <fileset dir="${dir.axis2}/lib">
         <include name="**/*.jar" />
      </fileset>
   </path>

   <!-- Target init ======================================================== -->

   <target name="init"
           description="remove the existing working directories and prepare the 
client code generation"
   >

      <delete dir="${dir.build}" />

      <mkdir dir="${dir.build}/Client" />


      <taskdef name="codegen"
               classname="org.apache.axis2.tool.ant.AntCodegenTask"
               classpathref="axis2.classpath"
      />

   </target>

   <!-- Target code_client ================================================= -->

   <target name="code_client"
           depends="init"
           description="generate the client code"
   >

      <codegen databindingName="adb"
               language="java"
               output="${dir.build}/Client"
               syncOnly="true"
               targetSourceFolderLocation="src/main/java"
               
wsdlfilename="../IC_IMSware_Web_Services/src/conf/ObjectModelQuery.wsdl"
               wsdlVersion="1.1"
      />
   </target>

   <!-- Target distribute ================================================== -->

   <target name="distribute"
           depends="code_client"
           description="copy the generated client code to the development 
environment"
   >

      <copy todir="${basedir}">
         <fileset dir="${dir.build}/Client">
            <include name="build.xml" />
         </fileset>
      </copy>

      <copy todir="${basedir}/src">
         <fileset dir="${dir.build}/Client/src">
            <include name="**/*.java" />
         </fileset>
      </copy>

      <delete dir="${dir.build}" />

   </target>

</project>



-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to