axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ALI,HANEEF (HP-Cupertino,ex1)" <haneef_...@hp.com>
Subject WSDL2Java and simpleType
Date Mon, 30 Dec 2002 20:37:05 GMT
Hi,

How to make WSDL2Java generate code for simpleType. ( I used -a option -- no
luck)

The way I used is
 java org.apache.axis.wsdl -p package_name -a  wsdflfile

Eg:
<xsd:simpleType name="objectName">
    <xsd:restriction base="xsd:string"/>
</xsd:simpleType>

<xsd:element name="objectName" type="objectName"/>

<message name="getRootObjectInput">
	<part name="body" element="omids:getRootObject"/>
</message>
<message name="getRootObjectOutput">
	<part name="body" element="omids:objectName"/>
</message>

The stub generated looks like   
	String getRootObject()

But I need 
	ObjectName getRootObject()


Eg:2
<xsd:complexType name="objectDescriptionSet">
   <xsd:sequence>
      <xsd:element ref="objectDescription" maxOccurs="unbounded"/>
     </xsd:sequence>
 </xsd:complexType>


<message name="getObjectDescriptionInput">
		<part name="body" element="omids:getObjectDescription"/>
</message>
<message name="getObjectDescriptionOutput">
	<part name="body" element="omids:objectDescriptionSet"/>
</message>

The stub looks like   objectDescription [] getObjectDescription()

I need   objectDescriptionSet  getObjectDescription()

There is no class generated for ObjectName, objectDescriptionSet. BTW
webservice uses document style. 

regards,
Haneef

Mime
View raw message