![](https://csdnimg.cn/release/download_crawler_static/88335236/bg5.jpg)
for(int i=0;i<10;i++)
{
t[i] = new cn.com.tsingtao.logistics.model.test();
t[i].setNAME(NAME+i);
t[i].setAGE(AGE+i);
}
return t;
}
2.2. SERVER端生成Wsdl
在Server端生成的wsd如下:
<?xml version='1.0' encoding='UTF-8'?>
<s0:definitions name="testServiceDefinitions"
targetNamespace="http://cn/com/tsingtao/logistics/service" xmlns=""
xmlns:s0="http://schemas.xmlsoap.org/wsdl/"
xmlns:s1="http://cn/com/tsingtao/logistics/service"
xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/">
<s0:types>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="java:cn.com.tsingtao.logistics.model"
xmlns:s0="http://schemas.xmlsoap.org/wsdl/"
xmlns:s1="http://cn/com/tsingtao/logistics/service"
xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="test">
<xs:sequence>
<xs:element minOccurs="1" name="AGE" nillable="false" type="xs:int"/>
<xs:element minOccurs="1" name="NAME" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ArrayOftest_literal">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="test"
nillable="true" type="java:test" xmlns:java="java:cn.com.tsingtao.logistics.model"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOftest_literal" type="java:ArrayOftest_literal"
xmlns:java="java:cn.com.tsingtao.logistics.model"/>
</xs:schema>