Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java2wsdl child elements vs attributes

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?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic