From do-not-reply at jboss.com Fri Oct 26 02:29:57 2007 Content-Type: multipart/mixed; boundary="===============2785385789009191251==" MIME-Version: 1.0 From: tpawankumar To: jbossws-users at lists.jboss.org Subject: [jbossws-users] [JBossWS] - Re: Exception while deploying the webservice using jax-ws Date: Fri, 26 Oct 2007 02:29:56 -0400 Message-ID: <18041908.1193380196937.JavaMail.jboss@colo-br-02.atl.jboss.com> --===============2785385789009191251== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable alessio.soldano wrote: anonymous wrote : Could you please post the code where you're using the Xml= AccessorType annotation? | I mean, are you using this | Code: | = | @XmlAccessorType(XmlAccessType.FIELD) = | = | = | or something different? (like an array of AccessType.FIELD) | = | You might also start from the classes generated by wsconsume. I have generated the classes from JAXB 2.0 . these classes are using this @XmlAccessorType(XmlAccessType.FIELD) and sample code for this | // | // This file was generated by the JavaTM Architecture for XML Binding(J= AXB) Reference Implementation, v2.0-b26-ea3 = | // See http://java.sun.com/xml= /jaxb = | // Any modifications to this file will be lost upon recompilation of th= e source schema. = | // Generated on: 2007.10.22 at 10:28:58 AM IST = | // | = | = | package com.covad.xsd.smo.vendororder; | = | import java.util.ArrayList; | import java.util.List; | import javax.xml.bind.annotation.AccessType; | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlType; | import javax.xml.datatype.XMLGregorianCalendar; | import com.covad.xsd.smo.vendororder.Client; | import com.covad.xsd.smo.vendororder.LineItem; | import com.covad.xsd.smo.vendororder.VendorOrder; | = | = | /** | *

Java class for VendorOrder complex type. | * = | *

The following schema fragment specifies the expected content cont= ained within this class. | * = | *

  |  * 
  |  *   
  |  *     
  |  *       
  |  *         
  |  *         
  |  *         
  |  *         
  |  *         
  |  *         
  |  *         
  |  *         
  |  *         
  |  *       
  |  *     
  |  *   
  |  * 
  |  * 
