axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bradley Williams <bwilli...@clientsoft.com>
Subject RE: problem with Example5 (Beans)
Date Mon, 07 Jan 2002 16:13:29 GMT
found this problem as well can anyone comment on why this might be
happening.

Looked at the code but,  its a little complicated to look at not being the
author.

-----Original Message-----
From: Cédric Chabanois [mailto:CChabanois@cognicase.fr]
Sent: Thursday, January 03, 2002 11:27 AM
To: 'axis-user@xml.apache.org'
Subject: problem with Example5 (Beans)


I tried example 5 with axis (01-03-2002)
(xml-axis/samples/userguide/example5)

BeanService has the following method :
public String processOrder(Order order)

It takes an Order parameter which is a bean with the following properties :
    /** Who's ordering  */
    private String customerName;
    /** Where do they live  */
    private String shippingAddress;
    /** Which items do we want */
    private String itemCodes[];
    /** And how many */
    private int quantities[];


But when I do http://localhost:8080/axis/services/OrderProcessor?wsdl, the
generated WSDL is incorrect 
"
[...]
<types> 
<schema targetNamespace="urn:BeanService"
xmlns="http://www.w3.org/2001/XMLSchema"> 
<complexType name="order"> 
<all> 
<element name="customerName" nillable="true" type="xsd:string" /> 
<element name="shippingAddress" nillable="true" type="xsd:string" /> 
<element name="itemCodes" nillable="true" type="intf:ArrayOf_xsd_string" /> 
<element name="quantities" nillable="true" type="intf:ArrayOf_xsd_int" /> 
<element name="CustomerName" nillable="true" type="xsd:string" /> 
<element name="ShippingAddress" nillable="true" type="xsd:string" /> 
<element name="ItemCodes" nillable="true" type="intf:ArrayOf_xsd_string" /> 
<element name="Quantities" nillable="true" type="intf:ArrayOf_xsd_int" /> 
</all> 
</complexType> 
<element name="order" nillable="true" type="tns1:order" /> 
[...]
"

customerName is present 2 times and this is true for the other properties.

Strange, isn't it ?

Cédric

Mime
View raw message