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 QuiCOMM - Settore Sviluppo <de...@quicomm.it> on 2004/02/25 22:46:41 UTC
Problem with complexType in WSDL generated by WSDL2Java
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