axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bradley Williams <>
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

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

-----Original Message-----
From: Cédric Chabanois []
Sent: Thursday, January 03, 2002 11:27 AM
To: ''
Subject: problem with Example5 (Beans)

I tried example 5 with axis (01-03-2002)

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 
<schema targetNamespace="urn:BeanService"
<complexType name="order"> 
<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" /> 
<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 ?


View raw message