axis - What the difference between JAXB and CXF? -
I have tried to create java classes from xsd and run XJC with a schema with JAXB2.1 and it works . I have included schema in a wsdl file and I use jquax with wsdl2java command using cxf.
There is a Java class about the problem, where the difference is: The difference is the content attribute and its recipient and the Setter are missing with the Wsdl2java command.
// // This file was generated by the JavaTM architecture for XML binding (JASB) reference implementation, see v2.1-b02-fcs // & lt; A href = "http://java.sun.com/xml/jaxb" & gt; Http: //java.sun.com/xml/jaxb< / A & gt; // Any modification in this file will be lost if the source schema is reconfigured // import javax.xml.bind.annotation.xmlAccessType; Import javax.xml.bind.annotation.XmlAccessorType; Import javax.xml.bind.annotation.xmlAttribute; Import javax.xml.bind.annotation.xmlSeeAlso; Import javax.xml.bind.annotation.XmlType; Import javax.xml.bind.annotation.xmlValue; @XmlAccessorType (XmlAccessType.FIELD) @ XML Type (name = "bin", ** PROODAR = {"content" **}) @ XML SEELSO ({ED class}} Public intangibles BIN {** @ XMLView protected string material; ** @ XML Attribute Preserved Binary Data Encoding Presentation; / ** public string getContent () {return content; } / ** * * is a raw block of binary data bits. Binary data is a * protected type that should not be used outside of data * Type specification * * * * Ultimate value * Permission object * {@link string} * * / ** Public zero set content (string value) {this. Content = value; } ** / ** * Value of property represented * * @ Return * Possible object * {@link BinaryDataEncoding} * * / Public Representation Receipt Encoding () {If (Representation == blank) {Return Binary Data Encoding. TXT; } And {return representation; }} / ** * determines the value of the property represented * * @ ultimate value * permission object * {@link BinaryDataEncoding} * * / Public Zero Set Report (BinaryDataEncoding Value) {this.representation = value; }}
I want this attribute in this category.
Is there a way to do this add parameters?
This is my Wsdl2java command:
call wsdl2java -Debug -verbose -exsh true- bestname -p% PACKAGE_BASE% .pa -p "color: hl7-org: V3 "=% PACKAGE_BASE% .patient.hl -d% PROJECT_HOME% \ src \ main \ Java \% WSDL_HOME% \ Test.wsdl
thanks
Comments
Post a Comment