
Untitled
By: a guest on
May 11th, 2012 | syntax:
None | size: 1.27 KB | hits: 18 | expires: Never
Matching Argument and Result Types in .NET Web Method (SOAP)
[WebMethod]
[SoapHeader("soapHeader")]
[SoapDocumentMethod(Action = "ActionURI", Binding = "myBinding", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: XmlElement("UQL", Namespace = "UQLNamespace")]
public UQL UQL([XmlAnyElement("UQL", Namespace = "UQLNamespace")] XmlElement wspRequest)
{ .. }
<soap:envelope>
<soap:header>...</soap:header>
<soap:body>
<UQLNamespace:UQL>
<childOne>...</childOne>
<childTwo>...</childTwo>
<childThree>
<childThreeA>...</childThreeA>
</childThree>
</UQLNamespace:UQL>
</soap:body>
</soap:envelope>
<soap:envelope>
<soap:body>
<UQLNamespace:UQL>
...
</UQLNamespace:UQL>
</soap:body>
</soap:envelope>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="UQLNamespace")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="UQLNamespace", IsNullable=false)]
public partial class UQL { .. }