The Novell exteNd Web Services SDK rmi2wsdl compiler transforms Java RMI into a WSDL document. This allows Java programmers to easily construct WSDL documents for their Web Service so they can be published on the Internet or shared with business partners. The rmi2wsdl compiler has a lot in common with the wsdl2java compiler and this section therefore has many references to the wsdl2java section.
Java RMI maps to WSDL as summarized in Table 1:
Java | WSDL |
Types | Types |
Parameters, return values and exceptions | Messages |
Method | Operation |
Interface | Port Type |
Table 1: Equivalence of RMI and WSDL concepts.
The rmi2wsdl compiler further generates SOAP binding information and a service type derived from the -soap command line paramarter. This parameter specifies the SOAP address where the Web Service is running.
The rmi2wsdl compiler support exactly the same data types as the wsdl2java compiler.
The rmi2soap compiler treats exceptions as Java Beans. When the compiler encounters an exception it performs bean introspection and creates a WSDL message with one part for each bean property. The type for the part becomes the Java to XML type mapping available for said type.
As with the wsdl2java compiler, the rmi2soap
is fully integrated with the type mapper component of Novell exteNd WSSDK.
Again, you must provide a resource called xmlrpc.type.mappings
as described in the wsdl2java compiler
documentation.
You can also refer to the rmi2wsdl man page for a detailed description of the compiler's command line options.
Copyright © 2003, 2004 Novell, Inc. All rights reserved. Copyright © 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved.