Register / Login
Win a copy of
Kotlin in Action
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
java2wsdl child elements vs attributes
posted 8 years ago
Lets say there is a
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
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?
rocket mass heater
Boost this thread!
Get webservice location using wsdl4j api
Sending a Complex element through the Header.
Multiple questions on WSDL elements as per the specifications.
java2wsdl with attribute mapping
How could there be multiple wsdl:message parts for a response?