| 1 |
package test.wsdl.doclit_arrays; |
| 2 |
|
| 3 |
/** |
| 4 |
* Test doc/lit service taking and returning arrays |
| 5 |
*/ |
| 6 |
public class ArrayService { |
| 7 |
public static class Bean { |
| 8 |
public Bean() { |
| 9 |
} |
| 10 |
|
| 11 |
public String [] arrayField; |
| 12 |
|
| 13 |
// Type metadata |
| 14 |
private static org.apache.axis.description.TypeDesc typeDesc = |
| 15 |
new org.apache.axis.description.TypeDesc(Bean.class, true); |
| 16 |
|
| 17 |
static { |
| 18 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://doclit_arrays.wsdl.test/", "Bean")); |
| 19 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); |
| 20 |
elemField.setFieldName("arrayField"); |
| 21 |
elemField.setXmlName(new javax.xml.namespace.QName("http://doclit_arrays.wsdl.test/", "arrayField")); |
| 22 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); |
| 23 |
elemField.setMinOccurs(0); |
| 24 |
elemField.setNillable(false); |
| 25 |
//elemField.setItemQName(new javax.xml.namespace.QName("", "inner")); |
| 26 |
typeDesc.addFieldDesc(elemField); |
| 27 |
} |
| 28 |
|
| 29 |
/** |
| 30 |
* Return type metadata object |
| 31 |
*/ |
| 32 |
public static org.apache.axis.description.TypeDesc getTypeDesc() { |
| 33 |
return typeDesc; |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
public String [] echoString(String [] input) { |
| 38 |
return input; |
| 39 |
} |
| 40 |
|
| 41 |
public Bean echoBean(Bean input) { |
| 42 |
return input; |
| 43 |
} |
| 44 |
} |