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