code_junkie

How can I get this request structure via .asmx web service?

Nov 12th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <methodOne>
  2. <myValue>string</myValue>
  3. <myDemoGroup>
  4. <myDemoGroupItem>string</myDemoGroupItem>
  5. <myDemoGroupItem2>string</myDemoGroupItem2>
  6. </myDemoGroup>
  7. <myComplexGroup>
  8. <mySubStructure>
  9. <subItem1>string</subItem1>
  10. <subItem2>string</subItem2>
  11. </mySubStructure>
  12. </myComplexGroup
  13. </methodOne>
  14.  
  15. [Web Method]
  16. public void MyWebMethod(MyWebMethodRequest methodOne)
  17. {
  18. //Do my stuff
  19. }
  20.  
  21. public class MyWebMethodRequest
  22. {
  23. public string myValue {get; set;}
  24. public MyDemoGroupInfo myDemoGroup {get; set;}
  25. }
  26.  
  27. public class MyDemoGroupInfo
  28. {
  29. public string myDemoGroupItem {get; set;}
  30. public string myDemoGroupItem2 {get; set;}
  31. }
  32.  
  33. public class MyComplexGroupInfo
  34. {
  35. public List<MySubStructureInfo> mySubStructure {get; set;}
  36. }
  37.  
  38. public class MySubStructureInfo
  39. {
  40. public string subItem1 {get; set;}
  41. public string subItem2 {get; set;}
  42. }
Add Comment
Please, Sign In to add comment