[System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlArrayItemAttribute("entries", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)] public partial mapEntry[] args { get { return this.argsField; } set { this.argsField = value; } }
[System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://webservice.api.cabaret.com/")] public partial class callArgs { private string nameField; private mapEntry[] argsField; /// <remarks/> [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public string name { get { return this.nameField; } set { this.nameField = value; } } /// <remarks/> [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlArrayItemAttribute("entries", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)] public mapEntry[] args { get { return this.argsField; } set { this.argsField = value; } } } Below is my response SOAP XML <pre lang="XML"> <name>signatures</name> <value xsi:type="ns2:map" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <entries><value xsi:type="ns2:map"> <entries> <name>type</name> <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">signature</value> </entries> <entries> <name>state</name> <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:int">3</value> </entries>
XmlRootAttribute xRoot = new XmlRootAttribute("callArgs"); xRoot.ElementName = "name"; xRoot.Namespace = "http://webservice.api.cabaret.com/"; xRoot.IsNullable = true; System.IO.StringReader stringReader = new System.IO.StringReader(ValidatePDF[5].InnerXml); XmlSerializer deserializer = new XmlSerializer(typeof(callArgs),xRoot); callArgs devicesResult = (callArgs)deserializer.Deserialize(stringReader);
XmlSerializer
SoapFormatter
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)