Chapter 8 Working with Web Services
JAX-RPC is a Java API for XML-based RPC (Remote Procedure Calling protocol). It facilitates RPC over the Internet allowing XML formatted parameters to be passed to remote services and allowing XML formatted values to be returned.
If the Web service implementation type is JAX-RPC, PowerDesigner uses the JAX-RPC model for implementation. JAX-RPC defines RPC type invocation for Web Services but it is limited to simple message formats. You can use very complex Objects/XML mapping.
Using the JAX-RPC model implies to:
To use JAX-RPC You can use the Java Web Services Developer Pack (JWSDP) 1.1 or higher from Sun or other application servers that support the JAX-RPC model. You can download JWSDP from http://java.sun.com/webservices/
To generate server side code and client proxy for JAX-RPC If you use JWSDP, you can use the wscompile.bat tool. For other JAX-RPC compatible implementations, please refer to the documentation. To invoke the wscompile.bat tool from PowerDesigner, you have to define an environment variable WSCOMPILE in the Variables category located in the Tools>General Options windows. The WSCOMPILE variable should indicate the full path of the wscompile.bat file. To run wscompile.bat, the jaxrpc-api.jar file must be in your CLASSPATH environment variable. You can also define a JAVACLASSPATH variable in PowerDesigner to define the classpath specific to PowerDesigner, in this case the JAVACLASSPATH variable replaces the CLASSPATH environment variable
To deploy JAX-RPC Web Service components You need an application server or a Servlet container that supports JAX-RPC. JWSDP ships with Apache Tomcat that supports JAX-RPC
To generate JAX-RPC Web Service components:
If you have a server like Apache Tomcat that supports JAX-RPC, you can add a profile and use the deployment command to deploy the generated .WAR file directly into the server.
Copyright (C) 2006. Sybase Inc. All rights reserved. |