101 references to WSPolicy
System.ServiceModel (101)
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\MetadataSection.cs (6)
41
static public string PolicyDialect { get { return MetadataStrings.
WSPolicy
.NamespaceUri; } }
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\PolicyReader.cs (11)
102
string idRef = element.GetAttribute(MetadataStrings.
WSPolicy
.Attributes.URI);
105
string warningMsg = SR.GetString(SR.PolicyReferenceMissingURI, MetadataStrings.
WSPolicy
.Attributes.URI);
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\WsdlExporter.cs (17)
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);
679
XmlElement innerPolicyElement = XmlDoc.CreateElement(MetadataStrings.
WSPolicy
.Prefix,
680
MetadataStrings.
WSPolicy
.Elements.Policy,
681
MetadataStrings.
WSPolicy
.NamespaceUri15);
809
XmlElement policyReferenceElement = XmlDoc.CreateElement(MetadataStrings.
WSPolicy
.Prefix,
810
MetadataStrings.
WSPolicy
.Elements.PolicyReference,
815
XmlAttribute uriAttribute = XmlDoc.CreateAttribute(MetadataStrings.
WSPolicy
.Attributes.URI);
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);
System\ServiceModel\Description\WsdlHelper.cs (3)
156
IEnumerable<XmlElement> bindingPolicies = FindAllElements(wsdl.Extensions, MetadataStrings.
WSPolicy
.Elements.Policy);
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 (40)
1151
MetadataStrings.Addressing10.MetadataPolicy.Addressing, MetadataStrings.
WSPolicy
.Prefix,
1152
MetadataStrings.
WSPolicy
.Elements.Policy);
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);
1409
XmlAttribute attribute = XmlDoc.CreateAttribute(MetadataStrings.
WSPolicy
.Prefix,
1410
MetadataStrings.
WSPolicy
.Attributes.PolicyURIs,
1411
MetadataStrings.
WSPolicy
.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);
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 (4)
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";