Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java2wsdl child elements vs attributes  RSS feed

Babji Reddy
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets say there is a java class that has method
public Response hello(Request req)
Response res = new Resonse();

res.setResult( "Received "+req.getValue +", id : " + req.getId());


where Request object is
class Request{
String value;
long id;

Now if I generate WSDL for the POJO that has hello method, the WSDL generated will have a Request element that has two child elements value and id.

If I want to make the 'id' as attribute of Request element (instead of child element), how do I configure java2wsdl (axis or websphere) to make id as an attribute?

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!