Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Services/Web/Services
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv30391/src/Spring/Spring.Services/Web/Services
Modified Files:
WebServiceProxyFactory.cs
Log Message:
WebServiceProxyFactory support for SoapHeaderAttribute [SPRNET-784]
Revert changes - Moved to 1.1.1
Index: WebServiceProxyFactory.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Services/Web/Services/WebServiceProxyFactory.cs,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** WebServiceProxyFactory.cs 3 Dec 2007 09:07:31 -0000 1.28
--- WebServiceProxyFactory.cs 7 Dec 2007 13:33:49 -0000 1.29
***************
*** 437,442 ****
#region Fields
- private ArrayList soapHeaderFieldNames;
-
// Binding/Type related
private IResource serviceUri;
--- 437,440 ----
***************
*** 468,472 ****
{
this.serviceUri = serviceUri;
- this.soapHeaderFieldNames = new ArrayList();
Name = "SoapHttpClientProxy";
--- 466,469 ----
***************
*** 508,517 ****
}
- // add SoapHeader public fields
- foreach (string fieldName in soapHeaderFieldNames)
- {
- typeBuilder.DefineField(fieldName, typeof(SoapHeader), FieldAttributes.Public);
- }
-
return typeBuilder.CreateType();
}
--- 505,508 ----
***************
*** 584,594 ****
IList attrs = base.GetMethodAttributes(method);
- // Add the SoapHeaderAttribute (Only SoapHeaders with Direction=SoapHeaderDirection.In are supported)
- foreach (SoapHeaderBinding soapHeaderBinding in operationBinding.Input.Extensions.FindAll(typeof(SoapHeaderBinding)))
- {
- soapHeaderFieldNames.Add(soapHeaderBinding.Part);
- attrs.Add(CreateSoapHeaderAttribute(soapHeaderBinding.Part, SoapHeaderDirection.In));
- }
-
// Add the SoapMethodAttribute
attrs.Add(CreateSoapMethodAttribute(
--- 575,578 ----
***************
*** 874,892 ****
/// <summary>
- /// Creates a <see cref="SoapHeaderAttribute"/> that should be applied to proxy method.
- /// </summary>
- private static CustomAttributeBuilder CreateSoapHeaderAttribute(
- string memberName, SoapHeaderDirection direction)
- {
- ReflectionUtils.CustomAttributeBuilderBuilder cabb =
- new ReflectionUtils.CustomAttributeBuilderBuilder(typeof(SoapHeaderAttribute));
-
- cabb.AddContructorArgument(memberName);
- cabb.AddPropertyValue("Direction", direction);
-
- return cabb.Build();
- }
-
- /// <summary>
/// Creates a <see cref="SoapDocumentMethodAttribute"/> or a <see cref="SoapRpcMethodAttribute"/>
/// that should be applied to proxy method.
--- 858,861 ----
|