Technote (FAQ)
Question
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?
Cause
You want to create Web Services easier.
Answer
You can use the annotations @RequestWrapper and @ResponseWrapper with properties className.
- Specify the name of the class that represents the request wrapper.
- Include the package name separated by dots.
x.A")@ResponseWrapper(className="x.AResponse") 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.
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.