wood burning stoves 2.0*
The moose likes Web Services and the fly likes Dynamic Attribute Need to be added with Response Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Dynamic Attribute Need to be added with Response Class" Watch "Dynamic Attribute Need to be added with Response Class" New topic
Author

Dynamic Attribute Need to be added with Response Class

Anuradha Pal
Greenhorn

Joined: Jul 28, 2011
Posts: 1
hi

i have created a xml webservice in .NET

where i have 3 classes and one web method

A is base class and b and c are subclasses of the A

In a webmethod named action() return response type as A

inside webmethod

if true then
return B
else
return c
end if

in case of True while returning the xml structure must include A as root element and B as it attribute
In case of False while returning the xml structure must include A as root element and c as it attribute
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Dynamic Attribute Need to be added with Response Class
 
Similar Threads
@WebMethod rules
Mock Exam Question
Whizlabs question
My two bits
Some Useful Notes