Generating JAXM 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

You need an application server or a Servlet container that supports JAXM. JWSDP ships with Apache Tomcat that supports JAXM

  1. Select Language > Generate Java Code .
  2. Select a directory where you want to generate the code.
  3. In the Tasks tab, select the command Java: Package J2EE application in an EAR file. This command will create a .WAR file and a .EAR file.
  4. Click OK.

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.


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com