| * = | * = | */ | @XmlAccessorType(AccessType.FIELD) | @XmlType(name =3D "VendorOrder", propOrder =3D { | "orderID", | "vendorID", | "vendorOrderID", | "orderReceivedDate", | "contractAcceptedFlag", | "contractAcceptedDate", | "productLanguageCode", | "client", | "lineItem" | }) | public class VendorOrder { | = | @XmlElement(namespace =3D "http://smo.xsd.covad.com/vendororder", t= ype =3D Integer.class) | protected int orderID; | @XmlElement(namespace =3D "http://smo.xsd.covad.com/vendororder", t= ype =3D Integer.class) | protected int vendorID; | @XmlElement(namespace =3D "http://smo.xsd.covad.com/vendororder") | protected String vendorOrderID; | @XmlElement(namespace =3D "http://smo.xsd.covad.com/vendororder") | protected XMLGregorianCalendar orderReceivedDate; | @XmlElement(namespace =3D "http://smo.xsd.covad.com/vendororder") | protected Boolean contractAcceptedFlag; | @XmlElement(namespace =3D "http://smo.xsd.covad.com/vendororder") | protected XMLGregorianCalendar contractAcceptedDate; | @XmlElement(namespace =3D "http://smo.xsd.covad.com/vendororder") | protected String productLanguageCode; | @XmlElement(namespace =3D "http://smo.xsd.covad.com/vendororder") | protected Client client; | @XmlElement(namespace =3D "http://smo.xsd.covad.com/vendororder") | protected List lineItem; | = | /** | * Gets the value of the orderID property. | * = | */ | public int getOrderID() { | return orderID; | } | = | /** | * Sets the value of the orderID property. | * = | */ | public void setOrderID(int value) { | this.orderID =3D value; | } | = | /** | * Gets the value of the vendorID property. | * = | */ | public int getVendorID() { | return vendorID; | } | = | /** | * Sets the value of the vendorID property. | * = | */ | public void setVendorID(int value) { | this.vendorID =3D value; | } | = | /** | * Gets the value of the vendorOrderID property. | * = | * @return | * possible object is | * {@link String } | * = | */ | public String getVendorOrderID() { | return vendorOrderID; | } | = | /** | * Sets the value of the vendorOrderID property. | * = | * @param value | * allowed object is | * {@link String } | * = | */ | public void setVendorOrderID(String value) { | this.vendorOrderID =3D value; | } | = | /** | * Gets the value of the orderReceivedDate property. | * = | * @return | * possible object is | * {@link XMLGregorianCalendar } | * = | */ | public XMLGregorianCalendar getOrderReceivedDate() { | return orderReceivedDate; | } | = | /** | * Sets the value of the orderReceivedDate property. | * = | * @param value | * allowed object is | * {@link XMLGregorianCalendar } | * = | */ | public void setOrderReceivedDate(XMLGregorianCalendar value) { | this.orderReceivedDate =3D value; | } | = | /** | * Gets the value of the contractAcceptedFlag property. | * = | * @return | * possible object is | * {@link Boolean } | * = | */ | public Boolean isContractAcceptedFlag() { | return contractAcceptedFlag; | } | = | /** | * Sets the value of the contractAcceptedFlag property. | * = | * @param value | * allowed object is | * {@link Boolean } | * = | */ | public void setContractAcceptedFlag(Boolean value) { | this.contractAcceptedFlag =3D value; | } | = | /** | * Gets the value of the contractAcceptedDate property. | * = | * @return | * possible object is | * {@link XMLGregorianCalendar } | * = | */ | public XMLGregorianCalendar getContractAcceptedDate() { | return contractAcceptedDate; | } | = | /** | * Sets the value of the contractAcceptedDate property. | * = | * @param value | * allowed object is | * {@link XMLGregorianCalendar } | * = | */ | public void setContractAcceptedDate(XMLGregorianCalendar value) { | this.contractAcceptedDate =3D value; | } | = | /** | * Gets the value of the productLanguageCode property. | * = | * @return | * possible object is | * {@link String } | * = | */ | public String getProductLanguageCode() { | return productLanguageCode; | } | = | /** | * Sets the value of the productLanguageCode property. | * = | * @param value | * allowed object is | * {@link String } | * = | */ | public void setProductLanguageCode(String value) { | this.productLanguageCode =3D value; | } | = | /** | * Gets the value of the client property. | * = | * @return | * possible object is | * {@link Client } | * = | */ | public Client getClient() { | return client; | } | = | /** | * Sets the value of the client property. | * = | * @param value | * allowed object is | * {@link Client } | * = | */ | public void setClient(Client value) { | this.client =3D value; | } | = | /** | * Gets the value of the lineItem property. | * = | *

| * This accessor method returns a reference to the live list, | * not a snapshot. Therefore any modification you make to the | * returned list will be present inside the JAXB object. | * This is why there is not a set method for the lineI= tem property. | * = | *

| * For example, to add a new item, do as follows: | *

  |      *    getLineItem().add(newItem);
  |      * 
| * = | * = | *

| * Objects of the following type(s) are allowed in the list | * {@link LineItem } | * = | * = | */ | public List getLineItem() { | if (lineItem =3D=3D null) { | lineItem =3D new ArrayList(); | } | return this.lineItem; | } | = | } | = = Please suggest on this. Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=3Dbb&op=3Dv= iewtopic&p=3D4099124#4099124 Reply to the post : http://www.jboss.com/index.html?module=3Dbb&op=3Dpostin= g&mode=3Dreply&p=3D4099124 --===============2785385789009191251==--