/// <summary> /// Initialises the <see cref="InitializerValueObject"/> and <see cref="SchemaCache"/> /// </summary> /// <exception cref="System.Web.Services.Protocols.SoapException"> /// A server error occured /// </exception> /// <param name="type"> /// The type of the class implementing the XML Web service to which the SOAP extension is applied. /// </param> /// <param name="name"> /// The web method name or the type name /// </param> /// <returns> /// The <see cref="InitializerValueObject"/> object /// </returns> private object GetInitiliaserCommon(Type type, string name) { try { var iv = new InitializerValueObject { MethodName = name }; // iv.ValidateSoapBody = attribute.ValidateSoapBody; // InitSchemaCache(iv.ValidateSoapBody, type); var webAttributes = (WebServiceAttribute[])type.GetCustomAttributes(typeof(WebServiceAttribute), true); if (webAttributes.Length > 0) { iv.WsdlNamespace = webAttributes[0].Namespace; } return(iv); } catch (Exception ex) { throw this.ThrowServerSoapException(ex); } }
/// <summary> /// Initialises the <see cref="InitializerValueObject"/> and <see cref="SchemaCache"/> /// </summary> /// <exception cref="System.Web.Services.Protocols.SoapException"> /// A server error occured /// </exception> /// <param name="type"> /// The type of the class implementing the XML Web service to which the SOAP extension is applied. /// </param> /// <param name="name"> /// The web method name or the type name /// </param> /// <returns> /// The <see cref="InitializerValueObject"/> object /// </returns> private object GetInitiliaserCommon(Type type, string name) { try { var iv = new InitializerValueObject { MethodName = name }; // iv.ValidateSoapBody = attribute.ValidateSoapBody; // InitSchemaCache(iv.ValidateSoapBody, type); var webAttributes = (WebServiceAttribute[])type.GetCustomAttributes(typeof(WebServiceAttribute), true); if (webAttributes.Length > 0) { iv.WsdlNamespace = webAttributes[0].Namespace; } return iv; } catch (Exception ex) { throw this.ThrowServerSoapException(ex); } }
/// <summary> /// Uses <see cref="InitializerValueObject"/> object from GetInitializer to set the private field <see cref="_initialiserVo"/> /// <seealso cref="System.Web.Services.Protocols.SoapExtension.Initialize"/> /// </summary> /// <param name="initializer"> /// The <see cref="InitializerValueObject"/> object /// </param> public override void Initialize(object initializer) { this._initialiserVo = initializer as InitializerValueObject; }
/// <summary> /// Uses <see cref="InitializerValueObject"/> object from GetInitializer to set the private field <see cref="_initialiserVo"/> /// <seealso cref="System.Web.Services.Protocols.SoapExtension.Initialize"/> /// </summary> /// <param name="initializer"> /// The <see cref="InitializerValueObject"/> object /// </param> public override void Initialize(object initializer) { this._initialiserVo = initializer as InitializerValueObject; }