System\ServiceModel\Description\MessageContractExporter.cs (30)
53XmlQualifiedName qname = new XmlQualifiedName(element.Name, elementNs);
186WsdlNS.MessagePart wsdlPart = AddMessagePart(message, partName, XmlQualifiedName.Empty, DataContractSerializerMessageContractImporter.GenericMessageTypeName);
215XmlQualifiedName elementName = ExportFaultElement(fault);
225XmlQualifiedName ExportFaultElement(FaultDescription fault)
228XmlQualifiedName typeName = ExportType(fault.DetailType, fault.Name, operation.Name, out xsdType);
229XmlQualifiedName elementName;
256protected XmlQualifiedName ExportType(Type type, string partName, string operationName, out XmlSchemaType xsdType)
265XmlQualifiedName typeName = DataContractExporter.GetSchemaTypeName(type);
279static protected WsdlNS.MessagePart AddMessagePart(WsdlNS.Message message, string partName, XmlQualifiedName elementName, XmlQualifiedName typeName)
346static protected bool IsNullOrEmpty(XmlQualifiedName qname)
351protected void ExportGlobalElement(string elementName, string elementNs, bool isNillable, XmlQualifiedName typeName, XmlSchemaType xsdType, XmlSchemaSet schemaSet)
368void ExportLocalElement(string wrapperNs, string elementName, string elementNs, XmlQualifiedName typeName, XmlSchemaType xsdType, bool multiple, bool isOptional, bool isNillable, XmlSchemaSequence sequence, XmlSchemaSet schemaSet)
410AddMessagePart(message, "parameters", new XmlQualifiedName(elementName, elementNs), XmlQualifiedName.Empty);
558protected void ExportMessagePart(WsdlNS.Message message, MessagePartDescription part, XmlQualifiedName typeName, XmlSchemaType xsdType, bool isOptional, bool isNillable, bool skipSchemaExport, bool generateElement, string wrapperNs, XmlSchemaSequence wrapperSequence, XmlSchemaSet schemaSet)
581wsdlPart = AddMessagePart(message, partName, new XmlQualifiedName(elementName, part.Namespace), XmlQualifiedName.Empty);
589wsdlPart = AddMessagePart(message, partName, XmlQualifiedName.Empty, typeName);
692XmlQualifiedName wsdlHeaderMessageName = new XmlQualifiedName(headerMessage.Name, headerMessage.ServiceDescription.TargetNamespace);
735void ExportMessageHeaderBinding(MessageHeaderDescription header, XmlQualifiedName messageName, bool isEncoded, WsdlNS.MessageBinding messageBinding)
791readonly internal Dictionary<XmlQualifiedName, OperationElement> ElementTypes = new Dictionary<XmlQualifiedName, OperationElement>();
949XmlQualifiedName typeName = ExportType(dataContractType, header.Name, operation.Name, out xsdType);
979XmlQualifiedName typeName = ExportType(dataContractType, description.Body.ReturnValue.Name, operation.Name, out xsdType);
987XmlQualifiedName typeName = ExportType(dataContractType, bodyPart.Name, operation.Name, out xsdType);
1150XmlQualifiedName elementName = ExportFaultElement(fault, operationReflector);
1160XmlQualifiedName ExportFaultElement(FaultDescription fault, XmlSerializerOperationBehavior.Reflector.OperationReflector operationReflector)
1162XmlQualifiedName elementName;
1221AddMessagePart(message, "parameters", new XmlQualifiedName(membersMapping.XsdElementName, membersMapping.Namespace), XmlQualifiedName.Empty);
1231AddMessagePart(message, partName, new XmlQualifiedName(member.XsdElementName, member.Namespace), XmlQualifiedName.Empty);
1237AddMessagePart(message, partName, XmlQualifiedName.Empty, new XmlQualifiedName(member.TypeName, member.TypeNamespace));
System\ServiceModel\Description\MessageContractImporter.cs (59)
27static readonly XmlQualifiedName AnyType = new XmlQualifiedName("anyType", XmlSchema.Namespace);
245XmlQualifiedName detailElementTypeName;
246XmlQualifiedName detailElementQname;
585XmlQualifiedName detailElementTypeName;
586XmlQualifiedName detailElementQname;
608out XmlQualifiedName detailElementTypeName, out XmlQualifiedName detailElementQname)
675XmlQualifiedName typeName = part.Type;
711XmlQualifiedName typeName = part.Type;
733XmlQualifiedName elementName = wsdlPart.Element;
795static XmlSchemaElement FindSchemaElement(XmlSchemaSet schemaSet, XmlQualifiedName elementName)
801static XmlSchemaElement FindSchemaElement(XmlSchemaSet schemaSet, XmlQualifiedName elementName, out XmlSchema containingSchema)
819static XmlSchemaType FindSchemaType(XmlSchemaSet schemaSet, XmlQualifiedName typeName)
827static XmlSchemaType FindSchemaType(XmlSchemaSet schemaSet, XmlQualifiedName typeName, out XmlSchema containingSchema)
855XmlQualifiedName[] wsdlPrefixNsPairs = wsdl.Namespaces.ToArray();
861XmlQualifiedName[] xsdPrefixNsPairs = xsdNamespaces.ToArray();
863foreach (XmlQualifiedName pair in xsdPrefixNsPairs)
865foreach (XmlQualifiedName pair in wsdlPrefixNsPairs)
1218static XmlQualifiedName GetTypeName(XmlSchemaElement element)
1221return XmlQualifiedName.Empty;
1228static bool IsNullOrEmpty(XmlQualifiedName qname)
1238static bool CheckAndAddPart(XmlQualifiedName typeNameFound, XmlQualifiedName typeNameRequired, string name, string ns, Type type, MessageDescription description, bool isReply)
1251static bool CheckPart(XmlQualifiedName typeNameFound, XmlQualifiedName typeNameRequired)
1256static XmlSchemaComplexType GetElementComplexType(XmlQualifiedName elementName, XmlSchemaSet schemaSet, out string ns, out XmlSchemaForm elementFormDefault)
1270XmlQualifiedName schemaTypeName = GetTypeName(schemaElement);
1462internal XmlQualifiedName GetPartName(WsdlNS.MessagePart part)
1499internal MessagePartDescription ImportParameterElement(XmlQualifiedName elementName, bool isHeader, bool isMultiple)
1517internal virtual bool CanImportFault(XmlSchemaElement detailElement, XmlQualifiedName detailElementTypeName)
1522internal virtual CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded)
1527internal virtual CodeTypeReference ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded)
1542internal abstract bool CanImportType(XmlQualifiedName typeName);
1543internal abstract string ImportType(MessagePartDescription part, XmlQualifiedName typeName, bool isEncoded);
1546internal abstract bool CanImportWrapperElement(XmlQualifiedName elementName);
1547internal abstract MessagePartDescription[] ImportWrapperElement(XmlQualifiedName elementName);
1596internal override bool CanImportType(XmlQualifiedName typeName)
1600internal override bool CanImportWrapperElement(XmlQualifiedName elementName)
1628internal override bool CanImportFault(XmlSchemaElement detailElement, XmlQualifiedName detailElementTypeName)
1651internal override MessagePartDescription[] ImportWrapperElement(XmlQualifiedName elementName)
1678internal override string ImportType(MessagePartDescription part, XmlQualifiedName typeName, bool isEncoded)
1713XmlQualifiedName typeName = null;
1752private bool IsValueType(XmlQualifiedName typeName)
1788internal override CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded)
1793XmlQualifiedName typeName = DataContractImporter.Import(schemaSet, element);
1815internal override CodeTypeReference ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded)
1829internal bool CanImportFaultType(XmlQualifiedName typeName)
1975internal override bool CanImportType(XmlQualifiedName typeName)
1980internal override bool CanImportWrapperElement(XmlQualifiedName elementName)
1990internal override bool CanImportFault(XmlSchemaElement detailElement, XmlQualifiedName detailElementTypeName)
2009internal override MessagePartDescription[] ImportWrapperElement(XmlQualifiedName elementName)
2025internal override CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded)
2029XmlMembersMapping membersMapping = xmlImporter.ImportMembersMapping(new XmlQualifiedName[] { elementName });
2034internal override CodeTypeReference ImportFaultType(XmlQualifiedName elementName, XmlQualifiedName typeName, bool isEncoded)
2055internal override string ImportType(MessagePartDescription part, XmlQualifiedName typeName, bool isEncoded)
2074XmlMembersMapping membersMapping = xmlImporter.ImportMembersMapping(new XmlQualifiedName[] { element.QualifiedName });
System\ServiceModel\Description\TypeLoader.cs (6)
183XmlQualifiedName contractName = NamingHelper.GetContractName(channelType, null, NamingHelper.MSNamespace);
198XmlQualifiedName contractName = NamingHelper.GetContractName(channelType, null, NamingHelper.MSNamespace);
693XmlQualifiedName contractName = NamingHelper.GetContractName(contractType, contractAttr.Name, contractAttr.Namespace);
922XmlQualifiedName contractQname = new XmlQualifiedName(declaringContract.Name, declaringContract.Namespace);
1048XmlQualifiedName contractName,
1503void AddSortedParts<T>(List<T> partDescriptionList, KeyedCollection<XmlQualifiedName, T> partDescriptionCollection)
System\ServiceModel\Description\WsdlExporter.cs (19)
108public void ExportEndpoints(IEnumerable<ServiceEndpoint> endpoints, XmlQualifiedName wsdlServiceQName)
113internal void ExportEndpoints(IEnumerable<ServiceEndpoint> endpoints, XmlQualifiedName wsdlServiceQName, BindingParameterCollection bindingParameters)
145void ExportEndpoint(ServiceEndpoint endpoint, XmlQualifiedName wsdlServiceQName, BindingParameterCollection bindingParameters)
256XmlQualifiedName wsdlPortTypeQName = WsdlNamingHelper.GetPortTypeQName(contract);
307WsdlNS.Binding CreateWsdlBindingAndPort(ServiceEndpoint endpoint, XmlQualifiedName wsdlServiceQName, out WsdlNS.Port wsdlPort, out bool newBinding, out bool bindingNameWasUniquified)
312XmlQualifiedName wsdlBindingQName;
313XmlQualifiedName wsdlPortTypeQName;
502WsdlNS.Service GetOrCreateWsdlService(XmlQualifiedName wsdlServiceQName)
1003static bool PrefixExists(XmlQualifiedName[] prefixDefinitions, string prefix)
1005return Array.Exists<XmlQualifiedName>(prefixDefinitions,
1006delegate(XmlQualifiedName prefixDef)
1017static bool TryMatchNamespace(XmlQualifiedName[] prefixDefinitions, string ns, out string prefix)
1020Array.Find<XmlQualifiedName>(prefixDefinitions,
1021delegate(XmlQualifiedName prefixDef)
1038internal static XmlQualifiedName GetPortTypeQName(ContractDescription contract)
1043internal static XmlQualifiedName GetBindingQName(ServiceEndpoint endpoint, WsdlExporter exporter, out bool wasUniquified)
1061XmlQualifiedName wsdlBindingQName = new XmlQualifiedName(localName, bindingWsdlNamespace);
1256public readonly XmlQualifiedName ServiceQName;
1258public EndpointDictionaryKey(ServiceEndpoint endpoint, XmlQualifiedName serviceQName)
System\ServiceModel\Description\WsdlImporter.cs (27)
26readonly Dictionary<XmlQualifiedName, WsdlContractConversionContext> importedPortTypes = new Dictionary<XmlQualifiedName, WsdlContractConversionContext>();
27readonly Dictionary<XmlQualifiedName, WsdlEndpointConversionContext> importedBindings = new Dictionary<XmlQualifiedName, WsdlEndpointConversionContext>();
303XmlQualifiedName wsdlPortTypeQName = new XmlQualifiedName(wsdlPortType.Name, wsdlPortType.ServiceDescription.TargetNamespace);
365XmlQualifiedName wsdlBindingQName = new XmlQualifiedName(wsdlBinding.Name, wsdlBinding.ServiceDescription.TargetNamespace);
416XmlQualifiedName bindingQName = WsdlNamingHelper.GetBindingName(wsdlBinding);
464XmlQualifiedName bindingQName = WsdlNamingHelper.GetBindingName(wsdlPort);
532ContractDescription CreateContractDescription(WsdlNS.PortType wsdlPortType, XmlQualifiedName wsdlPortTypeQName)
535XmlQualifiedName contractQName = WsdlNamingHelper.GetContractName(wsdlPortTypeQName);
550Binding CreateBinding(WsdlEndpointConversionContext endpointContext, XmlQualifiedName bindingQName)
573ContractDescription GetOrImportContractDescription(XmlQualifiedName wsdlPortTypeQName, out bool wasExistingContractDescription)
643bool TryFindExistingContract(XmlQualifiedName wsdlPortTypeQName, out ContractDescription existingContract)
645XmlQualifiedName contractQName = WsdlNamingHelper.GetContractName(wsdlPortTypeQName);
772XmlQualifiedName qName = GetUnhandledExtensionQName(ext, item);
810XmlQualifiedName GetUnhandledExtensionQName(object extension, WsdlNS.NamedItem item)
1184internal static XmlQualifiedName GetBindingName(WsdlNS.Binding wsdlBinding)
1190internal static XmlQualifiedName GetBindingName(WsdlNS.Port wsdlPort)
1202internal static XmlQualifiedName GetContractName(XmlQualifiedName wsdlPortTypeQName)
1323XmlQualifiedName wsdlBindingQName = new XmlQualifiedName(wsdlBinding.Name, wsdlBinding.ServiceDescription.TargetNamespace);
1328static public string FindAdHocTransportPolicy(PolicyConversionContext policyContext, out XmlQualifiedName wsdlBindingQName)
1333static public string FindAdHocPolicy(PolicyConversionContext policyContext, string key, out XmlQualifiedName wsdlBindingQName)
1435static void InsertPolicy(string key, string id, WsdlNS.ServiceDescription policyWsdl, string value, XmlQualifiedName wsdlBindingQName)
1453static XmlElement CreatePolicyElement(string elementName, string value, XmlQualifiedName wsdlBindingQName)
1525XmlQualifiedName qName = WsdlExporter.WsdlNamingHelper.GetPortTypeQName(contract);
1641XmlQualifiedName bindingQName = new XmlQualifiedName(endpointContext.WsdlBinding.Name, endpointContext.WsdlBinding.ServiceDescription.TargetNamespace);
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (11)
28static readonly XmlQualifiedName Atom10Href = new XmlQualifiedName(Atom10Constants.HrefTag, string.Empty);
29static readonly XmlQualifiedName Atom10Label = new XmlQualifiedName(Atom10Constants.LabelTag, string.Empty);
30static readonly XmlQualifiedName Atom10Length = new XmlQualifiedName(Atom10Constants.LengthTag, string.Empty);
31static readonly XmlQualifiedName Atom10Relative = new XmlQualifiedName(Atom10Constants.RelativeTag, string.Empty);
32static readonly XmlQualifiedName Atom10Scheme = new XmlQualifiedName(Atom10Constants.SchemeTag, string.Empty);
33static readonly XmlQualifiedName Atom10Term = new XmlQualifiedName(Atom10Constants.TermTag, string.Empty);
34static readonly XmlQualifiedName Atom10Title = new XmlQualifiedName(Atom10Constants.TitleTag, string.Empty);
35static readonly XmlQualifiedName Atom10Type = new XmlQualifiedName(Atom10Constants.TypeTag, string.Empty);
597Dictionary<XmlQualifiedName, string> attrs = null;
617attrs = new Dictionary<XmlQualifiedName, string>();
632foreach (XmlQualifiedName attr in attrs.Keys)