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?
Thanks