axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QuiCOMM - Settore Sviluppo <developm...@quicomm.it>
Subject Problem with complexType in WSDL generated by WSDL2Java
Date Wed, 25 Feb 2004 21:46:41 GMT

Hi all,
I got an error using WSDL2Java tool to generate java object.

I created an object called "Document" which contains another object called "Page"
then I created another object called "Request" which contains another object called
"Status", this the .wsdl bit of code: (continue)

<xsd:complexType name="status"> 
 <xsd:all> 
  <xsd:element name="id" type="xsd:integer" /> 
  <xsd:element name="description" type="xsd:string" /> 
 </xsd:all> 
</xsd:complexType> 

<xsd:complexType name="page"> 
 <xsd:all> 
  <xsd:element name="line" type="xsd:string" /> 
 </xsd:all> 
</xsd:complexType> 

<xsd:complexType name="document"> 
 <xsd:all> 
  <xsd:element name="page" type="typens:page" /> 
 </xsd:all> 
</xsd:complexType> 

<xsd:complexType name="request"> 
 <xsd:all> 
  <xsd:element name="document" type="typens:document" /> 
  <xsd:element name="event_date" type="xsd:dateTime" /> 
 </xsd:all> 
</xsd:complexType>

When I deploy the service and I got the wsdl document from Axis typing:
http://localhost:8080/Axis/Services/Certs?wsdl

I got this wsdl: (continue)

<complexType name="document"> 
 <sequence> 
  <element name="page" nillable="true" type="impl:page" /> 
 </sequence> 
</complexType> 

<complexType name="status"> 
 <sequence> 
  <element name="id" nillable="true" type="xsd:integer" /> 
  <element name="description" nillable="true" type="xsd:string" /> 
 </sequence> 
</complexType> 

<complexType name="request"> 
 <sequence> 
  <xsd:element name="event_date" type="xsd:dateTime" /> 
 </sequence>
</complexType>

As you read my "document" called in "request" there isn't, where's it?
Is there any error in my types declarations?

Regards
Alessandro



Mime
View raw message