System.Web.Services.Discovery.SchemaReference Read7_SchemaReference(bool isNullable, bool checkType) { if (isNullable && ReadNull()) { return(null); } if (checkType) { System.Xml.XmlQualifiedName t = GetXsiType(); if (t == null || ((object)((System.Xml.XmlQualifiedName)t).Name == (object)id15_SchemaReference && (object)((System.Xml.XmlQualifiedName)t).Namespace == (object)id4_httpschemasxmlsoaporgdiscoschema)) { ; } else { throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)t); } } System.Web.Services.Discovery.SchemaReference o = new System.Web.Services.Discovery.SchemaReference(); bool[] paramsRead = new bool[2]; while (Reader.MoveToNextAttribute()) { if (!paramsRead[0] && ((object)Reader.LocalName == (object)id11_ref && (object)Reader.NamespaceURI == (object)id12_Item)) { o.@Ref = Reader.Value; paramsRead[0] = true; } else if (!paramsRead[1] && ((object)Reader.LocalName == (object)id18_targetNamespace && (object)Reader.NamespaceURI == (object)id12_Item)) { o.@TargetNamespace = Reader.Value; paramsRead[1] = true; } else if (!IsXmlnsAttribute(Reader.Name)) { UnknownNode((object)o); } } Reader.MoveToElement(); if (Reader.IsEmptyElement) { Reader.Skip(); return(o); } Reader.ReadStartElement(); Reader.MoveToContent(); while (Reader.NodeType != System.Xml.XmlNodeType.EndElement) { if (Reader.NodeType == System.Xml.XmlNodeType.Element) { UnknownNode((object)o); } else { UnknownNode((object)o); } Reader.MoveToContent(); } ReadEndElement(); return(o); }
System.Web.Services.Discovery.SoapBinding Read9_SoapBinding(bool isNullable, bool checkType) { if (isNullable && ReadNull()) { return(null); } if (checkType) { System.Xml.XmlQualifiedName t = GetXsiType(); if (t == null || ((object)((System.Xml.XmlQualifiedName)t).Name == (object)id14_SoapBinding && (object)((System.Xml.XmlQualifiedName)t).Namespace == (object)id6_httpschemasxmlsoaporgdiscosoap)) { ; } else { throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)t); } } System.Web.Services.Discovery.SoapBinding o = new System.Web.Services.Discovery.SoapBinding(); bool[] paramsRead = new bool[2]; while (Reader.MoveToNextAttribute()) { if (!paramsRead[0] && ((object)Reader.LocalName == (object)id19_address && (object)Reader.NamespaceURI == (object)id12_Item)) { o.@Address = Reader.Value; paramsRead[0] = true; } else if (!paramsRead[1] && ((object)Reader.LocalName == (object)id20_binding && (object)Reader.NamespaceURI == (object)id12_Item)) { o.@Binding = ToXmlQualifiedName(Reader.Value); paramsRead[1] = true; } else if (!IsXmlnsAttribute(Reader.Name)) { UnknownNode((object)o); } } Reader.MoveToElement(); if (Reader.IsEmptyElement) { Reader.Skip(); return(o); } Reader.ReadStartElement(); Reader.MoveToContent(); while (Reader.NodeType != System.Xml.XmlNodeType.EndElement) { if (Reader.NodeType == System.Xml.XmlNodeType.Element) { UnknownNode((object)o); } else { UnknownNode((object)o); } Reader.MoveToContent(); } ReadEndElement(); return(o); }
global::Universal.Common.Serialization.XmlSerializable Read2_XmlSerializable(bool isNullable, bool checkType, string defaultNamespace = null) { System.Xml.XmlQualifiedName xsiType = checkType ? GetXsiType() : null; bool isNull = false; if (isNullable) { isNull = ReadNull(); } if (checkType) { if (xsiType == null || ((object)((System.Xml.XmlQualifiedName)xsiType).Name == (object)id1_XmlSerializable && string.Equals(((System.Xml.XmlQualifiedName)xsiType).Namespace, defaultNamespace ?? id2_Item))) { } else { throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)xsiType); } } if (isNull) { return(null); } throw CreateAbstractTypeException(@"XmlSerializable", @""); }
public System.Xml.Schema.XmlSchemaObject this[System.Xml.XmlQualifiedName name] { get { throw new NotImplementedException("Item"); } }
private static System.Xml.XmlQualifiedName DiscoverMethodMessage(string method, string httpHint, ServiceDescription sd) { string hint = method + httpHint + "In"; System.Xml.XmlQualifiedName xMessage = null; string serviceName = sd.Services[0].Name; PortType pt = sd.PortTypes[serviceName + httpHint]; if (pt == null) { return(null); } foreach (Operation opItem in pt.Operations) { if (opItem.Name == method) { foreach (OperationMessage mss in opItem.Messages) { OperationInput inputMessage = mss as OperationInput; if (inputMessage != null) { xMessage = inputMessage.Message; break; } } } } return(xMessage); }
/// <summary> /// Stores the arguments for uses with a SymbolicId that is used to look up default text. /// </summary> public TranslationInfo(System.Xml.XmlQualifiedName symbolicId, params object[] args) { m_key = symbolicId.ToString(); m_locale = String.Empty; m_text = String.Empty; m_args = args; }
string GetCodeTypeName(QName mappedTypeName) { if (mappedTypeName.Namespace == ms_arrays_ns) { return(DataContractSerializerMessageContractImporter.GetCLRTypeName(mappedTypeName.Name.Substring("ArrayOf".Length)) + "[]"); } return(mappedTypeName.Name); }
public Type ResolveName(System.Xml.XmlQualifiedName typeName) { if (xmlNames.ContainsKey(typeName)) { return(xmlNames[typeName]); } return(null); }
/// <summary> /// Extends Find so that methods that return a specific type object given a Type parameter can be /// used as generic method and casting is not required. /// <example> /// xmlschemas.Find<int>(name); /// </example> /// </summary> public static T Find <T>(this XmlSchemas xmlschemas, System.Xml.XmlQualifiedName name) { if (xmlschemas == null) { throw new ArgumentNullException("xmlschemas"); } return((T)xmlschemas.Find(name, typeof(T))); }
protected virtual object ReadClassInstance(XmlTypeMapping typeMap, bool isNullable, bool checkType) { if (isNullable && ReadNull()) { return(null); } if (checkType) { System.Xml.XmlQualifiedName t = GetXsiType(); if (t != null) { XmlTypeMapping realMap = typeMap.GetRealElementMap(t.Name, t.Namespace); if (realMap == null) { if (typeMap.TypeData.Type == typeof(object)) { return(ReadTypedPrimitive(t)); } else { throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)t); } } if (realMap != typeMap) { return(ReadObject(realMap, false, false)); } } else if (typeMap.TypeData.Type == typeof(object)) { return(ReadTypedPrimitive(AnyType)); } } object ob = CreateInstance(typeMap.TypeData.Type, true); Reader.MoveToElement(); bool isEmpty = Reader.IsEmptyElement; ReadClassInstanceMembers(typeMap, ob); if (isEmpty) { Reader.Skip(); } else { ReadEndElement(); } return(ob); }
public tPortType getPortType(System.Xml.XmlQualifiedName bx) { HashSet <tPortType> .Enumerator it = this.portType.GetEnumerator(); while (it.MoveNext()) { if (it.Current.name.Equals(bx.Name, System.StringComparison.CurrentCultureIgnoreCase)) { return(it.Current); } } return(null); }
/// <summary> /// A qualified name is considered equal if the namespace and /// name are the same. The prefix is ignored. /// </summary> public override bool Equals(object obj) { XmlElementQualifiedName xmlElementQualifiedName = obj as XmlElementQualifiedName; if (xmlElementQualifiedName != null) { return(this.xmlQualifiedName.Equals(xmlElementQualifiedName.xmlQualifiedName)); } else { System.Xml.XmlQualifiedName name = obj as System.Xml.XmlQualifiedName; if (name != null) { return(this.xmlQualifiedName.Equals(name)); } } return(false); }
private static WfSvcOperationParameterType SolveType(System.Xml.XmlQualifiedName xmlQualifiedName) { switch (xmlQualifiedName.Name) { case "int": case "integer": case "byte": case "short": return(WfSvcOperationParameterType.Int); case "datetime": return(WfSvcOperationParameterType.DateTime); case "string": return(WfSvcOperationParameterType.String); default: return(WfSvcOperationParameterType.RuntimeParameter); } }
private void createSerializer(System.Xml.XmlQualifiedName wrapper) { if ((wrapper == null)) { if (((this.info.IsWrapped == false) && this.info.IsResponse)) { wrapper = artificialWrapper; } } if (this.info.UseEncoded) { System.Xml.Serialization.SoapAttributeOverrides overrides = new System.Xml.Serialization.SoapAttributeOverrides(); if ((wrapper != null)) { System.Xml.Serialization.SoapAttributes attributes = new System.Xml.Serialization.SoapAttributes(); attributes.SoapType = new System.Xml.Serialization.SoapTypeAttribute(wrapper.Name, wrapper.Namespace); overrides.Add(this.info.MessageContractType, attributes); } System.Xml.Serialization.SoapReflectionImporter soapImporter = new System.Xml.Serialization.SoapReflectionImporter(overrides, this.info.DefaultNamespace); for (int i = 0; (i < this.info.ExtraTypes.Length); i = (i + 1)) { soapImporter.IncludeType(this.info.ExtraTypes[i]); } System.Xml.Serialization.XmlTypeMapping mapping = soapImporter.ImportTypeMapping(this.info.MessageContractType); this.serializer = new System.Xml.Serialization.XmlSerializer(mapping); } else { System.Xml.Serialization.XmlRootAttribute rootAttr = null; if ((wrapper != null)) { rootAttr = new System.Xml.Serialization.XmlRootAttribute(); rootAttr.ElementName = wrapper.Name; rootAttr.Namespace = wrapper.Namespace; } this.serializer = new System.Xml.Serialization.XmlSerializer(this.info.MessageContractType, null, this.info.ExtraTypes, rootAttr, this.info.DefaultNamespace); } }
private string SimpleTypes() { int i = 1; GeneratedContractsAsmx.ConsoleColor e = GeneratedContractsAsmx.ConsoleColor.Black; string s = "a"; decimal d = 1.1m; System.DateTime dt = new System.DateTime(2010, 7, 1, 8, 56, 3, 390); System.Guid g = new System.Guid("7098b473-acb5-495b-bce2-54a7bbd2b388"); System.Xml.XmlQualifiedName xqn = new System.Xml.XmlQualifiedName(); this.CustomiseSimpleTypes(ref i, ref e, ref s, ref d, ref dt, ref g, xqn); _testContext.BeginTimer("GeneratedAsmxFiddlerSampleTest_SimpleTypes"); try { return(testAsmxServiceSoapClient.SimpleTypes(i, e, s, d, dt, g, xqn)); } finally { _testContext.EndTimer("GeneratedAsmxFiddlerSampleTest_SimpleTypes"); } }
private string SimpleTypes() { int i = 1; GeneratedContractsAsmx.ConsoleColor e = GeneratedContractsAsmx.ConsoleColor.Black; string s = "a"; decimal d = 1.1m; System.DateTime dt = new System.DateTime(2010, 7, 1, 8, 55, 18, 73); System.Guid g = new System.Guid("5dd8865e-8d3c-49ce-ad07-a251ef753e27"); System.Xml.XmlQualifiedName xqn = new System.Xml.XmlQualifiedName(); this.CustomiseSimpleTypes(ref i, ref e, ref s, ref d, ref dt, ref g, xqn); _testContext.BeginTimer("GeneratedAsmxSampleTest_SimpleTypes"); try { return(testAsmxServiceSoapClient.SimpleTypes(i, e, s, d, dt, g, xqn)); } finally { _testContext.EndTimer("GeneratedAsmxSampleTest_SimpleTypes"); } }
System.Web.Services.Discovery.DiscoveryReference Read8_DiscoveryReference(bool isNullable, bool checkType) { if (isNullable && ReadNull()) { return(null); } if (checkType) { System.Xml.XmlQualifiedName t = GetXsiType(); if (t == null || ((object)((System.Xml.XmlQualifiedName)t).Name == (object)id13_DiscoveryReference && (object)((System.Xml.XmlQualifiedName)t).Namespace == (object)id4_httpschemasxmlsoaporgdiscoschema)) { ; } else if (((object)((System.Xml.XmlQualifiedName)t).Name == (object)id15_SchemaReference && (object)((System.Xml.XmlQualifiedName)t).Namespace == (object)id4_httpschemasxmlsoaporgdiscoschema)) { return(Read7_SchemaReference(isNullable, false)); } else { throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)t); } } throw CreateAbstractTypeException(@"DiscoveryReference", @"http://schemas.xmlsoap.org/disco/schema/"); }
public XmlUriData(string uriString, System.UriKind uriKind, System.Xml.XmlQualifiedName elementQualifiedName) { throw null; }
public XmlDateTimeData(string dateTimeString, System.Xml.XmlQualifiedName elementQualifiedName) { throw null; }
private static string QualifiedNameToAttributeTypeName(System.Xml.XmlQualifiedName xmlQualifiedName) { return(xmlQualifiedName.Name + " : " + xmlQualifiedName.Namespace); }
/// <summary> /// Gives the display string of a type. /// </summary> /// <param name="type">The type.</param> /// <param name="xmlQualifiedName">Name of the XML qualified.</param> /// <returns></returns> public static string QualifiedNameToFullName(string type, System.Xml.XmlQualifiedName xmlQualifiedName) { return(xmlQualifiedName.Namespace + ':' + type + ':' + xmlQualifiedName.Name); }
// Methods public XmlTypeMapping ImportDerivedTypeMapping(System.Xml.XmlQualifiedName name, Type baseType, bool baseTypeCanBeIndirect) { }
global::TodoListApp.Todo Read2_Todo(bool isNullable, bool checkType, string defaultNamespace = null) { System.Xml.XmlQualifiedName xsiType = checkType ? GetXsiType() : null; bool isNull = false; if (isNullable) { isNull = ReadNull(); } if (checkType) { if (xsiType == null || ((object)((System.Xml.XmlQualifiedName)xsiType).Name == (object)id3_Todo && string.Equals(((System.Xml.XmlQualifiedName)xsiType).Namespace, defaultNamespace ?? id2_Item))) { } else { throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)xsiType); } } if (isNull) { return(null); } global::TodoListApp.Todo o; o = new global::TodoListApp.Todo(); bool[] paramsRead = new bool[8]; while (Reader.MoveToNextAttribute()) { if (!IsXmlnsAttribute(Reader.Name)) { UnknownNode((object)o); } } Reader.MoveToElement(); if (Reader.IsEmptyElement) { Reader.Skip(); return(o); } Reader.ReadStartElement(); Reader.MoveToContent(); int whileIterations1 = 0; int readerCount1 = ReaderCount; while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) { if (Reader.NodeType == System.Xml.XmlNodeType.Element) { if (!paramsRead[0] && ((object)Reader.LocalName == (object)id4__UID && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_Item))) { { o.@_UID = Reader.ReadElementContentAsString(); } paramsRead[0] = true; } else if (!paramsRead[1] && ((object)Reader.LocalName == (object)id5__Title && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_Item))) { { o.@_Title = Reader.ReadElementContentAsString(); } paramsRead[1] = true; } else if (!paramsRead[2] && ((object)Reader.LocalName == (object)id6__Description && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_Item))) { { o.@_Description = Reader.ReadElementContentAsString(); } paramsRead[2] = true; } else if (!paramsRead[3] && ((object)Reader.LocalName == (object)id7__isDone && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_Item))) { { o.@_isDone = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementContentAsString()); } paramsRead[3] = true; } else if (!paramsRead[4] && ((object)Reader.LocalName == (object)id8_UID && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_Item))) { { o.@UID = Reader.ReadElementContentAsString(); } paramsRead[4] = true; } else if (!paramsRead[5] && ((object)Reader.LocalName == (object)id9_Title && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_Item))) { { o.@Title = Reader.ReadElementContentAsString(); } paramsRead[5] = true; } else if (!paramsRead[6] && ((object)Reader.LocalName == (object)id10_Description && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_Item))) { { o.@Description = Reader.ReadElementContentAsString(); } paramsRead[6] = true; } else if (!paramsRead[7] && ((object)Reader.LocalName == (object)id11_isDone && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_Item))) { { o.@isDone = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementContentAsString()); } paramsRead[7] = true; } else { UnknownNode((object)o, @":_UID, :_Title, :_Description, :_isDone, :UID, :Title, :Description, :isDone"); } } else { UnknownNode((object)o, @":_UID, :_Title, :_Description, :_isDone, :UID, :Title, :Description, :isDone"); } Reader.MoveToContent(); CheckReaderCount(ref whileIterations1, ref readerCount1); } ReadEndElement(); return(o); }
private void ExportDataContract (MessagePartDescription md) { #if USE_DATA_CONTRACT_IMPORTER if (xsd_data_importer == null) xsd_data_importer = md.Importer; #else var mapping = md.XmlTypeMapping; if (mapping == null) return; QName qname = new QName (mapping.TypeName, mapping.Namespace); if (imported_names.ContainsKey (qname)) return; CodeNamespace cns = new CodeNamespace (); XmlCodeExporter xce = new XmlCodeExporter (cns); xce.ExportTypeMapping (mapping); List <CodeTypeDeclaration> to_remove = new List <CodeTypeDeclaration> (); //Process the types just generated //FIXME: Iterate and assign the types to correct namespaces //At the end, add all those namespaces to the ccu foreach (CodeTypeDeclaration type in cns.Types) { string ns = GetXmlNamespace (type); if (ns == null) //FIXME: do what here? continue; QName type_name = new QName (type.Name, ns); if (imported_names.ContainsKey (type_name)) { //Type got reemitted, so remove it! to_remove.Add (type); continue; } if (ns == ms_arrays_ns) { //Do not emit arrays as an independent type. to_remove.Add (type); continue; } imported_names [type_name] = type_name; type.Comments.Clear (); //Custom Attributes type.CustomAttributes.Clear (); if (type.IsEnum) continue; type.CustomAttributes.Add ( new CodeAttributeDeclaration ( new CodeTypeReference ("System.CodeDom.Compiler.GeneratedCodeAttribute"), new CodeAttributeArgument (new CodePrimitiveExpression ("System.Runtime.Serialization")), new CodeAttributeArgument (new CodePrimitiveExpression ("3.0.0.0")))); type.CustomAttributes.Add ( new CodeAttributeDeclaration ( new CodeTypeReference ("System.Runtime.Serialization.DataContractAttribute"))); //BaseType and interface type.BaseTypes.Add (new CodeTypeReference (typeof (object))); type.BaseTypes.Add (new CodeTypeReference ("System.Runtime.Serialization.IExtensibleDataObject")); foreach (CodeTypeMember mbr in type.Members) { CodeMemberProperty p = mbr as CodeMemberProperty; if (p == null) continue; if ((p.Attributes & MemberAttributes.Public) == MemberAttributes.Public) { //FIXME: Clear all attributes or only XmlElementAttribute? p.CustomAttributes.Clear (); p.CustomAttributes.Add (new CodeAttributeDeclaration ( new CodeTypeReference ("System.Runtime.Serialization.DataMemberAttribute"))); p.Comments.Clear (); } } //Fields CodeMemberField field = new CodeMemberField ( new CodeTypeReference ("System.Runtime.Serialization.ExtensionDataObject"), "extensionDataField"); field.Attributes = MemberAttributes.Private | MemberAttributes.Final; type.Members.Add (field); //Property CodeMemberProperty prop = new CodeMemberProperty (); prop.Type = new CodeTypeReference ("System.Runtime.Serialization.ExtensionDataObject"); prop.Name = "ExtensionData"; prop.Attributes = MemberAttributes.Public | MemberAttributes.Final; //Get prop.GetStatements.Add (new CodeMethodReturnStatement ( new CodeFieldReferenceExpression ( new CodeThisReferenceExpression (), "extensionDataField"))); //Set prop.SetStatements.Add (new CodeAssignStatement ( new CodeFieldReferenceExpression ( new CodeThisReferenceExpression (), "extensionDataField"), new CodePropertySetValueReferenceExpression ())); type.Members.Add (prop); } foreach (CodeTypeDeclaration type in to_remove) cns.Types.Remove (type); ccu.Namespaces.Add (cns); #endif }
internal static ResultSetType QueryHelper(string NodeURL, string secToken, string dataFlow, string request, int? rowID, int? maxRows, List<ParameterType> pars) { try { NetworkNode2 nn = new NetworkNode2(); nn.Url = NodeURL; nn.SoapVersion = SoapProtocolVersion.Soap12; Query q1 = new Query(); q1.securityToken = secToken; q1.dataflow = dataFlow; q1.request = request; q1.rowId = (rowID ?? 0).ToString(); q1.maxRows = (maxRows ?? -1).ToString(); ParameterType[] ps = new ParameterType[pars.Count]; int i = 0; System.Xml.XmlQualifiedName parType = new System.Xml.XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema"); foreach (ParameterType par in pars) { if (par.parameterEncoding == null) par.parameterEncoding = EncodingType.None; ps[i] = par; i++; } q1.parameters = ps; return nn.Query(q1); } catch (SoapException sExept) { db_Ref.InsertT_OE_SYS_LOG("ERROR", sExept.Message.SubStringPlus(0, 1999)); //logging an authentication failure //special handling of an unauthorized if (sExept.Message.SubStringPlus(0, 9) == "ORA-20997") { ResultSetType rs = new ResultSetType(); rs.rowId = "-99"; return rs; } return null; } }
string GetCodeTypeName (QName mappedTypeName) { if (mappedTypeName.Namespace == ms_arrays_ns) return DataContractSerializerMessageContractImporter.GetCLRTypeName (mappedTypeName.Name.Substring ("ArrayOf".Length)) + "[]"; return mappedTypeName.Name; }
private void CustomiseSimpleTypes(ref int i, ref GeneratedContractsAsmx.ConsoleColor e, ref string s, ref decimal d, ref System.DateTime dt, ref System.Guid g, System.Xml.XmlQualifiedName xqn) { }
public string FormatNumberDynamic(double value, string formatPicture, System.Xml.XmlQualifiedName decimalFormatName, string errorMessageName) { }
public bool ElementAvailable(System.Xml.XmlQualifiedName name) { }
/// <remarks/> protected virtual global::Mvp.Xml.Design.Tests.CustomerSchemaOrders Read2_CustomerSchemaOrders(bool isNullable, bool checkType) { System.Xml.XmlQualifiedName xsiType = checkType ? GetXsiType() : null; bool isNull = false; if (isNullable) { isNull = ReadNull(); } if (checkType) { if (xsiType == null || ((object)((System.Xml.XmlQualifiedName)xsiType).Name == (object)id2_Item && (object)((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { } else { throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)xsiType); } } if (isNull) { return(null); } global::Mvp.Xml.Design.Tests.CustomerSchemaOrders o; o = new global::Mvp.Xml.Design.Tests.CustomerSchemaOrders(); bool[] paramsRead = new bool[1]; while (Reader.MoveToNextAttribute()) { if (!IsXmlnsAttribute(Reader.Name)) { UnknownNode((object)o); } } Reader.MoveToElement(); if (Reader.IsEmptyElement) { Reader.Skip(); return(o); } Reader.ReadStartElement(); Reader.MoveToContent(); int whileIterations0 = 0; int readerCount0 = ReaderCount; while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) { if (Reader.NodeType == System.Xml.XmlNodeType.Element) { if (!paramsRead[0] && ((object)Reader.LocalName == (object)id3_Date && (object)Reader.NamespaceURI == (object)id2_Item)) { { o.@Date = ToDateTime(Reader.ReadElementString()); } paramsRead[0] = true; } else { UnknownNode((object)o, @":Date"); } } else { UnknownNode((object)o, @":Date"); } Reader.MoveToContent(); CheckReaderCount(ref whileIterations0, ref readerCount0); } ReadEndElement(); return(o); }
internal static StatusResponseType SolicitHelper(string NodeURL, string secToken, string dataFlow, string request, int? rowID, int? maxRows, List<ParameterType> pars) { try { NetworkNode2 nn = new NetworkNode2(); nn.Url = NodeURL; nn.SoapVersion = SoapProtocolVersion.Soap12; Solicit s1 = new Solicit(); s1.securityToken = secToken; s1.dataflow = dataFlow; s1.request = request; ParameterType[] ps = new ParameterType[pars.Count]; int i = 0; System.Xml.XmlQualifiedName parType = new System.Xml.XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema"); foreach (ParameterType par in pars) { if (par.parameterEncoding == null) par.parameterEncoding = EncodingType.None; ps[i] = par; i++; } s1.parameters = ps; return nn.Solicit(s1); } catch (SoapException sExept) { db_Ref.InsertT_OE_SYS_LOG("WQX", sExept.Message.SubStringPlus(0, 1999)); return null; } }
public bool FunctionAvailable(System.Xml.XmlQualifiedName name) { }
public static void AddDefaultSchema(System.Xml.Schema.XmlSchemaSet schemas, System.Xml.XmlQualifiedName typeQName) { }
public int RegisterDecimalFormat(System.Xml.XmlQualifiedName name, string infinitySymbol, string nanSymbol, string characters) { }