Ensure the schemas are available for validation
authorKonstantin Triger <kostat@mono-cvs.ximian.com>
Tue, 6 Feb 2007 14:58:57 +0000 (14:58 -0000)
committerKonstantin Triger <kostat@mono-cvs.ximian.com>
Tue, 6 Feb 2007 14:58:57 +0000 (14:58 -0000)
svn path=/trunk/mcs/; revision=72354

mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Description/ProtocolReflector.cs

index 5a16d9fde981664429c01ff10aa75e17d3095a9e..1a27cfb71808291391c5b67ccd3e7a20a0884ba7 100644 (file)
@@ -1,3 +1,7 @@
+2007-02-06  Konstantin Triger <kostat@mainsoft.com>
+
+       * ProtocolReflector.cs: Ensure the schemas are available for validation.
+
 2007-02-01  Konstantin Triger <kostat@mainsoft.com>
 
        * ProtocolReflector.cs: throw if not conformant, but declared to be.
index 93ede0af623ef67fe409f017d847c4b0b5810aaf..4ccb7adca0c3b87672e7604b9f5b898a2687f003 100644 (file)
@@ -284,6 +284,7 @@ namespace System.Web.Services.Description {
 #if NET_2_0
                        if (binfo.WebServiceBindingAttribute != null && binfo.WebServiceBindingAttribute.ConformsTo != WsiProfiles.None && String.IsNullOrEmpty (binfo.WebServiceBindingAttribute.Name)) {
                                BasicProfileViolationCollection violations = new BasicProfileViolationCollection ();
+                               desc.Types.Schemas.Add (Schemas);
                                if (!WebServicesInteroperability.CheckConformance (binfo.WebServiceBindingAttribute.ConformsTo, desc, violations))
                                        throw new InvalidOperationException (violations [0].ToString ());
                        }