IBM Support

Modify the target package for JAXB classes when generating Web Service

Technote (FAQ)


How can you specify the package where the JAXB classes are generated with IBM Rational Application Developer for WebSphere Software, when generating bottom-up Web Services?


You want to create Web Services easier.


You can use the annotations @RequestWrapper and @ResponseWrapper with properties className.

  1. Specify the name of the class that represents the request wrapper.

  2. Include the package name separated by dots.

package com;

import javax.jws.WebService;

public class ServiceImpl {

public A op1(B b){
 return new A();


The tool will create JAXB classes within the package x.

For more information see the Information Center article about JAX-WS 2.0 Annotations.

Document information

More support for: Rational Application Developer for WebSphere Software
Web Services Development

Software version:,,, 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4,, 8.5

Operating system(s): Linux, Solaris, Windows

Reference #: 1617700

Modified date: 20 November 2012

Translate this page: