Data type representation - Choosing between Generic classes and Deployed Java classes

When you deploy a Web service, you use the Message part representation option to choose between Generic classes and Deployed Java classes.

As your message passes through the gateway, the message parts are represented as actual Java objects. These are the data type definitions that are used for each part:

A complex type is a data type represented by a Java class (such as a user-written class) that is not part of the native Java language.

Generic classes and Deployed Java classes can both represent simple, compound and complex data types, subject to the following constraints:

The gateway schema parser determines all top-level types that are defined in the WSDL schema section, and generates mappings to generic classes for all of these types. This mapping enables the gateway to forward requests (and responses) containing most complex data type parameters (and return values) to a remote destination without requiring the actual Java classes representing these complex types to be deployed to the application server on which the gateway is running. If your Web service uses complex data types, and there is no other constraint that forces you to use Deployed Java classes, then select Generic classes.

Performance is the same whether you choose to use Deployed Java classes or Generic classes.


Related concepts
Complex data types - Mapping namespaces to packages
Related tasks
Deploying Web services to the Web services gateway
Deploying Web services with Java bindings
Related reference
Web services gateway - Supported types



Searchable topic ID:   cwsg_types_mprep
Last updated: Jun 21, 2007 9:56:50 PM CDT    WebSphere Application Server for z/OS, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/cwsg_types_mprep.html

Library | Support | Terms of Use | Feedback