Binding a Set of Classes XmlSeeAlso Mapping a Value Class to a Schema Type XmlType
5.4.6 Binding a Set of Classes XmlSeeAlso
The XmlSeeAlso annotation binds a list of classes when binding the current class. The following table lists the optional element that can be passed to the XMLRootElement annotation.5.4.7 Mapping a Value Class to a Schema Type XmlType
The XmlType annotation maps a class or enum type to an XML Schema type. The type can be a simple or complex type. The annotation can be specified for the following Java program elements: ■ Top-level class ■ Enum type The XmlType can be specified with the XmlRootElement see Section 5.4.5, Mapping a Top-level Class to a Global Element XmlRootElement and XmlAccessorType see Section 5.4.2, Specifying Default Serialization of Fields and Properties XmlAccessorType Annotation annotations. The following table lists the optional elements that can be passed to the XmlType annotation. For more information, see the javax.xml.bind.annotation.XmlType Javadoc at http:download.oracle.comjavaee5apijavaxxmlbindannotatio nXmlType.html . An example is provided in Section 5.4.1, Example of JAXB Annotations. namespace Namespace of the XML element. By default, the namespace is derived from the package of the class. Table 5–10 Optional Element for XmlSeeAlso Annotation Element Description value List of classes that JAXB uses when binding the current class. Table 5–11 Optional Elements for XmlType Annotation Element Description name Name of the XML Schema type to which the class is mapped. namespace Name of the target namespace of the XML Schema type. By default, the target namespace to which the package containing the class is mapped. propOrder List of JavaBean property names defined in a class. The list defines an order for the XML Schema elements when the class is mapped to an XML Schema complex type. Each name in the list is the name of a Java identifier of the JavaBean property. All of the JavaBean properties must be listed. Table 5–9 Cont. Optional Elements for XmlRootElement Annotation Element Description 5-14 Getting Started With JAX-WS Web Services for Oracle WebLogic Server5.5 Customizing XML Schema-to-Java Mapping Using Binding Declarations
Parts
» Oracle Fusion Middleware Online Documentation Library
» Sample HelloWorldImpl.java JWS File Sample Ant Build File for HelloWorldImpl.java
» Sample BasicStruct JavaBean Sample ComplexImpl.java JWS File
» Sample Ant Build File for ComplexImpl.java JWS File
» Sample WSDL File Sample TemperaturePortType Java Implementation File
» Sample Ant Build File for TemperatureService
» Sample Java Client Application Sample Ant Build File For Building Java Client Application
» Sample ClientServiceImpl.java JWS File Sample Ant Build File For Building ClientService
» Overview of the WebLogic Web Service Programming Model
» Resources Required by Advanced Web Service Features
» Scripts for Extending a Domain for Advanced Web Service Features
» Using WLST to Extend a Domain With the Web Services Extension Template
» Updating Resources Added After Extending Your Domain
» Developing WebLogic Web Services Starting From a WSDL File: Main Steps
» Examples of Using jwsc Advanced Uses of jwsc
» Creating the Basic Ant build.xml File Running the wsdlc WebLogic Web Services Ant Task
» Updating the Stubbed-out JWS Implementation Class File Generated By wsdlc
» Using the wldeploy Ant Task to Deploy Web Services
» Browsing to the WSDL of the Web Service Testing the Web Service
» Integrating Web Services Into the WebLogic Split Development Directory Environment
» Overview of JWS Files and JWS Annotations
» Specifying That a JWS Method Be Exposed as a Public Operation WebMethod and OneWay Annotations
» Customizing the Mapping Between Operation Parameters and WSDL Elements WebParam Annotation
» Accessing the Protocol Binding Context
» Accessing the Web Service Context
» Using the MessageContext Property Values
» Java Requirements for a JWS File Should You Implement a Stateless Session EJB?
» Programming the User-Defined Java Data Type
» Invoking Another Web Service from the JWS File Using SOAP 1.2
» Enabling Schema Validation on the Server Enabling Schema Validation on the Client
» JWS Programming Best Practices Overview of Data Binding Using JAXB
» Developing the JAXB Data Binding Artifacts
» XML-to-Java Mapping for Built-in Data Types
» Binding a Set of Classes XmlSeeAlso Mapping a Value Class to a Schema Type XmlType
» Creating an External Binding Declarations File Using JAX-WS Binding Declarations
» JAX-WS Custom Binding Declarations
» JAXB Custom Binding Declarations
» Overview of Web Services Invocation
» Using the clientgen Ant Task To Generate Client Artifacts
» Getting Information About a Web Service
» Writing the Java Client Application Code to Invoke a Web Service
» Compiling and Running the Client Application Sample Ant Build File for a Java Client
» Sample build.xml File for a Web Service Client
» Sample JWS File That Invokes a Web Service
» Defining the Client ID During Port Initialization
» Accessing the Server-generated Client ID
» Using the ClientProxyFeature API to Specify the Proxy Server
» Client Considerations When Redeploying a Web Service
» Invoking the Administration Console How Web Services Are Displayed In the Administration Console
» Using WebLogic Ant Tasks Using the Java Management Extensions JMX
» Monitoring Web Services Monitoring Web Services and Clients
» Monitoring Web Service Clients
Show more