96 references to WSPolicy
dotnet-svcutil-lib (96)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElement.cs (2)
338
string policy = MetadataStrings.
WSPolicy
.Elements.Policy;
340
string policyPrefix = MetadataStrings.
WSPolicy
.Prefix;
FrameworkFork\System.ServiceModel\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);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElementImporter.cs (5)
15
public const string OptionalLocal = MetadataStrings.
WSPolicy
.Attributes.Optional;
16
public const string OptionalPrefix10 = MetadataStrings.
WSPolicy
.Prefix + "1";
17
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);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSection.cs (6)
41
static public string PolicyDialect { get { return MetadataStrings.
WSPolicy
.NamespaceUri; } }
96
string.Format(SRServiceModel.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;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyReader.cs (11)
103
string idRef = element.GetAttribute(MetadataStrings.
WSPolicy
.Attributes.URI);
106
string warningMsg = string.Format(SRServiceModel.PolicyReferenceMissingURI, MetadataStrings.
WSPolicy
.Attributes.URI);
236
return ((attribute.NamespaceURI == MetadataStrings.
WSPolicy
.NamespaceUri
237
|| attribute.NamespaceURI == MetadataStrings.
WSPolicy
.NamespaceUri15)
238
&& attribute.LocalName == MetadataStrings.
WSPolicy
.Attributes.PolicyURIs);
248
if (currentElement.NamespaceURI != MetadataStrings.
WSPolicy
.NamespaceUri
249
&& currentElement.NamespaceURI != MetadataStrings.
WSPolicy
.NamespaceUri15)
251
else if (currentElement.LocalName == MetadataStrings.
WSPolicy
.Elements.Policy)
253
else if (currentElement.LocalName == MetadataStrings.
WSPolicy
.Elements.All)
255
else if (currentElement.LocalName == MetadataStrings.
WSPolicy
.Elements.ExactlyOne)
257
else if (currentElement.LocalName == MetadataStrings.
WSPolicy
.Elements.PolicyReference)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyVersion.cs (2)
16
s_policyVersion12 = new PolicyVersion(MetadataStrings.
WSPolicy
.NamespaceUri);
17
s_policyVersion15 = new PolicyVersion(MetadataStrings.
WSPolicy
.NamespaceUri15);
FrameworkFork\System.ServiceModel\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,
923
namespaces.Add(MetadataStrings.
WSPolicy
.Prefix, _policyVersion.Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (40)
1145
MetadataStrings.Addressing10.MetadataPolicy.Addressing, MetadataStrings.
WSPolicy
.Prefix,
1146
MetadataStrings.
WSPolicy
.Elements.Policy);
1361
nameTable.Add(MetadataStrings.
WSPolicy
.Elements.Policy);
1362
nameTable.Add(MetadataStrings.
WSPolicy
.Elements.All);
1363
nameTable.Add(MetadataStrings.
WSPolicy
.Elements.ExactlyOne);
1364
nameTable.Add(MetadataStrings.
WSPolicy
.Attributes.PolicyURIs);
1401
XmlAttribute attribute = XmlDoc.CreateAttribute(MetadataStrings.
WSPolicy
.Prefix,
1402
MetadataStrings.
WSPolicy
.Attributes.PolicyURIs,
1403
MetadataStrings.
WSPolicy
.NamespaceUri);
1445
XmlElement policyElement = XmlDoc.CreateElement(MetadataStrings.
WSPolicy
.Prefix,
1446
MetadataStrings.
WSPolicy
.Elements.Policy,
1447
MetadataStrings.
WSPolicy
.NamespaceUri);
1450
XmlElement exactlyOneElement = XmlDoc.CreateElement(MetadataStrings.
WSPolicy
.Prefix,
1451
MetadataStrings.
WSPolicy
.Elements.ExactlyOne,
1452
MetadataStrings.
WSPolicy
.NamespaceUri);
1456
XmlElement allElement = XmlDoc.CreateElement(MetadataStrings.
WSPolicy
.Prefix,
1457
MetadataStrings.
WSPolicy
.Elements.All,
1458
MetadataStrings.
WSPolicy
.NamespaceUri);
2072
embeddedPolicies.AddRange(item.Extensions.FindAll(MetadataStrings.
WSPolicy
.Elements.Policy,
2073
MetadataStrings.
WSPolicy
.NamespaceUri));
2074
embeddedPolicies.AddRange(item.Extensions.FindAll(MetadataStrings.
WSPolicy
.Elements.Policy,
2075
MetadataStrings.
WSPolicy
.NamespaceUri15));
2116
policyReferences.AddRange(item.Extensions.FindAll(MetadataStrings.
WSPolicy
.Elements.PolicyReference,
2117
MetadataStrings.
WSPolicy
.NamespaceUri));
2118
policyReferences.AddRange(item.Extensions.FindAll(MetadataStrings.
WSPolicy
.Elements.PolicyReference,
2119
MetadataStrings.
WSPolicy
.NamespaceUri15));
2123
string idRef = element.GetAttribute(MetadataStrings.
WSPolicy
.Attributes.URI);
2127
string warningMsg = string.Format(SRServiceModel.PolicyReferenceMissingURI, MetadataStrings.
WSPolicy
.Attributes.URI);
2168
if (item.Extensions.Find(MetadataStrings.
WSPolicy
.Elements.PolicyReference, MetadataStrings.
WSPolicy
.NamespaceUri) != null
2169
|| item.Extensions.Find(MetadataStrings.
WSPolicy
.Elements.PolicyReference, MetadataStrings.
WSPolicy
.NamespaceUri15) != null)
2174
if (item.Extensions.Find(MetadataStrings.
WSPolicy
.Elements.Policy, MetadataStrings.
WSPolicy
.NamespaceUri) != null
2175
|| item.Extensions.Find(MetadataStrings.
WSPolicy
.Elements.Policy, MetadataStrings.
WSPolicy
.NamespaceUri15) != null)
2351
if (policyDocument.Value.NamespaceURI != MetadataStrings.
WSPolicy
.NamespaceUri
2352
&& policyDocument.Value.NamespaceURI != MetadataStrings.
WSPolicy
.NamespaceUri15)
2432
private static readonly string s_wspPolicy = string.Format(CultureInfo.InvariantCulture, "{0}:{1}", MetadataStrings.
WSPolicy
.Prefix, MetadataStrings.
WSPolicy
.Elements.Policy);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Namespaces.cs (2)
9
internal const string WSPolicy = System.ServiceModel.Description.MetadataStrings.
WSPolicy
.NamespaceUri;
10
internal const string WSPolicyPrefix = System.ServiceModel.Description.MetadataStrings.
WSPolicy
.Prefix;
FrameworkFork\System.ServiceModel\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";