2
0

BinaryMessageEncodingBindingElementTest.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. //
  2. // BinaryMessageEncodingBindingElementTest.cs
  3. //
  4. // Author:
  5. // Atsushi Enomoto <[email protected]>
  6. //
  7. // Copyright (C) 2009 Novell, Inc. http://www.novell.com
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. using System;
  29. using System.Collections.ObjectModel;
  30. using System.IO;
  31. using System.ServiceModel;
  32. using System.ServiceModel.Channels;
  33. using System.ServiceModel.Description;
  34. using System.Text;
  35. using System.Xml;
  36. using NUnit.Framework;
  37. using Element = System.ServiceModel.Channels.BinaryMessageEncodingBindingElement;
  38. namespace MonoTests.System.ServiceModel.Channels
  39. {
  40. [TestFixture]
  41. public class BinaryMessageEncodingBindingElementTest
  42. {
  43. [Test]
  44. public void DefaultValues ()
  45. {
  46. Element el = new Element ();
  47. Assert.AreEqual (64, el.MaxReadPoolSize, "#1");
  48. Assert.AreEqual (16, el.MaxWritePoolSize, "#2");
  49. Assert.AreEqual (MessageVersion.Default, el.MessageVersion, "#3");
  50. // FIXME: test ReaderQuotas
  51. }
  52. [Test]
  53. [ExpectedException (typeof (ArgumentNullException))]
  54. public void BuildChannelListenerNullArg ()
  55. {
  56. new Element ().BuildChannelListener<IReplyChannel> (null);
  57. }
  58. [Test]
  59. public void CanBuildChannelFactory ()
  60. {
  61. CustomBinding cb = new CustomBinding (
  62. new HttpTransportBindingElement ());
  63. BindingContext ctx = new BindingContext (
  64. cb, new BindingParameterCollection ());
  65. Element el = new Element ();
  66. Assert.IsTrue (el.CanBuildChannelFactory<IRequestChannel> (ctx), "#1");
  67. Assert.IsFalse (el.CanBuildChannelFactory<IRequestSessionChannel> (ctx), "#2");
  68. }
  69. [Test]
  70. public void BuildChannelFactory ()
  71. {
  72. CustomBinding cb = new CustomBinding (
  73. new HttpTransportBindingElement ());
  74. BindingContext ctx = new BindingContext (
  75. cb, new BindingParameterCollection ());
  76. Element el = new Element ();
  77. IChannelFactory<IRequestChannel> cf =
  78. el.BuildChannelFactory<IRequestChannel> (ctx);
  79. }
  80. [Test]
  81. [ExpectedException (typeof (InvalidOperationException))]
  82. public void BuildChannelListenerEmptyCustomBinding ()
  83. {
  84. CustomBinding cb = new CustomBinding ();
  85. BindingContext ctx = new BindingContext (
  86. cb, new BindingParameterCollection ());
  87. new Element ().BuildChannelListener<IReplyChannel> (ctx);
  88. }
  89. [Test]
  90. public void BuildChannelListenerWithTransport ()
  91. {
  92. CustomBinding cb = new CustomBinding (
  93. new HttpTransportBindingElement ());
  94. BindingContext ctx = new BindingContext (
  95. cb, new BindingParameterCollection (),
  96. new Uri ("http://localhost:8080"), String.Empty, ListenUriMode.Unique);
  97. new Element ().BuildChannelListener<IReplyChannel> (ctx);
  98. }
  99. [Test]
  100. [ExpectedException (typeof (ProtocolException))]
  101. public void ReadMessageWrongContentType ()
  102. {
  103. var encoder = new BinaryMessageEncodingBindingElement ().CreateMessageEncoderFactory ().Encoder;
  104. encoder.ReadMessage (new MemoryStream (new byte [0]), 100, "application/octet-stream");
  105. }
  106. [Test]
  107. public void ReadMessage ()
  108. {
  109. using (var ms = File.OpenRead ("Test/System.ServiceModel.Channels/binary-message.raw")) {
  110. var session = new XmlBinaryReaderSession ();
  111. byte [] rsbuf = new BinaryFrameSupportReader (ms).ReadSizedChunk ();
  112. int count = 0;
  113. using (var rms = new MemoryStream (rsbuf, 0, rsbuf.Length)) {
  114. var rbr = new BinaryReader (rms, Encoding.UTF8);
  115. while (rms.Position < rms.Length)
  116. session.Add (count++, rbr.ReadString ());
  117. }
  118. var xr = XmlDictionaryReader.CreateBinaryReader (ms, BinaryFrameSupportReader.soap_dictionary, new XmlDictionaryReaderQuotas (), session);
  119. string soapNS = "http://www.w3.org/2003/05/soap-envelope";
  120. string addrNS = "http://www.w3.org/2005/08/addressing";
  121. string xmlnsNS = "http://www.w3.org/2000/xmlns/";
  122. string peerNS = "http://schemas.microsoft.com/net/2006/05/peer";
  123. xr.MoveToContent ();
  124. AssertNode (xr, 0, XmlNodeType.Element, "s", "Envelope", soapNS, String.Empty, "#1");
  125. Assert.AreEqual (2, xr.AttributeCount, "#1-1-1");
  126. Assert.IsTrue (xr.MoveToAttribute ("s", xmlnsNS), "#1-2");
  127. AssertNode (xr, 1, XmlNodeType.Attribute, "xmlns", "s", xmlnsNS, soapNS, "#2");
  128. Assert.IsTrue (xr.MoveToAttribute ("a", xmlnsNS), "#2-2");
  129. AssertNode (xr, 1, XmlNodeType.Attribute, "xmlns", "a", xmlnsNS, addrNS, "#3");
  130. Assert.IsTrue (xr.Read (), "#3-2");
  131. AssertNode (xr, 1, XmlNodeType.Element, "s", "Header", soapNS, String.Empty, "#4");
  132. Assert.IsTrue (xr.Read (), "#4-2");
  133. AssertNode (xr, 2, XmlNodeType.Element, "a", "Action", addrNS, String.Empty, "#5");
  134. Assert.IsTrue (xr.MoveToAttribute ("mustUnderstand", soapNS), "#5-2");
  135. AssertNode (xr, 3, XmlNodeType.Attribute, "s", "mustUnderstand", soapNS, "1", "#6");
  136. Assert.IsTrue (xr.Read (), "#6-2");
  137. AssertNode (xr, 3, XmlNodeType.Text, "", "", "", "http://schemas.microsoft.com/net/2006/05/peer/resolver/Resolve", "#7");
  138. Assert.IsTrue (xr.Read (), "#7-2");
  139. AssertNode (xr, 2, XmlNodeType.EndElement, "a", "Action", addrNS, String.Empty, "#8");
  140. Assert.IsTrue (xr.Read (), "#8-2");
  141. AssertNode (xr, 2, XmlNodeType.Element, "a", "MessageID", addrNS, String.Empty, "#9");
  142. Assert.IsTrue (xr.Read (), "#9-2");
  143. Assert.AreEqual (XmlNodeType.Text, xr.NodeType, "#10");
  144. Assert.IsTrue (xr.Read (), "#10-2");
  145. AssertNode (xr, 2, XmlNodeType.EndElement, "a", "MessageID", addrNS, String.Empty, "#11");
  146. Assert.IsTrue (xr.Read (), "#11-2"); // -> a:ReplyTo
  147. AssertNode (xr, 2, XmlNodeType.Element, "a", "ReplyTo", addrNS, String.Empty, "#12");
  148. xr.Skip (); // -> a:To
  149. AssertNode (xr, 2, XmlNodeType.Element, "a", "To", addrNS, String.Empty, "#13");
  150. xr.Skip (); // -> /s:Header
  151. AssertNode (xr, 1, XmlNodeType.EndElement, "s", "Header", soapNS, String.Empty, "#14");
  152. Assert.IsTrue (xr.Read (), "#14-2");
  153. AssertNode (xr, 1, XmlNodeType.Element, "s", "Body", soapNS, String.Empty, "#15");
  154. Assert.IsTrue (xr.Read (), "#15-2");
  155. AssertNode (xr, 2, XmlNodeType.Element, "", "Resolve", peerNS, String.Empty, "#16");
  156. Assert.IsTrue (xr.MoveToAttribute ("xmlns"), "#16-2");
  157. AssertNode (xr, 3, XmlNodeType.Attribute, "", "xmlns", xmlnsNS, peerNS, "#17");
  158. Assert.IsTrue (xr.Read (), "#17-2");
  159. AssertNode (xr, 3, XmlNodeType.Element, "", "ClientId", peerNS, String.Empty, "#18");
  160. /*
  161. while (!xr.EOF) {
  162. xr.Read ();
  163. Console.WriteLine ("{0}: {1}:{2} {3} {4}", xr.NodeType, xr.Prefix, xr.LocalName, xr.NamespaceURI, xr.Value);
  164. for (int i = 0; i < xr.AttributeCount; i++) {
  165. xr.MoveToAttribute (i);
  166. Console.WriteLine (" Attribute: {0}:{1} {2} {3}", xr.Prefix, xr.LocalName, xr.NamespaceURI, xr.Value);
  167. }
  168. }
  169. */
  170. }
  171. }
  172. void AssertNode (XmlReader reader, int depth, XmlNodeType nodeType, string prefix, string localName, string ns, string value, string label)
  173. {
  174. Assert.AreEqual (nodeType, reader.NodeType, label + ".NodeType");
  175. Assert.AreEqual (localName, reader.LocalName, label + ".LocalName");
  176. Assert.AreEqual (prefix, reader.Prefix, label + ".Prefix");
  177. Assert.AreEqual (ns, reader.NamespaceURI, label + ".NS");
  178. Assert.AreEqual (value, reader.Value, label + ".Value");
  179. Assert.AreEqual (depth, reader.Depth, label + ".Depth");
  180. }
  181. }
  182. class BinaryFrameSupportReader : BinaryReader
  183. {
  184. public BinaryFrameSupportReader (Stream s)
  185. : base (s)
  186. {
  187. }
  188. public byte [] ReadSizedChunk ()
  189. {
  190. int length = Read7BitEncodedInt ();
  191. if (length > 65536)
  192. throw new InvalidOperationException ("The message is too large.");
  193. byte [] buffer = new byte [length];
  194. Read (buffer, 0, length);
  195. return buffer;
  196. }
  197. // Copied from BinaryMessageEncoder.cs.
  198. internal static XmlDictionary soap_dictionary;
  199. // See [MC-NBFS] in Microsoft OSP. The strings are copied from the PDF, so the actual values might be wrong.
  200. static readonly string [] dict_strings = {
  201. "mustUnderstand", "Envelope",
  202. "http://www.w3.org/2003/05/soap-envelope",
  203. "http://www.w3.org/2005/08/addressing", "Header", "Action", "To", "Body", "Algorithm", "RelatesTo",
  204. "http://www.w3.org/2005/08/addressing/anonymous", "URI", "Reference", "MessageID", "Id", "Identifier",
  205. "http://schemas.xmlsoap.org/ws/2005/02/rm", "Transforms", "Transform", "DigestMethod", "DigestValue", "Address", "ReplyTo", "SequenceAcknowledgement", "AcknowledgementRange", "Upper", "Lower", "BufferRemaining",
  206. "http://schemas.microsoft.com/ws/2006/05/rm",
  207. "http://schemas.xmlsoap.org/ws/2005/02/rm/SequenceAcknowledgement", "SecurityTokenReference", "Sequence", "MessageNumber",
  208. "http://www.w3.org/2000/09/xmldsig#",
  209. "http://www.w3.org/2000/09/xmldsig#enveloped-signature", "KeyInfo",
  210. "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd",
  211. "http://www.w3.org/2001/04/xmlenc#",
  212. "http://schemas.xmlsoap.org/ws/2005/02/sc", "DerivedKeyToken", "Nonce", "Signature", "SignedInfo", "CanonicalizationMethod", "SignatureMethod", "SignatureValue", "DataReference", "EncryptedData", "EncryptionMethod", "CipherData", "CipherValue",
  213. "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", "Security", "Timestamp", "Created", "Expires", "Length", "ReferenceList", "ValueType", "Type", "EncryptedHeader",
  214. "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd", "RequestSecurityTokenResponseCollection",
  215. "http://schemas.xmlsoap.org/ws/2005/02/trust",
  216. "http://schemas.xmlsoap.org/ws/2005/02/trust#BinarySecret",
  217. "http://schemas.microsoft.com/ws/2006/02/transactions", "s", "Fault", "MustUnderstand", "role", "relay", "Code", "Reason", "Text", "Node", "Role", "Detail", "Value", "Subcode", "NotUnderstood", "qname", "", "From", "FaultTo", "EndpointReference", "PortType", "ServiceName", "PortName", "ReferenceProperties", "RelationshipType", "Reply", "a",
  218. "http://schemas.xmlsoap.org/ws/2006/02/addressingidentity", "Identity", "Spn", "Upn", "Rsa", "Dns", "X509v3Certificate",
  219. "http://www.w3.org/2005/08/addressing/fault", "ReferenceParameters", "IsReferenceParameter",
  220. "http://www.w3.org/2005/08/addressing/reply",
  221. "http://www.w3.org/2005/08/addressing/none", "Metadata",
  222. "http://schemas.xmlsoap.org/ws/2004/08/addressing",
  223. "http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous",
  224. "http://schemas.xmlsoap.org/ws/2004/08/addressing/fault",
  225. "http://schemas.xmlsoap.org/ws/2004/06/addressingex", "RedirectTo", "Via",
  226. "http://www.w3.org/2001/10/xml-exc-c14n#", "PrefixList", "InclusiveNamespaces", "ec", "SecurityContextToken", "Generation", "Label", "Offset", "Properties", "Cookie", "wsc",
  227. "http://schemas.xmlsoap.org/ws/2004/04/sc",
  228. "http://schemas.xmlsoap.org/ws/2004/04/security/sc/dk",
  229. "http://schemas.xmlsoap.org/ws/2004/04/security/sc/sct",
  230. "http://schemas.xmlsoap.org/ws/2004/04/security/trust/RST/SCT",
  231. "http://schemas.xmlsoap.org/ws/2004/04/security/trust/RSTR/SCT", "RenewNeeded", "BadContextToken", "c",
  232. "http://schemas.xmlsoap.org/ws/2005/02/sc/dk",
  233. "http://schemas.xmlsoap.org/ws/2005/02/sc/sct",
  234. "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT",
  235. "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/SCT",
  236. "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT/Renew",
  237. "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/SCT/Renew",
  238. "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT/Cancel",
  239. "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/SCT/Cancel",
  240. "http://www.w3.org/2001/04/xmlenc#aes128-cbc",
  241. "http://www.w3.org/2001/04/xmlenc#kw-aes128",
  242. "http://www.w3.org/2001/04/xmlenc#aes192-cbc",
  243. "http://www.w3.org/2001/04/xmlenc#kw-aes192",
  244. "http://www.w3.org/2001/04/xmlenc#aes256-cbc",
  245. "http://www.w3.org/2001/04/xmlenc#kw-aes256",
  246. "http://www.w3.org/2001/04/xmlenc#des-cbc",
  247. "http://www.w3.org/2000/09/xmldsig#dsa-sha1",
  248. "http://www.w3.org/2001/10/xml-exc-c14n#WithComments",
  249. "http://www.w3.org/2000/09/xmldsig#hmac-sha1",
  250. "http://www.w3.org/2001/04/xmldsig-more#hmac-sha256",
  251. "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1",
  252. "http://www.w3.org/2001/04/xmlenc#ripemd160",
  253. "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p",
  254. "http://www.w3.org/2000/09/xmldsig#rsa-sha1",
  255. "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",
  256. "http://www.w3.org/2001/04/xmlenc#rsa-1_5",
  257. "http://www.w3.org/2000/09/xmldsig#sha1",
  258. "http://www.w3.org/2001/04/xmlenc#sha256",
  259. "http://www.w3.org/2001/04/xmlenc#sha512",
  260. "http://www.w3.org/2001/04/xmlenc#tripledes-cbc",
  261. "http://www.w3.org/2001/04/xmlenc#kw-tripledes",
  262. "http://schemas.xmlsoap.org/2005/02/trust/tlsnego#TLS_Wrap",
  263. "http://schemas.xmlsoap.org/2005/02/trust/spnego#GSS_Wrap",
  264. "http://schemas.microsoft.com/ws/2006/05/security", "dnse", "o", "Password", "PasswordText", "Username", "UsernameToken", "BinarySecurityToken", "EncodingType", "KeyIdentifier",
  265. "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary",
  266. "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#HexBinary",
  267. "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Text",
  268. "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier",
  269. "http://docs.oasis-open.org/wss/oasis-wss-kerberos-token-profile-1.1#GSS_Kerberosv5_AP_REQ",
  270. "http://docs.oasis-open.org/wss/oasis-wss-kerberos-token-profile-1.1#GSS_Kerberosv5_AP_REQ1510",
  271. "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID", "Assertion", "urn:oasis:names:tc:SAML:1.0:assertion",
  272. "http://docs.oasis-open.org/wss/oasis-wss-rel-token-profile-1.0.pdf#license", "FailedAuthentication", "InvalidSecurityToken", "InvalidSecurity", "k", "SignatureConfirmation", "TokenType",
  273. "http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#ThumbprintSHA1",
  274. "http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey",
  275. "http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKeySHA1",
  276. "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1",
  277. "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0",
  278. "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLID", "AUTH-HASH", "RequestSecurityTokenResponse", "KeySize", "RequestedTokenReference", "AppliesTo", "Authenticator", "CombinedHash", "BinaryExchange", "Lifetime", "RequestedSecurityToken", "Entropy", "RequestedProofToken", "ComputedKey", "RequestSecurityToken", "RequestType", "Context", "BinarySecret",
  279. "http://schemas.xmlsoap.org/ws/2005/02/trust/spnego",
  280. "http://schemas.xmlsoap.org/ws/2005/02/trust/tlsnego", "wst",
  281. "http://schemas.xmlsoap.org/ws/2004/04/trust",
  282. "http://schemas.xmlsoap.org/ws/2004/04/security/trust/RST/Issue",
  283. "http://schemas.xmlsoap.org/ws/2004/04/security/trust/RSTR/Issue",
  284. "http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue",
  285. "http://schemas.xmlsoap.org/ws/2004/04/security/trust/CK/PSHA1",
  286. "http://schemas.xmlsoap.org/ws/2004/04/security/trust/SymmetricKey",
  287. "http://schemas.xmlsoap.org/ws/2004/04/security/trust/Nonce", "KeyType",
  288. "http://schemas.xmlsoap.org/ws/2004/04/trust/SymmetricKey",
  289. "http://schemas.xmlsoap.org/ws/2004/04/trust/PublicKey", "Claims", "InvalidRequest", "RequestFailed", "SignWith", "EncryptWith", "EncryptionAlgorithm", "CanonicalizationAlgorithm", "ComputedKeyAlgorithm", "UseKey",
  290. "http://schemas.microsoft.com/net/2004/07/secext/WS-SPNego",
  291. "http://schemas.microsoft.com/net/2004/07/secext/TLSNego", "t",
  292. "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue",
  293. "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue",
  294. "http://schemas.xmlsoap.org/ws/2005/02/trust/Issue",
  295. "http://schemas.xmlsoap.org/ws/2005/02/trust/SymmetricKey",
  296. "http://schemas.xmlsoap.org/ws/2005/02/trust/CK/PSHA1",
  297. "http://schemas.xmlsoap.org/ws/2005/02/trust/Nonce", "RenewTarget", "CancelTarget", "RequestedTokenCancelled", "RequestedAttachedReference", "RequestedUnattachedReference", "IssuedTokens",
  298. "http://schemas.xmlsoap.org/ws/2005/02/trust/Renew",
  299. "http://schemas.xmlsoap.org/ws/2005/02/trust/Cancel",
  300. "http://schemas.xmlsoap.org/ws/2005/02/trust/PublicKey", "Access", "AccessDecision", "Advice", "AssertionID", "AssertionIDReference", "Attribute", "AttributeName", "AttributeNamespace", "AttributeStatement", "AttributeValue", "Audience", "AudienceRestrictionCondition", "AuthenticationInstant", "AuthenticationMethod", "AuthenticationStatement", "AuthorityBinding", "AuthorityKind", "AuthorizationDecisionStatement", "Binding", "Condition", "Conditions", "Decision", "DoNotCacheCondition", "Evidence", "IssueInstant", "Issuer", "Location", "MajorVersion", "MinorVersion", "NameIdentifier", "Format", "NameQualifier", "Namespace", "NotBefore", "NotOnOrAfter", "saml", "Statement", "Subject", "SubjectConfirmation", "SubjectConfirmationData", "ConfirmationMethod", "urn:oasis:names:tc:SAML:1.0:cm:holder-of-key", "urn:oasis:names:tc:SAML:1.0:cm:sender-vouches", "SubjectLocality", "DNSAddress", "IPAddress", "SubjectStatement", "urn:oasis:names:tc:SAML:1.0:am:unspecified", "xmlns", "Resource", "UserName", "urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName", "EmailName", "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress", "u", "ChannelInstance",
  301. "http://schemas.microsoft.com/ws/2005/02/duplex", "Encoding", "MimeType", "CarriedKeyName", "Recipient", "EncryptedKey", "KeyReference", "e",
  302. "http://www.w3.org/2001/04/xmlenc#Element",
  303. "http://www.w3.org/2001/04/xmlenc#Content", "KeyName", "MgmtData", "KeyValue", "RSAKeyValue", "Modulus", "Exponent", "X509Data", "X509IssuerSerial", "X509IssuerName", "X509SerialNumber", "X509Certificate", "AckRequested",
  304. "http://schemas.xmlsoap.org/ws/2005/02/rm/AckRequested", "AcksTo", "Accept", "CreateSequence",
  305. "http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence", "CreateSequenceRefused", "CreateSequenceResponse",
  306. "http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse", "FaultCode", "InvalidAcknowledgement", "LastMessage",
  307. "http://schemas.xmlsoap.org/ws/2005/02/rm/LastMessage", "LastMessageNumberExceeded", "MessageNumberRollover", "Nack", "netrm", "Offer", "r", "SequenceFault", "SequenceTerminated", "TerminateSequence",
  308. "http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence", "UnknownSequence",
  309. "http://schemas.microsoft.com/ws/2006/02/tx/oletx", "oletx", "OleTxTransaction", "PropagationToken",
  310. "http://schemas.xmlsoap.org/ws/2004/10/wscoor", "wscoor", "CreateCoordinationContext", "CreateCoordinationContextResponse", "CoordinationContext", "CurrentContext", "CoordinationType", "RegistrationService", "Register", "RegisterResponse", "ProtocolIdentifier", "CoordinatorProtocolService", "ParticipantProtocolService",
  311. "http://schemas.xmlsoap.org/ws/2004/10/wscoor/CreateCoordinationContext",
  312. "http://schemas.xmlsoap.org/ws/2004/10/wscoor/CreateCoordinationContextResponse",
  313. "http://schemas.xmlsoap.org/ws/2004/10/wscoor/Register",
  314. "http://schemas.xmlsoap.org/ws/2004/10/wscoor/RegisterResponse",
  315. "http://schemas.xmlsoap.org/ws/2004/10/wscoor/fault", "ActivationCoordinatorPortType", "RegistrationCoordinatorPortType", "InvalidState", "InvalidProtocol", "InvalidParameters", "NoActivity", "ContextRefused", "AlreadyRegistered",
  316. "http://schemas.xmlsoap.org/ws/2004/10/wsat", "wsat",
  317. "http://schemas.xmlsoap.org/ws/2004/10/wsat/Completion",
  318. "http://schemas.xmlsoap.org/ws/2004/10/wsat/Durable2PC",
  319. "http://schemas.xmlsoap.org/ws/2004/10/wsat/Volatile2PC", "Prepare", "Prepared", "ReadOnly", "Commit", "Rollback", "Committed", "Aborted", "Replay",
  320. "http://schemas.xmlsoap.org/ws/2004/10/wsat/Commit",
  321. "http://schemas.xmlsoap.org/ws/2004/10/wsat/Rollback",
  322. "http://schemas.xmlsoap.org/ws/2004/10/wsat/Committed",
  323. "http://schemas.xmlsoap.org/ws/2004/10/wsat/Aborted",
  324. "http://schemas.xmlsoap.org/ws/2004/10/wsat/Prepare",
  325. "http://schemas.xmlsoap.org/ws/2004/10/wsat/Prepared",
  326. "http://schemas.xmlsoap.org/ws/2004/10/wsat/ReadOnly",
  327. "http://schemas.xmlsoap.org/ws/2004/10/wsat/Replay",
  328. "http://schemas.xmlsoap.org/ws/2004/10/wsat/fault", "CompletionCoordinatorPortType", "CompletionParticipantPortType", "CoordinatorPortType", "ParticipantPortType", "InconsistentInternalState", "mstx", "Enlistment", "protocol", "LocalTransactionId", "IsolationLevel", "IsolationFlags", "Description", "Loopback", "RegisterInfo", "ContextId", "TokenId", "AccessDenied", "InvalidPolicy", "CoordinatorRegistrationFailed", "TooManyEnlistments", "Disabled", "ActivityId",
  329. "http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics",
  330. "http://docs.oasis-open.org/wss/oasis-wss-kerberos-token-profile-1.1#Kerberosv5APREQSHA1",
  331. "http://schemas.xmlsoap.org/ws/2002/12/policy", "FloodMessage", "LinkUtility", "Hops",
  332. "http://schemas.microsoft.com/net/2006/05/peer/HopCount", "PeerVia",
  333. "http://schemas.microsoft.com/net/2006/05/peer", "PeerFlooder", "PeerTo",
  334. "http://schemas.microsoft.com/ws/2005/05/routing", "PacketRoutable",
  335. "http://schemas.microsoft.com/ws/2005/05/addressing/none",
  336. "http://schemas.microsoft.com/ws/2005/05/envelope/none",
  337. "http://www.w3.org/2001/XMLSchema-instance",
  338. "http://www.w3.org/2001/XMLSchema", "nil", "type", "char", "boolean", "byte", "unsignedByte", "short", "unsignedShort", "int", "unsignedInt", "long", "unsignedLong", "float", "double", "decimal", "dateTime", "string", "base64Binary", "anyType", "duration", "guid", "anyURI", "QName", "time", "date", "hexBinary", "gYearMonth", "gYear", "gMonthDay", "gDay", "gMonth", "integer", "positiveInteger", "negativeInteger", "nonPositiveInteger", "nonNegativeInteger", "normalizedString", "ConnectionLimitReached",
  339. "http://schemas.xmlsoap.org/soap/envelope/", "Actor", "Faultcode", "Faultstring", "Faultactor", "Detail"
  340. };
  341. static BinaryFrameSupportReader ()
  342. {
  343. var d = new XmlDictionary ();
  344. soap_dictionary = d;
  345. foreach (var s in dict_strings)
  346. d.Add (s);
  347. }
  348. }
  349. }