228 references to MetadataStrings
System.ServiceModel (228)
System\ServiceModel\Channels\HttpTransportBindingElement.cs (2)
771
XmlElement root = dummy.CreateElement(
MetadataStrings
.WSPolicy.Prefix,
772
MetadataStrings
.WSPolicy.Elements.ExactlyOne,
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (2)
626
string policy =
MetadataStrings
.WSPolicy.Elements.Policy;
628
string policyPrefix =
MetadataStrings
.WSPolicy.Prefix;
System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (7)
335
string policyLocalName =
MetadataStrings
.WSPolicy.Elements.Policy;
337
if (!IsElement(node,
MetadataStrings
.WSPolicy.NamespaceUri, policyLocalName)
338
&& !IsElement(node,
MetadataStrings
.WSPolicy.NamespaceUri15, policyLocalName))
346
ReliableSessionPolicyStrings.ReliableSessionName,
MetadataStrings
.WSPolicy.Prefix,
347
MetadataStrings
.WSPolicy.Elements.Policy)
349
ReliableSessionPolicyStrings.ReliableSessionName,
MetadataStrings
.WSPolicy.Prefix,
350
MetadataStrings
.WSPolicy.Elements.Policy, node.LocalName, node.NamespaceURI);
System\ServiceModel\Channels\TransactionFlowBindingElementImporter.cs (5)
14
public const string OptionalLocal =
MetadataStrings
.WSPolicy.Attributes.Optional;
15
public const string OptionalPrefix10 =
MetadataStrings
.WSPolicy.Prefix + "1";
16
public const string OptionalPrefix11 =
MetadataStrings
.WSPolicy.Prefix;
186
string value12 = elem.GetAttribute(TransactionPolicyStrings.OptionalLocal,
MetadataStrings
.WSPolicy.NamespaceUri);
187
string value15 = elem.GetAttribute(TransactionPolicyStrings.OptionalLocal,
MetadataStrings
.WSPolicy.NamespaceUri15);
System\ServiceModel\Description\GetResponse.cs (2)
21
[MessageBodyMember(Name =
MetadataStrings
.MetadataExchangeStrings.Metadata, Namespace =
MetadataStrings
.MetadataExchangeStrings.Namespace)]
System\ServiceModel\Description\IMetadataExchange.cs (4)
12
[OperationContract(Action =
MetadataStrings
.WSTransfer.GetAction, ReplyAction =
MetadataStrings
.WSTransfer.GetResponseAction)]
15
[OperationContract(Action =
MetadataStrings
.WSTransfer.GetAction, ReplyAction =
MetadataStrings
.WSTransfer.GetResponseAction, AsyncPattern = true)]
System\ServiceModel\Description\MetadataExchangeBindings.cs (8)
161
binding.Name =
MetadataStrings
.MetadataExchangeStrings.HttpBindingName;
162
binding.Namespace =
MetadataStrings
.MetadataExchangeStrings.BindingNamespace;
170
binding.Name =
MetadataStrings
.MetadataExchangeStrings.HttpsBindingName;
171
binding.Namespace =
MetadataStrings
.MetadataExchangeStrings.BindingNamespace;
197
CustomBinding binding = new CustomBinding(
MetadataStrings
.MetadataExchangeStrings.TcpBindingName,
MetadataStrings
.MetadataExchangeStrings.BindingNamespace);
205
CustomBinding binding = new CustomBinding(
MetadataStrings
.MetadataExchangeStrings.NamedPipeBindingName,
MetadataStrings
.MetadataExchangeStrings.BindingNamespace);
System\ServiceModel\Description\MetadataExchangeClient.cs (4)
724
return reader.LocalName ==
MetadataStrings
.XmlSchema.Schema
730
return reader.LocalName ==
MetadataStrings
.MetadataExchangeStrings.Metadata
731
&& reader.NamespaceURI ==
MetadataStrings
.MetadataExchangeStrings.Namespace;
1039
return Message.CreateMessage(messageVersion,
MetadataStrings
.WSTransfer.GetAction);
System\ServiceModel\Description\MetadataLocation.cs (2)
13
[XmlRoot(ElementName =
MetadataStrings
.MetadataExchangeStrings.Location, Namespace =
MetadataStrings
.MetadataExchangeStrings.Namespace)]
System\ServiceModel\Description\MetadataReference.cs (2)
17
[XmlRoot(ElementName =
MetadataStrings
.MetadataExchangeStrings.MetadataReference, Namespace =
MetadataStrings
.MetadataExchangeStrings.Namespace)]
System\ServiceModel\Description\MetadataSection.cs (17)
17
[XmlRoot(ElementName =
MetadataStrings
.MetadataExchangeStrings.MetadataSection, Namespace =
MetadataStrings
.MetadataExchangeStrings.Namespace)]
41
static public string PolicyDialect { get { return
MetadataStrings
.WSPolicy.NamespaceUri; } }
42
static public string MetadataExchangeDialect { get { return
MetadataStrings
.MetadataExchangeStrings.Namespace; } }
65
[XmlElement(
MetadataStrings
.XmlSchema.Schema, typeof(XsdNS.XmlSchema), Namespace = XsdNS.XmlSchema.Namespace)]
69
[XmlElement(
MetadataStrings
.ServiceDescription.Definitions, typeof(WsdlNS.ServiceDescription), Namespace = WsdlNS.ServiceDescription.Namespace)]
70
[XmlElement(
MetadataStrings
.MetadataExchangeStrings.MetadataReference, typeof(MetadataReference), Namespace =
MetadataStrings
.MetadataExchangeStrings.Namespace)]
71
[XmlElement(
MetadataStrings
.MetadataExchangeStrings.Location, typeof(MetadataLocation), Namespace =
MetadataStrings
.MetadataExchangeStrings.Namespace)]
72
[XmlElement(
MetadataStrings
.MetadataExchangeStrings.Metadata, typeof(MetadataSet), Namespace =
MetadataStrings
.MetadataExchangeStrings.Namespace)]
96
SR.GetString(SR.SFxBadMetadataMustBePolicy,
MetadataStrings
.WSPolicy.NamespaceUri,
MetadataStrings
.WSPolicy.Elements.Policy, policy.NamespaceURI, policy.LocalName));
140
return (policy.NamespaceURI ==
MetadataStrings
.WSPolicy.NamespaceUri
141
|| policy.NamespaceURI ==
MetadataStrings
.WSPolicy.NamespaceUri15)
142
&& policy.LocalName ==
MetadataStrings
.WSPolicy.Elements.Policy;
System\ServiceModel\Description\MetadataSet.cs (6)
16
[XmlRoot(
MetadataStrings
.MetadataExchangeStrings.Metadata, Namespace =
MetadataStrings
.MetadataExchangeStrings.Namespace)]
36
[XmlElement(
MetadataStrings
.MetadataExchangeStrings.MetadataSection, Namespace =
MetadataStrings
.MetadataExchangeStrings.Namespace)]
280
xmlSerializerNamespaces.Add(
MetadataStrings
.MetadataExchangeStrings.Prefix,
MetadataStrings
.MetadataExchangeStrings.Namespace);
System\ServiceModel\Description\PolicyReader.cs (15)
102
string idRef = element.GetAttribute(
MetadataStrings
.WSPolicy.Attributes.URI);
105
string warningMsg = SR.GetString(SR.PolicyReferenceMissingURI,
MetadataStrings
.WSPolicy.Attributes.URI);
223
string id = element.GetAttribute(
MetadataStrings
.Wsu.Attributes.Id,
MetadataStrings
.Wsu.NamespaceUri);
227
id = element.GetAttribute(
MetadataStrings
.Xml.Attributes.Id,
MetadataStrings
.Xml.NamespaceUri);
238
return ((attribute.NamespaceURI ==
MetadataStrings
.WSPolicy.NamespaceUri
239
|| attribute.NamespaceURI ==
MetadataStrings
.WSPolicy.NamespaceUri15)
240
&& attribute.LocalName ==
MetadataStrings
.WSPolicy.Attributes.PolicyURIs);
250
if (currentElement.NamespaceURI !=
MetadataStrings
.WSPolicy.NamespaceUri
251
&& currentElement.NamespaceURI !=
MetadataStrings
.WSPolicy.NamespaceUri15)
253
else if (currentElement.LocalName ==
MetadataStrings
.WSPolicy.Elements.Policy)
255
else if (currentElement.LocalName ==
MetadataStrings
.WSPolicy.Elements.All)
257
else if (currentElement.LocalName ==
MetadataStrings
.WSPolicy.Elements.ExactlyOne)
259
else if (currentElement.LocalName ==
MetadataStrings
.WSPolicy.Elements.PolicyReference)
System\ServiceModel\Description\PolicyVersion.cs (2)
19
policyVersion12 = new PolicyVersion(
MetadataStrings
.WSPolicy.NamespaceUri);
20
policyVersion15 = new PolicyVersion(
MetadataStrings
.WSPolicy.NamespaceUri15);
System\ServiceModel\Description\ServiceMetadataExtension.cs (4)
520
internal const string ContractName =
MetadataStrings
.WSTransfer.Name;
521
internal const string ContractNamespace =
MetadataStrings
.WSTransfer.Namespace;
523
internal const string RequestAction =
MetadataStrings
.WSTransfer.GetAction;
524
internal const string ReplyAction =
MetadataStrings
.WSTransfer.GetResponseAction;
System\ServiceModel\Description\WsdlExporter.cs (63)
462
nameTable.Add(
MetadataStrings
.WSPolicy.Elements.Policy);
463
nameTable.Add(
MetadataStrings
.WSPolicy.Elements.All);
464
nameTable.Add(
MetadataStrings
.WSPolicy.Elements.ExactlyOne);
465
nameTable.Add(
MetadataStrings
.WSPolicy.Attributes.PolicyURIs);
466
nameTable.Add(
MetadataStrings
.Wsu.Attributes.Id);
467
nameTable.Add(
MetadataStrings
.Addressing200408.Policy.UsingAddressing);
468
nameTable.Add(
MetadataStrings
.Addressing10.WsdlBindingPolicy.UsingAddressing);
469
nameTable.Add(
MetadataStrings
.Addressing10.MetadataPolicy.Addressing);
470
nameTable.Add(
MetadataStrings
.Addressing10.MetadataPolicy.AnonymousResponses);
471
nameTable.Add(
MetadataStrings
.Addressing10.MetadataPolicy.NonAnonymousResponses);
580
attribute = WsdlExporter.XmlDoc.CreateAttribute(
MetadataStrings
.AddressingWsdl.Prefix,
581
MetadataStrings
.AddressingWsdl.Action,
582
MetadataStrings
.AddressingWsdl.NamespaceUri);
586
attribute = WsdlExporter.XmlDoc.CreateAttribute(
MetadataStrings
.AddressingMetadata.Prefix,
587
MetadataStrings
.AddressingMetadata.Action,
588
MetadataStrings
.AddressingMetadata.NamespaceUri);
608
xw.WriteAttributeString("xmlns",
MetadataStrings
.Addressing10.Prefix, null,
MetadataStrings
.Addressing10.NamespaceUri);
612
xw.WriteAttributeString("xmlns",
MetadataStrings
.Addressing200408.Prefix, null,
MetadataStrings
.Addressing200408.NamespaceUri);
638
addressingAssertion = XmlDoc.CreateElement(
MetadataStrings
.Addressing200408.Policy.Prefix,
639
MetadataStrings
.Addressing200408.Policy.UsingAddressing,
640
MetadataStrings
.Addressing200408.Policy.NamespaceUri);
646
addressingAssertion = XmlDoc.CreateElement(
MetadataStrings
.Addressing10.WsdlBindingPolicy.Prefix,
647
MetadataStrings
.Addressing10.WsdlBindingPolicy.UsingAddressing,
648
MetadataStrings
.Addressing10.WsdlBindingPolicy.NamespaceUri);
652
addressingAssertion = XmlDoc.CreateElement(
MetadataStrings
.Addressing10.MetadataPolicy.Prefix,
653
MetadataStrings
.Addressing10.MetadataPolicy.Addressing,
654
MetadataStrings
.Addressing10.MetadataPolicy.NamespaceUri);
672
responsesAssertionLocalName =
MetadataStrings
.Addressing10.MetadataPolicy.AnonymousResponses;
676
responsesAssertionLocalName =
MetadataStrings
.Addressing10.MetadataPolicy.NonAnonymousResponses;
679
XmlElement innerPolicyElement = XmlDoc.CreateElement(
MetadataStrings
.WSPolicy.Prefix,
680
MetadataStrings
.WSPolicy.Elements.Policy,
681
MetadataStrings
.WSPolicy.NamespaceUri15);
683
XmlElement responsesAssertion = XmlDoc.CreateElement(
MetadataStrings
.Addressing10.MetadataPolicy.Prefix,
685
MetadataStrings
.Addressing10.MetadataPolicy.NamespaceUri);
809
XmlElement policyReferenceElement = XmlDoc.CreateElement(
MetadataStrings
.WSPolicy.Prefix,
810
MetadataStrings
.WSPolicy.Elements.PolicyReference,
815
XmlAttribute uriAttribute = XmlDoc.CreateAttribute(
MetadataStrings
.WSPolicy.Attributes.URI);
828
XmlAttribute idAttribute = XmlDoc.CreateAttribute(
MetadataStrings
.Wsu.Prefix,
829
MetadataStrings
.Wsu.Attributes.Id,
830
MetadataStrings
.Wsu.NamespaceUri);
846
XmlElement policyElement = XmlDoc.CreateElement(
MetadataStrings
.WSPolicy.Prefix,
847
MetadataStrings
.WSPolicy.Elements.Policy,
851
XmlElement exactlyOneElement = XmlDoc.CreateElement(
MetadataStrings
.WSPolicy.Prefix,
852
MetadataStrings
.WSPolicy.Elements.ExactlyOne,
857
XmlElement allElement = XmlDoc.CreateElement(
MetadataStrings
.WSPolicy.Prefix,
858
MetadataStrings
.WSPolicy.Elements.All,
924
namespaces.Add(
MetadataStrings
.WSPolicy.Prefix, policyVersion.Namespace);
925
namespaces.Add(
MetadataStrings
.Wsu.Prefix,
MetadataStrings
.Wsu.NamespaceUri);
926
namespaces.Add(
MetadataStrings
.Addressing200408.Prefix,
MetadataStrings
.Addressing200408.NamespaceUri);
927
namespaces.Add(
MetadataStrings
.Addressing200408.Policy.Prefix,
MetadataStrings
.Addressing200408.Policy.NamespaceUri);
928
namespaces.Add(
MetadataStrings
.Addressing10.Prefix,
MetadataStrings
.Addressing10.NamespaceUri);
929
namespaces.Add(
MetadataStrings
.Addressing10.WsdlBindingPolicy.Prefix,
MetadataStrings
.Addressing10.WsdlBindingPolicy.NamespaceUri);
930
namespaces.Add(
MetadataStrings
.Addressing10.MetadataPolicy.Prefix,
MetadataStrings
.Addressing10.MetadataPolicy.NamespaceUri);
931
namespaces.Add(
MetadataStrings
.MetadataExchangeStrings.Prefix,
MetadataStrings
.MetadataExchangeStrings.Namespace);
System\ServiceModel\Description\WsdlHelper.cs (5)
156
IEnumerable<XmlElement> bindingPolicies = FindAllElements(wsdl.Extensions,
MetadataStrings
.WSPolicy.Elements.Policy);
160
XmlNode policyId = policyElement.Attributes.GetNamedItem(
MetadataStrings
.Wsu.Attributes.Id,
MetadataStrings
.Wsu.NamespaceUri);
194
IEnumerable<XmlElement> bindingPolicyReferences = FindAllElements(extensions,
MetadataStrings
.WSPolicy.Elements.PolicyReference);
198
XmlNode policyReference = policyReferenceElement.Attributes.GetNamedItem(
MetadataStrings
.WSPolicy.Attributes.URI);
System\ServiceModel\Description\WsdlImporter.cs (68)
1042
if ((attribute.NamespaceURI ==
MetadataStrings
.AddressingWsdl.NamespaceUri
1043
|| attribute.NamespaceURI ==
MetadataStrings
.AddressingMetadata.NamespaceUri)
1044
&& attribute.LocalName ==
MetadataStrings
.AddressingMetadata.Action)
1107
MetadataStrings
.Addressing10.WsdlBindingPolicy.UsingAddressing,
1108
MetadataStrings
.Addressing10.WsdlBindingPolicy.NamespaceUri, true /*remove*/) != null)
1113
MetadataStrings
.Addressing10.MetadataPolicy.Addressing,
1114
MetadataStrings
.Addressing10.MetadataPolicy.NamespaceUri, true /*remove*/) != null)
1119
MetadataStrings
.Addressing200408.Policy.UsingAddressing,
1120
MetadataStrings
.Addressing200408.Policy.NamespaceUri, true /*remove*/) != null)
1134
MetadataStrings
.Addressing10.MetadataPolicy.Addressing,
MetadataStrings
.Addressing10.MetadataPolicy.NamespaceUri, false);
1150
string message = SR.GetString(SR.ElementRequired,
MetadataStrings
.Addressing10.MetadataPolicy.Prefix,
1151
MetadataStrings
.Addressing10.MetadataPolicy.Addressing,
MetadataStrings
.WSPolicy.Prefix,
1152
MetadataStrings
.WSPolicy.Elements.Policy);
1163
if (element.NamespaceURI ==
MetadataStrings
.Addressing10.MetadataPolicy.NamespaceUri)
1165
if (element.LocalName ==
MetadataStrings
.Addressing10.MetadataPolicy.NonAnonymousResponses)
1169
else if (element.LocalName ==
MetadataStrings
.Addressing10.MetadataPolicy.AnonymousResponses)
1367
nameTable.Add(
MetadataStrings
.WSPolicy.Elements.Policy);
1368
nameTable.Add(
MetadataStrings
.WSPolicy.Elements.All);
1369
nameTable.Add(
MetadataStrings
.WSPolicy.Elements.ExactlyOne);
1370
nameTable.Add(
MetadataStrings
.WSPolicy.Attributes.PolicyURIs);
1371
nameTable.Add(
MetadataStrings
.Wsu.Attributes.Id);
1409
XmlAttribute attribute = XmlDoc.CreateAttribute(
MetadataStrings
.WSPolicy.Prefix,
1410
MetadataStrings
.WSPolicy.Attributes.PolicyURIs,
1411
MetadataStrings
.WSPolicy.NamespaceUri);
1442
XmlAttribute idAttribute = XmlDoc.CreateAttribute(
MetadataStrings
.Wsu.Prefix,
1443
MetadataStrings
.Wsu.Attributes.Id,
1444
MetadataStrings
.Wsu.NamespaceUri);
1457
XmlElement policyElement = XmlDoc.CreateElement(
MetadataStrings
.WSPolicy.Prefix,
1458
MetadataStrings
.WSPolicy.Elements.Policy,
1459
MetadataStrings
.WSPolicy.NamespaceUri);
1462
XmlElement exactlyOneElement = XmlDoc.CreateElement(
MetadataStrings
.WSPolicy.Prefix,
1463
MetadataStrings
.WSPolicy.Elements.ExactlyOne,
1464
MetadataStrings
.WSPolicy.NamespaceUri);
1468
XmlElement allElement = XmlDoc.CreateElement(
MetadataStrings
.WSPolicy.Prefix,
1469
MetadataStrings
.WSPolicy.Elements.All,
1470
MetadataStrings
.WSPolicy.NamespaceUri);
2084
embeddedPolicies.AddRange(item.Extensions.FindAll(
MetadataStrings
.WSPolicy.Elements.Policy,
2085
MetadataStrings
.WSPolicy.NamespaceUri));
2086
embeddedPolicies.AddRange(item.Extensions.FindAll(
MetadataStrings
.WSPolicy.Elements.Policy,
2087
MetadataStrings
.WSPolicy.NamespaceUri15));
2128
policyReferences.AddRange(item.Extensions.FindAll(
MetadataStrings
.WSPolicy.Elements.PolicyReference,
2129
MetadataStrings
.WSPolicy.NamespaceUri));
2130
policyReferences.AddRange(item.Extensions.FindAll(
MetadataStrings
.WSPolicy.Elements.PolicyReference,
2131
MetadataStrings
.WSPolicy.NamespaceUri15));
2135
string idRef = element.GetAttribute(
MetadataStrings
.WSPolicy.Attributes.URI);
2139
string warningMsg = SR.GetString(SR.PolicyReferenceMissingURI,
MetadataStrings
.WSPolicy.Attributes.URI);
2181
if (item.Extensions.Find(
MetadataStrings
.WSPolicy.Elements.PolicyReference,
MetadataStrings
.WSPolicy.NamespaceUri) != null
2182
|| item.Extensions.Find(
MetadataStrings
.WSPolicy.Elements.PolicyReference,
MetadataStrings
.WSPolicy.NamespaceUri15) != null)
2187
if (item.Extensions.Find(
MetadataStrings
.WSPolicy.Elements.Policy,
MetadataStrings
.WSPolicy.NamespaceUri) != null
2188
|| item.Extensions.Find(
MetadataStrings
.WSPolicy.Elements.Policy,
MetadataStrings
.WSPolicy.NamespaceUri15) != null)
2365
if (policyDocument.Value.NamespaceURI !=
MetadataStrings
.WSPolicy.NamespaceUri
2366
&& policyDocument.Value.NamespaceURI !=
MetadataStrings
.WSPolicy.NamespaceUri15)
2446
static readonly string wspPolicy = string.Format(CultureInfo.InvariantCulture, "{0}:{1}",
MetadataStrings
.WSPolicy.Prefix,
MetadataStrings
.WSPolicy.Elements.Policy);
2447
static readonly string xmlId = string.Format(CultureInfo.InvariantCulture, "{0}:{1}",
MetadataStrings
.Xml.Prefix,
MetadataStrings
.Xml.Attributes.Id);
2448
static readonly string wsuId = string.Format(CultureInfo.InvariantCulture, "{0}:{1}",
MetadataStrings
.Wsu.Prefix,
MetadataStrings
.Wsu.Attributes.Id);
2470
if (element.HasAttribute(
MetadataStrings
.Wsu.Attributes.Id,
MetadataStrings
.Wsu.NamespaceUri))
2474
else if (element.HasAttribute(
MetadataStrings
.Xml.Attributes.Id,
MetadataStrings
.Xml.NamespaceUri))
System\ServiceModel\EndpointAddress.cs (2)
856
if (reader.IsStartElement(System.ServiceModel.Description.
MetadataStrings
.MetadataExchangeStrings.Metadata,
857
System.ServiceModel.Description.
MetadataStrings
.MetadataExchangeStrings.Namespace))
System\ServiceModel\Security\Namespaces.cs (2)
11
internal const string WSPolicy = System.ServiceModel.Description.
MetadataStrings
.WSPolicy.NamespaceUri;
12
internal const string WSPolicyPrefix = System.ServiceModel.Description.
MetadataStrings
.WSPolicy.Prefix;
System\ServiceModel\Security\WSSecurityPolicy.cs (6)
23
public const string WspNamespace =
MetadataStrings
.WSPolicy.NamespaceUri; //@"http://schemas.xmlsoap.org/ws/2004/09/policy";
24
public const string Wsp15Namespace =
MetadataStrings
.WSPolicy.NamespaceUri15;
25
public const string WspPrefix =
MetadataStrings
.WSPolicy.Prefix; //"wsp";
28
public const string PolicyName =
MetadataStrings
.WSPolicy.Elements.Policy; //"Policy";
2336
if (metadataReader.LocalName ==
MetadataStrings
.MetadataExchangeStrings.Metadata
2337
&& metadataReader.NamespaceURI ==
MetadataStrings
.MetadataExchangeStrings.Namespace)