88 references to SoapBindingStyle
System.ServiceModel (15)
System\ServiceModel\Description\MessageContractExporter.cs (2)
677soapOperationBinding.Style = isRpc ? WsdlNS.SoapBindingStyle.Rpc : WsdlNS.SoapBindingStyle.Document;
System\ServiceModel\Description\MessageContractImporter.cs (6)
1191static WsdlNS.SoapBindingStyle GetStyle(WsdlNS.Binding binding) 1193WsdlNS.SoapBindingStyle style = WsdlNS.SoapBindingStyle.Default; 1205WsdlNS.SoapBindingStyle style = GetStyle(operationBinding.Binding); 1211if (soapOperationBinding.Style != WsdlNS.SoapBindingStyle.Default) 1215return (style == WsdlNS.SoapBindingStyle.Rpc) ? OperationFormatStyle.Rpc : OperationFormatStyle.Document;
System\ServiceModel\Description\SoapHelper.cs (7)
609internal static WsdlNS.SoapBindingStyle GetStyle(WsdlNS.Binding binding) 611WsdlNS.SoapBindingStyle style = WsdlNS.SoapBindingStyle.Default; 621internal static WsdlNS.SoapBindingStyle GetStyle(WsdlNS.OperationBinding operationBinding, WsdlNS.SoapBindingStyle defaultBindingStyle) 623WsdlNS.SoapBindingStyle style = defaultBindingStyle; 629if (soapOperationBinding.Style != WsdlNS.SoapBindingStyle.Default)
System.Web.Services (73)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (26)
1213if (((global::System.Web.Services.Description.SoapBindingStyle)o.@Style) != global::System.Web.Services.Description.SoapBindingStyle.@Default) { 1214WriteAttribute(@"style", @"", Write79_SoapBindingStyle(((global::System.Web.Services.Description.SoapBindingStyle)o.@Style))); 1219string Write79_SoapBindingStyle(global::System.Web.Services.Description.SoapBindingStyle v) { 1222case global::System.Web.Services.Description.SoapBindingStyle.@Document: s = @"document"; break; 1223case global::System.Web.Services.Description.SoapBindingStyle.@Rpc: s = @"rpc"; break; 1270if (((global::System.Web.Services.Description.SoapBindingStyle)o.@Style) != global::System.Web.Services.Description.SoapBindingStyle.@Default) { 1271WriteAttribute(@"style", @"", Write82_SoapBindingStyle(((global::System.Web.Services.Description.SoapBindingStyle)o.@Style))); 1279string Write82_SoapBindingStyle(global::System.Web.Services.Description.SoapBindingStyle v) { 1282case global::System.Web.Services.Description.SoapBindingStyle.@Document: s = @"document"; break; 1283case global::System.Web.Services.Description.SoapBindingStyle.@Rpc: s = @"rpc"; break; 1308if (((global::System.Web.Services.Description.SoapBindingStyle)o.@Style) != global::System.Web.Services.Description.SoapBindingStyle.@Document) { 1309WriteAttribute(@"style", @"", Write79_SoapBindingStyle(((global::System.Web.Services.Description.SoapBindingStyle)o.@Style))); 1355if (((global::System.Web.Services.Description.SoapBindingStyle)o.@Style) != global::System.Web.Services.Description.SoapBindingStyle.@Document) { 1356WriteAttribute(@"style", @"", Write82_SoapBindingStyle(((global::System.Web.Services.Description.SoapBindingStyle)o.@Style))); 5974global::System.Web.Services.Description.SoapBindingStyle Read82_SoapBindingStyle(string s) { 5976case @"document": return global::System.Web.Services.Description.SoapBindingStyle.@Document; 5977case @"rpc": return global::System.Web.Services.Description.SoapBindingStyle.@Rpc; 5978default: throw CreateUnknownConstantException(s, typeof(global::System.Web.Services.Description.SoapBindingStyle)); 6036global::System.Web.Services.Description.SoapBindingStyle Read79_SoapBindingStyle(string s) { 6038case @"document": return global::System.Web.Services.Description.SoapBindingStyle.@Document; 6039case @"rpc": return global::System.Web.Services.Description.SoapBindingStyle.@Rpc; 6040default: throw CreateUnknownConstantException(s, typeof(global::System.Web.Services.Description.SoapBindingStyle));
System\Web\Services\Description\Soap12ProtocolReflector.cs (2)
76protected override SoapBinding CreateSoapBinding(SoapBindingStyle style) { 96protected override SoapOperationBinding CreateSoapOperationBinding(SoapBindingStyle style, string action) {
System\Web\Services\Description\SoapFormatExtensions.cs (7)
15SoapBindingStyle style = SoapBindingStyle.Document; 32[XmlAttribute("style"), DefaultValue(SoapBindingStyle.Document)] 33public SoapBindingStyle Style { 73SoapBindingStyle style; 83[XmlAttribute("style"), DefaultValue(SoapBindingStyle.Default)] 84public SoapBindingStyle Style {
System\Web\Services\Description\SoapProtocolImporter.cs (18)
642SoapBindingStyle soapBindingStyle = soapOperationBinding.Style; 643if (soapBindingStyle == SoapBindingStyle.Default) 645if (soapBindingStyle == SoapBindingStyle.Default) 646soapBindingStyle = SoapBindingStyle.Document; 681requestMessageName = !String.IsNullOrEmpty(requestBinding.Name) && soapBindingStyle != SoapBindingStyle.Rpc ? requestBinding.Name : this.Operation.Name; // per WSDL 1.1 sec 3.5 685responseMessageName = !String.IsNullOrEmpty(responseBinding.Name) && soapBindingStyle != SoapBindingStyle.Rpc ? responseBinding.Name : this.Operation.Name + "Response"; // per WSDL 1.1 sec 3.5 690GenerateHeaders(metadata, soapRequestBinding.Use, soapBindingStyle == SoapBindingStyle.Rpc, requestBinding, responseBinding); 710bool wrapperNamesMatter = (soapBindingStyle != SoapBindingStyle.Rpc && hasWrapper) || (soapRequestBinding.Use == SoapBindingUse.Literal && soapBindingStyle == SoapBindingStyle.Rpc); 765if (soapBindingStyle == SoapBindingStyle.Rpc) { 786string ns = soapBindingStyle == SoapBindingStyle.Rpc ? parameter.mapping.Namespace : parameter.IsOut ? response.Namespace : request.Namespace; 1017bool CheckMessageStyles(string messageName, MessagePart[] parts, SoapBodyBinding soapBodyBinding, SoapBindingStyle soapBindingStyle, out bool hasWrapper) { 1023if (soapBindingStyle == SoapBindingStyle.Rpc) { 1075if (soapBindingStyle == SoapBindingStyle.Rpc) { 1078else if (soapBindingStyle == SoapBindingStyle.Document) { 1117XmlMembersMapping ImportMessage(string messageName, MessagePart[] parts, SoapBodyBinding soapBodyBinding, SoapBindingStyle soapBindingStyle, bool wrapped) { 1147XmlMembersMapping ImportLiteralMessage(string messageName, MessagePart[] parts, SoapBodyBinding soapBodyBinding, SoapBindingStyle soapBindingStyle, bool wrapped) { 1149if (soapBindingStyle == SoapBindingStyle.Rpc) {
System\Web\Services\Description\SoapProtocolReflector.cs (7)
68OperationBinding.Extensions.Add(CreateSoapOperationBinding(soapMethod.rpc ? SoapBindingStyle.Rpc : SoapBindingStyle.Document, soapMethod.action)); 229SoapBindingStyle style; 231style = SoapBindingStyle.Rpc; 233style = SoapBindingStyle.Document; 271protected virtual SoapBinding CreateSoapBinding(SoapBindingStyle style) { 291protected virtual SoapOperationBinding CreateSoapOperationBinding(SoapBindingStyle style, string action) {
System\Web\Services\Description\WebServicesInteroperability.cs (13)
94SoapBindingStyle bindingStyle = soapBinding.Style == SoapBindingStyle.Default ? SoapBindingStyle.Document : soapBinding.Style; 141SoapBindingStyle style = SoapBindingStyle.Default; 143SoapBindingStyle opStyle = bindingStyle; 155if (style == SoapBindingStyle.Default) 158opStyle = soapOpBinding.Style != SoapBindingStyle.Default ? soapOpBinding.Style : bindingStyle; 165SoapBodyBinding soapBodyBinding = FindSoapBodyBinding(true, bindingOperation.Input.Extensions, violations, opStyle == SoapBindingStyle.Document, bindingOperation.Name, binding.Name, description.TargetNamespace); 169if (opStyle == SoapBindingStyle.Rpc) { 185SoapBodyBinding soapBodyBinding = FindSoapBodyBinding(false, bindingOperation.Output.Extensions, violations, opStyle == SoapBindingStyle.Document, bindingOperation.Name, binding.Name, description.TargetNamespace); 189if (opStyle == SoapBindingStyle.Rpc) { 224violations.Add(opStyle == SoapBindingStyle.Document ? "R2716" : "R2726", MessageString(fault, bindingOperation.Name, binding.Name, description.TargetNamespace, false, null));