/// <summary> /// Generates the web service wrapper type. /// </summary> protected virtual void GenerateProxy() { IProxyTypeBuilder builder = new WebServiceProxyTypeBuilder(this, Description, Name, Namespace, WsiProfile); builder.Name = WebUtils.GetPageName(objectName); builder.BaseType = WebServiceBaseType; builder.TargetType = objectFactory.GetType(TargetName); if (Interfaces != null && Interfaces.Length > 0) { builder.Interfaces = TypeResolutionUtils.ResolveInterfaceArray(Interfaces); } builder.TypeAttributes = TypeAttributes; builder.MemberAttributes = MemberAttributes; proxyType = builder.BuildProxyType(); }