Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic Attribute Need to be added with Response Class

 
Anuradha Pal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Did Steve tell you that? Fuh - Steve. Just look at this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!