ContractReference.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. //
  2. // System.Web.Services.Discovery.ContractReference.cs
  3. //
  4. // Author:
  5. // Dave Bettin ([email protected])
  6. //
  7. // Copyright (C) Dave Bettin, 2002
  8. //
  9. using System.IO;
  10. using System.Web.Services.Description;
  11. using System.Xml.Serialization;
  12. namespace System.Web.Services.Discovery {
  13. [XmlRootAttribute("contractRef", Namespace="https://schemas.xmlsoap.org/disco/scl/", IsNullable=true)]
  14. public class ContractReference : DiscoveryReference {
  15. #region Fields
  16. public const string Namespace = "http://schemas.xmlsoap.org/disco/scl/";
  17. private ServiceDescription contract;
  18. private string defaultFilename;
  19. private string docRef;
  20. private string href;
  21. private string url;
  22. #endregion // Fields
  23. #region Constructors
  24. [MonoTODO]
  25. public ContractReference ()
  26. {
  27. throw new NotImplementedException ();
  28. }
  29. [MonoTODO]
  30. public ContractReference (string href) : this()
  31. {
  32. throw new NotImplementedException ();
  33. }
  34. [MonoTODO]
  35. public ContractReference (string href, string docRef) : this(href)
  36. {
  37. throw new NotImplementedException ();
  38. }
  39. #endregion // Constructors
  40. #region Properties
  41. [XmlIgnore]
  42. public ServiceDescription Contract {
  43. get { return contract; }
  44. }
  45. [XmlIgnore]
  46. public override string DefaultFilename {
  47. get { return defaultFilename; }
  48. }
  49. [XmlAttribute("docRef")]
  50. public string DocRef {
  51. get { return docRef; }
  52. set { docRef = value; }
  53. }
  54. [XmlAttribute("ref")]
  55. public string Ref {
  56. get { return href; }
  57. set { href = value; }
  58. }
  59. [XmlIgnore]
  60. public override string Url {
  61. get { return url;}
  62. set { url = value; }
  63. }
  64. #endregion // Properties
  65. #region Methods
  66. [MonoTODO]
  67. public override object ReadDocument (Stream stream)
  68. {
  69. throw new NotImplementedException ();
  70. }
  71. [MonoTODO]
  72. protected internal override void Resolve (string contentType, Stream stream)
  73. {
  74. throw new NotImplementedException ();
  75. }
  76. [MonoTODO]
  77. public override void WriteDocument (object document, Stream stream)
  78. {
  79. throw new NotImplementedException ();
  80. }
  81. #endregion // Methods
  82. }
  83. }