Show TOC

Global CustomizationsLocate this document in the navigation structure

Use

When you create outside-in Web services or generate Web service proxies, the Web service creation wizard allows you to choose from a number of customizations which the framework automatically applies to the mapping between WSDL and Java artifacts. These customizations are compliant with the customizations described in The Java Architecture for XML Binding (JAXB) 2.0 specification , Chapter 7.5 <globalBindings> Declaration .

Note

You can use the built-in customization options only when you use interactive conflict resolution as a customization level in the wizard for creating an outside-in Web service, or for generating a Web service proxy.

More information:

Creating Outside-In Web Services

Creating Web Service Proxies

This documentation provides a description of the meaning of the global customizations options provided by the wizard.

Global Customizations Options

Generate classes for element declarations

When you use the Generate classes for element declarations option in Web service creation wizard, for every top-level element in the XSD schema, the Web service framework generates a Java class.

Generate top level classes for anonymous type declarations

This customization is relevant for inner types embedded in an outer type as shown in the sample below.

               <xs:complexType name="OuterType">
<xs:sequence>
                <xs:element name="InnerAnonymousType" type="xs:int">
                        <xs:complexType>
                                <xs:sequence>
                                        <xs:element name="someProperty" />
                                </xs:sequence>
                        </xs:complexType>
                </xs:element>
        </xs:sequence>    
</xs:complexType>

            

By default, the Web service framework generates only one top level class in the implementation bean ( OuterType in the example above). If you use the Generate top level classes for anonymous type declarations option, the Web service framework generates a class for the outer type and an inner class for every inner type. In the example above, the InnerAnnonymousType will be generated as an inner class of the OuterType class.

Generate interfaces and implementation for types

By default, the Web service framework generates a class for every type. If you use the Generate interfaces and implementation for types option, the framework generates an interface for every type and a class which implements this interface.

Generate constants for fixed attributes

The code sample below shows the declaration of an attribute of a complex type. The name attribute has a fixed name:

               <xs:attribute name="country" type="xs:string" use="optional" fixed="US" />

            

By default, the framework generates only a class property for the complex type.

If you choose the Generate constants for fixed attributes option, the framework generates an additional constant in the class for every attribute with a fixed name. For example, the attribute from the sample above would be generated as public final static String COUNTRY = "US"; .

Preserve underscore in names (to avoid collisions)

By default, the framework removes underscores (_) from WSDL names during the conversion to Java artifacts.

The code sample below shows two elements with potentially conflicting names:

               <xs:element name="CR_OBJTY" type="xs:int" />
<xs:element name="CROBJTY" type="xs:int" />

            

two elements CR_OBJTY and CROBJTY are converted to the same name CROBJTY in Java.

If you use the Preserve underscore in names (to avoid collisions) option, the underscore in the CR_OBJTY name in Java is preserved and the collision is resolved.