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");
_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");
_appSettingUrlKey = appSettingUrlKey;
_appSettingBaseUrl = appSettingBaseUrl;
}
-
+#endif
public string AppSettingBaseUrl {
get { return _appSettingBaseUrl; }
}
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 ();