List Info

Thread: - Re: Empty object is returned.




- Re: Empty object is returned.
country flaguser name
United States
2008-05-07 13:32:53
Here is an Order class, may be it will be useful:

  | 
  | package beanservice;
  | 
  | import javax.xml.bind.annotation.XmlAccessType;
  | import javax.xml.bind.annotation.XmlAccessorType;
  | import javax.xml.bind.annotation.XmlElement;
  | import javax.xml.bind.annotation.XmlType;
  | import com.osmoticweb.purchase.ArrayOfXsdInt;
  | import com.osmoticweb.purchase.ArrayOfXsdString;
  | 
  | 
  | /**
  |  * <p>Java class for Order complex type.
  |  * 
  |  * <p>The following schema fragment specifies the
expected content contained within this class.
  |  * 
  |  * <pre>
  |  * &lt;complexType name="Order">
  |  *   &lt;complexContent>
  |  *     &lt;restriction base="{http://www.w3.org/20
01/XMLSchema}anyType">
  |  *       &lt;sequence>
  |  *         &lt;element name="customerName"
type="{http://www.w3.org/20
01/XMLSchema}string"/>
  |  *         &lt;element name="itemCodes"
type="{http://osmoticweb.com/
Purchase}ArrayOf_xsd_string"/>
  |  *         &lt;element name="quantities"
type="{http://osmoticweb.com/
Purchase}ArrayOf_xsd_int"/>
  |  *         &lt;element
name="shippingAddress" type="{http://www.w3.org/20
01/XMLSchema}string"/>
  |  *       &lt;/sequence>
  |  *     &lt;/restriction>
  |  *   &lt;/complexContent>
  |  * &lt;/complexType>
  |  * </pre>
  |  * 
  |  * 
  |  */
  | XmlAccessorType(XmlAccessType.FIELD)
  | XmlType(name = "Order", propOrder = {
  |     "customerName",
  |     "itemCodes",
  |     "quantities",
  |     "shippingAddress"
  | })
  | public class Order {
  | 
  |     XmlElement(required = true, nillable = true)
  |     protected String customerName;
  |     XmlElement(required = true, nillable = true)
  |     protected ArrayOfXsdString itemCodes;
  |     XmlElement(required = true, nillable = true)
  |     protected ArrayOfXsdInt quantities;
  |     XmlElement(required = true, nillable = true)
  |     protected String shippingAddress;
  | 
  |     /**
  |      * Gets the value of the customerName property.
  |      * 
  |      * return
  |      *     possible object is
  |      *     {link String }
  |      *     
  |      */
  |     public String getCustomerName() {
  |         return customerName;
  |     }
  | 
  |     /**
  |      * Sets the value of the customerName property.
  |      * 
  |      * param value
  |      *     allowed object is
  |      *     {link String }
  |      *     
  |      */
  |     public void setCustomerName(String value) {
  |         this.customerName = value;
  |     }
  | 
  |     /**
  |      * Gets the value of the itemCodes property.
  |      * 
  |      * return
  |      *     possible object is
  |      *     {link ArrayOfXsdString }
  |      *     
  |      */
  |     public ArrayOfXsdString getItemCodes() {
  |         return itemCodes;
  |     }
  | 
  |     /**
  |      * Sets the value of the itemCodes property.
  |      * 
  |      * param value
  |      *     allowed object is
  |      *     {link ArrayOfXsdString }
  |      *     
  |      */
  |     public void setItemCodes(ArrayOfXsdString value) {
  |         this.itemCodes = value;
  |     }
  | 
  |     /**
  |      * Gets the value of the quantities property.
  |      * 
  |      * return
  |      *     possible object is
  |      *     {link ArrayOfXsdInt }
  |      *     
  |      */
  |     public ArrayOfXsdInt getQuantities() {
  |         return quantities;
  |     }
  | 
  |     /**
  |      * Sets the value of the quantities property.
  |      * 
  |      * param value
  |      *     allowed object is
  |      *     {link ArrayOfXsdInt }
  |      *     
  |      */
  |     public void setQuantities(ArrayOfXsdInt value) {
  |         this.quantities = value;
  |     }
  | 
  |     /**
  |      * Gets the value of the shippingAddress property.
  |      * 
  |      * return
  |      *     possible object is
  |      *     {link String }
  |      *     
  |      */
  |     public String getShippingAddress() {
  |         return shippingAddress;
  |     }
  | 
  |     /**
  |      * Sets the value of the shippingAddress property.
  |      * 
  |      * param value
  |      *     allowed object is
  |      *     {link String }
  |      *     
  |      */
  |     public void setShippingAddress(String value) {
  |         this.shippingAddress = value;
  |     }
  | 
  | }
  | 
  | 

View the original post : http://www.jboss.com/index.html?
module=bb&op=viewtopic&p=4149211#4149211

Reply to the post : http://www.jboss.com/index.
html?module=bb&op=posting&mode=reply&p=4149211
_______________________________________________
jbossws-users mailing list
jbossws-userslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossws-users


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )