protected override void BeginClass()
 {
     if (base.Binding != null)
     {
         SoapBindingStyle rpc;
         if (SoapReflector.GetSoapServiceAttribute(base.ServiceType) is SoapRpcServiceAttribute)
         {
             rpc = SoapBindingStyle.Rpc;
         }
         else
         {
             rpc = SoapBindingStyle.Document;
         }
         base.Binding.Extensions.Add(this.CreateSoapBinding(rpc));
         SoapReflector.IncludeTypes(base.Methods, this.SoapImporter);
     }
     base.Port.Extensions.Add(this.CreateSoapAddressBinding(base.ServiceUrl));
 }
Пример #2
0
        protected override void BeginClass()
        {
            if (Binding != null)
            {
                SoapBindingStyle style;
                if (SoapReflector.GetSoapServiceAttribute(ServiceType) is SoapRpcServiceAttribute)
                {
                    style = SoapBindingStyle.Rpc;
                }
                else
                {
                    style = SoapBindingStyle.Document;
                }
                Binding.Extensions.Add(CreateSoapBinding(style));
                SoapReflector.IncludeTypes(Methods, SoapImporter);
            }

            Port.Extensions.Add(CreateSoapAddressBinding(ServiceUrl));
        }