 |
返回原文
Listing 11. The helper class binds the Product field to the Order Web service namespace
public class ArrayOfProduct_Helper {
// Type metadata
private static com.ibm.ws.webservices.engine.description.TypeDesc typeDesc =
new com.ibm.ws.webservices.engine.description.TypeDesc(ArrayOfProduct.class);
static {
com.ibm.ws.webservices.engine.description.FieldDesc field = new com.ibm.ws.webservices.engine.description.ElementDesc();
field.setFieldName("product");
field.setXmlName(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://order.warehouse.com/service", "Product"));
field.setXmlType(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://product.warehouse.com", "Product"));
field.setMinOccursIs0(true);
typeDesc.addFieldDesc(field);
};
|
返回原文
|  |
|