2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Description / WebReference.cs
index 829a72a6f173f9e4e61491e1cdd84afe59c59a66..ef41cefdb7b161bf070b65ee9e5f6cbcbce51cf2 100644 (file)
@@ -42,13 +42,16 @@ namespace System.Web.Services.Description
        sealed class WebReference
        {
                DiscoveryClientDocumentCollection _documents;
+#if !TARGET_J2EE
                CodeNamespace _proxyCode;
+#endif
                ServiceDescriptionImportWarnings _warnings;
                string _protocolName;
                string _appSettingUrlKey;
                string _appSettingBaseUrl;
                StringCollection _validationWarnings;
                
+#if !TARGET_J2EE
                public WebReference (DiscoveryClientDocumentCollection documents, CodeNamespace proxyCode)
                {
                        if (documents == null) throw new ArgumentNullException ("documents");
@@ -58,6 +61,11 @@ namespace System.Web.Services.Description
                        _proxyCode = proxyCode;
                }
                
+               public WebReference (DiscoveryClientDocumentCollection documents, CodeNamespace proxyCode, string appSettingUrlKey, string appSettingBaseUrl)
+                       : this (documents, proxyCode, String.Empty, appSettingUrlKey, appSettingBaseUrl)
+               {
+               }
+               
                public WebReference (DiscoveryClientDocumentCollection documents, CodeNamespace proxyCode, string protocolName, string appSettingUrlKey, string appSettingBaseUrl)
                {
                        if (documents == null) throw new ArgumentNullException ("documents");
@@ -69,7 +77,7 @@ namespace System.Web.Services.Description
                        _appSettingUrlKey = appSettingUrlKey;
                        _appSettingBaseUrl = appSettingBaseUrl;
                }
-               
+#endif         
                public string AppSettingBaseUrl {
                        get { return _appSettingBaseUrl; }
                }
@@ -86,11 +94,11 @@ namespace System.Web.Services.Description
                        get { return _protocolName; }
                        set { _protocolName = value; }
                }
-
+#if !TARGET_J2EE
                public CodeNamespace ProxyCode {
                        get { return _proxyCode; }
                }
-
+#endif
                public StringCollection ValidationWarnings {
                        get { 
                                if (_validationWarnings == null) _validationWarnings = new StringCollection ();