From e410a395e4b951061cbf7cb9663c4c7fdee9f53c Mon Sep 17 00:00:00 2001
From: bbaia
Date: Tue, 5 Aug 2008 14:01:19 +0000
Subject: [PATCH] WebServiceExporter should generate WebServiceBinding
attribute with WSI basic profile 1.1 by default. [SPRNET-869]
---
src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs b/src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs
index ed433050..e24e844b 100644
--- a/src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs
+++ b/src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs
@@ -57,7 +57,6 @@ namespace Spring.Web.Services
///
///
/// Aleksandar Seovic
- [WebServiceBinding(ConformsTo=WsiProfiles.BasicProfile1_1)]
public class WebServiceExporter : IInitializingObject, IObjectFactoryAware, IFactoryObject, IObjectNameAware
{
#region Fields
@@ -500,7 +499,9 @@ namespace Spring.Web.Services
IList attrs = base.GetTypeAttributes(type);
bool containsWebServiceAttribute = false;
+#if NET_2_0
bool containsWebServiceBindingAttribute = false;
+#endif
for (int i = 0; i < attrs.Count; i++)
{
if (IsAttributeMatchingType(attrs[i], typeof(WebServiceAttribute)))