You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Norman Kubicek <N....@intershop.de> on 2005/07/14 10:59:55 UTC

wsdl2java generates incomplete source code

Hello,

I run into the following problem trying to generate the Java source code
for the WSRP v1.0 schema file of OASIS using Axis 1.2 and 1.2.1 (Final).
The WSRP v1.0 schema contains the following type definitions:

 ...

  <complexType name="ReturnAny">
    <sequence>
      <element name="extensions" type="types:Extension" minOccurs="0"
maxOccurs="unbounded"/>
    </sequence>
  </complexType>

  <element name="deregister"         type="types:RegistrationContext"/>
  <element name="deregisterResponse" type="types:ReturnAny"/>

  ...

The wsdl2java tool of Axis 1.1 generates the correct code for the return
type of the deregister method. The wsdl2java tool of Axis 1.2 and 1.2.1
(Final) directly returns an array of Extension elements (as defined for
the ReturnAny type) instead of ReturnAny type.


Axis 1.1:
-------------

public oasis.names.tc.wsrp.v1.types.ReturnAny
deregister(oasis.names.tc.wsrp.v1.types.RegistrationContext deregister)
throws java.rmi.RemoteException,
oasis.names.tc.wsrp.v1.types.InvalidRegistrationFault,
oasis.names.tc.wsrp.v1.types.OperationFailedFault 
{
    return null;
} 


Axis 1.2 (Final) and Axis 1.2.1 (Final):
-------------------------------------------------------

public oasis.names.tc.wsrp.v1.types.Extension[]
deregister(oasis.names.tc.wsrp.v1.types.RegistrationContext deregister)
throws java.rmi.RemoteException,
oasis.names.tc.wsrp.v1.types.InvalidRegistrationFault,
oasis.names.tc.wsrp.v1.types.OperationFailedFault 
{
    return null;
}


Has anybody the same problem?

Thanks,
Norman