Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 1.27 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Matching Argument and Result Types in .NET Web Method (SOAP)
  2. [WebMethod]
  3. [SoapHeader("soapHeader")]
  4. [SoapDocumentMethod(Action = "ActionURI", Binding = "myBinding", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare)]
  5. [return: XmlElement("UQL", Namespace = "UQLNamespace")]
  6. public UQL UQL([XmlAnyElement("UQL", Namespace = "UQLNamespace")] XmlElement wspRequest)
  7. { .. }
  8.        
  9. <soap:envelope>
  10.   <soap:header>...</soap:header>
  11.   <soap:body>
  12.     <UQLNamespace:UQL>
  13.       <childOne>...</childOne>
  14.       <childTwo>...</childTwo>
  15.       <childThree>
  16.         <childThreeA>...</childThreeA>
  17.       </childThree>
  18.     </UQLNamespace:UQL>
  19.   </soap:body>
  20. </soap:envelope>
  21.        
  22. <soap:envelope>
  23.   <soap:body>
  24.     <UQLNamespace:UQL>
  25.       ...
  26.     </UQLNamespace:UQL>
  27.   </soap:body>
  28. </soap:envelope>
  29.        
  30. [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
  31. [System.SerializableAttribute()]
  32. [System.Diagnostics.DebuggerStepThroughAttribute()]
  33. [System.ComponentModel.DesignerCategoryAttribute("code")]
  34. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="UQLNamespace")]
  35. [System.Xml.Serialization.XmlRootAttribute(Namespace="UQLNamespace", IsNullable=false)]
  36. public partial class UQL { .. }