Hi,
I am trying to use CXF and wsdl2java within maven to generate Java stubs
from my XML. After running wsdl2java, my generated java stubs all contain
XmlAccessType.FIELD, for example:
/**
*
* Holds the cuisine information.
*
*
* <p>Java class for CuisineType complex type.
*
* <p>The following schema fragment specifies the expected content contained
within this class.
*
* <pre>
* <complexType name="CuisineType">
* <complexContent>
* <restriction base="{
http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="cuisineCode"
type="{
http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="cuisineDescription"
type="{
http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="translations"
type="{
http://ihg.com/common/data/java/util/map/v1_0}MapType"
minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CuisineType", propOrder = {
"cuisineCode",
"cuisineDescription",
"translations"
})
public class CuisineType
implements Serializable
{
...
}
I need the XmlAccessType to be set to PUBLIC_MEMBER (which is the default,
as far as I understand).
Does anyone know why the XmlAccessType is getting set to FIELD?
Thanks.
--
View this message in context: http://www.nabble.com/XmlAccessType-tp24755671p24755671.html
Sent from the java.net - jaxb dev mailing list archive at Nabble.com.