Chapter 8 Working with Web Services
JAXM is a Java API for XML messaging that provides a standard way to send XML documents over the Internet from the Java platform.
If the Web service implementation type is JAXM, PowerDesigner uses the JAXM model for implementation. JAXM Web Service components provide the flexibility for handling complex message formats.
The JAXM Java class uses the onMessage() method to get the SOAP input message and return the output SOAP message. To generate correct WSDL, you have to define a Web Service method with the correct name, input message format and output message format but without implementation. The onMessage() method should not be defined as a Web Service method.
To use JAXM You can use the Java Web Services Developer Pack (JWSDP) 1.1 or higher from Sun or a Servlet container or J2EE server that supports JAXM. You can download JWSDP from http://java.sun.com/webservices/
To compile JAXM Web Service components You need the jaxm-api.jar, jaxp-api.jar and saaj-api.jar files 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 JAXM Web Service components You need an application server or a Servlet container that supports JAXM. JWSDP ships with Apache Tomcat that supports JAXM
To generate JAXM Web Service components:
If you have a Servlet container like Apache Tomcat that supports JAXM, 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. |