Question & Answer
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.
[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Services Development","Platform":[{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.5.5.3;7.5.5.4;7.5.5.5;8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.4.1;8.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21617700