150 references to SoapBindingUse
System.ServiceModel (15)
System\ServiceModel\Description\MessageContractExporter.cs (4)
723
bodyBinding.Use = isEncoded ? WsdlNS.
SoapBindingUse
.Encoded : WsdlNS.
SoapBindingUse
.Literal;
743
headerBinding.Use = isEncoded ? WsdlNS.
SoapBindingUse
.Encoded : WsdlNS.
SoapBindingUse
.Literal;
System\ServiceModel\Description\MessageContractImporter.cs (11)
1123
if (body.Use == WsdlNS.
SoapBindingUse
.Encoded)
1125
else if (body.Use == WsdlNS.
SoapBindingUse
.Literal)
1134
if (header.Use == WsdlNS.
SoapBindingUse
.Encoded)
1136
else if (header.Use == WsdlNS.
SoapBindingUse
.Literal)
1150
if (body.Use == WsdlNS.
SoapBindingUse
.Encoded)
1152
else if (body.Use == WsdlNS.
SoapBindingUse
.Literal)
1164
if (header.Use == WsdlNS.
SoapBindingUse
.Encoded)
1166
else if (header.Use == WsdlNS.
SoapBindingUse
.Literal)
1378
currentIsEncoded = (soapFaultBinding.Use == System.Web.Services.Description.
SoapBindingUse
.Encoded);
1393
isEncoded = (bodyBinding.Use == WsdlNS.
SoapBindingUse
.Encoded);
1399
isEncoded = (headerBinding.Use == WsdlNS.
SoapBindingUse
.Encoded);
System.Web.Services (135)
System\Web\Services\Description\ServiceDescriptionImporter.cs (8)
351
if (body.Use ==
SoapBindingUse
.Encoded)
353
else if (body.Use ==
SoapBindingUse
.Literal)
360
if (header.Use ==
SoapBindingUse
.Encoded)
362
else if (header.Use ==
SoapBindingUse
.Literal)
372
if (body.Use ==
SoapBindingUse
.Encoded)
374
else if (body.Use ==
SoapBindingUse
.Literal)
384
if (header.Use ==
SoapBindingUse
.Encoded)
386
else if (header.Use ==
SoapBindingUse
.Literal)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (38)
528
if (((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use) != global::System.Web.Services.Description.
SoapBindingUse
.@Default) {
529
WriteAttribute(@"use", @"", Write98_SoapBindingUse(((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use)));
539
string Write98_SoapBindingUse(global::System.Web.Services.Description.
SoapBindingUse
v) {
542
case global::System.Web.Services.Description.
SoapBindingUse
.@Encoded: s = @"encoded"; break;
543
case global::System.Web.Services.Description.
SoapBindingUse
.@Literal: s = @"literal"; break;
567
if (((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use) != global::System.Web.Services.Description.
SoapBindingUse
.@Default) {
568
WriteAttribute(@"use", @"", Write100_SoapBindingUse(((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use)));
578
string Write100_SoapBindingUse(global::System.Web.Services.Description.
SoapBindingUse
v) {
581
case global::System.Web.Services.Description.
SoapBindingUse
.@Encoded: s = @"encoded"; break;
582
case global::System.Web.Services.Description.
SoapBindingUse
.@Literal: s = @"literal"; break;
890
if (((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use) != global::System.Web.Services.Description.
SoapBindingUse
.@Default) {
891
WriteAttribute(@"use", @"", Write98_SoapBindingUse(((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use)));
921
if (((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use) != global::System.Web.Services.Description.
SoapBindingUse
.@Default) {
922
WriteAttribute(@"use", @"", Write100_SoapBindingUse(((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use)));
954
if (((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use) != global::System.Web.Services.Description.
SoapBindingUse
.@Default) {
955
WriteAttribute(@"use", @"", Write98_SoapBindingUse(((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use)));
987
if (((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use) != global::System.Web.Services.Description.
SoapBindingUse
.@Default) {
988
WriteAttribute(@"use", @"", Write98_SoapBindingUse(((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use)));
1019
if (((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use) != global::System.Web.Services.Description.
SoapBindingUse
.@Default) {
1020
WriteAttribute(@"use", @"", Write100_SoapBindingUse(((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use)));
1052
if (((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use) != global::System.Web.Services.Description.
SoapBindingUse
.@Default) {
1053
WriteAttribute(@"use", @"", Write100_SoapBindingUse(((global::System.Web.Services.Description.
SoapBindingUse
)o.@Use)));
4816
global::System.Web.Services.Description.
SoapBindingUse
Read100_SoapBindingUse(string s) {
4818
case @"encoded": return global::System.Web.Services.Description.
SoapBindingUse
.@Encoded;
4819
case @"literal": return global::System.Web.Services.Description.
SoapBindingUse
.@Literal;
4820
default: throw CreateUnknownConstantException(s, typeof(global::System.Web.Services.Description.
SoapBindingUse
));
4886
global::System.Web.Services.Description.
SoapBindingUse
Read98_SoapBindingUse(string s) {
4888
case @"encoded": return global::System.Web.Services.Description.
SoapBindingUse
.@Encoded;
4889
case @"literal": return global::System.Web.Services.Description.
SoapBindingUse
.@Literal;
4890
default: throw CreateUnknownConstantException(s, typeof(global::System.Web.Services.Description.
SoapBindingUse
));
System\Web\Services\Description\Soap12ProtocolReflector.cs (5)
107
protected override SoapBodyBinding CreateSoapBodyBinding(
SoapBindingUse
use, string ns) {
110
if (use ==
SoapBindingUse
.Encoded)
116
protected override SoapHeaderBinding CreateSoapHeaderBinding(XmlQualifiedName message, string partName,
SoapBindingUse
use) {
120
protected override SoapHeaderBinding CreateSoapHeaderBinding(XmlQualifiedName message, string partName, string ns,
SoapBindingUse
use) {
126
if (use ==
SoapBindingUse
.Encoded)
System\Web\Services\Description\SoapFormatExtensions.cs (12)
93
SoapBindingUse
use;
99
[XmlAttribute("use"), DefaultValue(
SoapBindingUse
.Default)]
100
public
SoapBindingUse
Use {
164
SoapBindingUse
use;
170
[XmlAttribute("use"), DefaultValue(
SoapBindingUse
.Default)]
171
public
SoapBindingUse
Use {
202
SoapBindingUse
use;
230
[XmlAttribute("use"), DefaultValue(
SoapBindingUse
.Default)]
231
public
SoapBindingUse
Use {
262
SoapBindingUse
use;
281
[XmlAttribute("use"), DefaultValue(
SoapBindingUse
.Default)]
282
public
SoapBindingUse
Use {
System\Web\Services\Description\SoapProtocolImporter.cs (18)
538
void GenerateHeaders(CodeAttributeDeclarationCollection metadata,
SoapBindingUse
use, bool rpc, MessageBinding requestMessage, MessageBinding responseMessage) {
561
if (use ==
SoapBindingUse
.Encoded && !IsSoapEncodingPresent(header.Encoding) )
572
if (use ==
SoapBindingUse
.Encoded) {
589
globalHeader.isEncoded = use ==
SoapBindingUse
.Encoded;
710
bool wrapperNamesMatter = (soapBindingStyle != SoapBindingStyle.Rpc && hasWrapper) || (soapRequestBinding.Use ==
SoapBindingUse
.Literal && soapBindingStyle == SoapBindingStyle.Rpc);
766
if (soapRequestBinding.Use !=
SoapBindingUse
.Encoded) {
767
AddMetadataProperty("Use", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(
SoapBindingUse
).FullName), Enum.Format(typeof(
SoapBindingUse
), soapRequestBinding.Use, "G")));
772
AddMetadataProperty("Use", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(
SoapBindingUse
).FullName), Enum.Format(typeof(
SoapBindingUse
), soapRequestBinding.Use, "G")));
776
IsEncodedBinding = IsEncodedBinding || (soapRequestBinding.Use ==
SoapBindingUse
.Encoded);
783
if (soapRequestBinding.Use ==
SoapBindingUse
.Encoded)
819
if (soapRequestBinding.Use ==
SoapBindingUse
.Encoded)
1019
if (soapBodyBinding.Use ==
SoapBindingUse
.Default) {
1020
soapBodyBinding.Use =
SoapBindingUse
.Literal;
1022
if (soapBodyBinding.Use ==
SoapBindingUse
.Literal) {
1058
else if (soapBodyBinding.Use ==
SoapBindingUse
.Encoded) {
1118
if (soapBodyBinding.Use ==
SoapBindingUse
.Encoded)
System\Web\Services\Description\SoapProtocolReflector.cs (13)
76
if (soapMethod.rpc && soapMethod.use ==
SoapBindingUse
.Encoded && soapMethod.methodInfo.OutParameters.Length > 0)
88
void CreateHeaderMessages(string methodName,
SoapBindingUse
use, XmlMembersMapping inHeaderMappings, XmlMembersMapping outHeaderMappings, SoapReflectedHeader[] headers, bool rpc) {
90
if (use ==
SoapBindingUse
.Encoded) {
119
if (use ==
SoapBindingUse
.Encoded)
144
void CreateMessage(bool rpc,
SoapBindingUse
use, SoapParameterStyle paramStyle, Message message, MessageBinding messageBinding, XmlMembersMapping members) {
147
if (use ==
SoapBindingUse
.Encoded)
172
messageBinding.Extensions.Add(CreateSoapBodyBinding(
SoapBindingUse
.Encoded, members.Namespace));
211
messageBinding.Extensions.Add(CreateSoapBodyBinding(
SoapBindingUse
.Literal, rpc ? members.Namespace : null));
298
protected virtual SoapBodyBinding CreateSoapBodyBinding(
SoapBindingUse
use, string ns) {
301
if (use ==
SoapBindingUse
.Encoded)
307
protected virtual SoapHeaderBinding CreateSoapHeaderBinding(XmlQualifiedName message, string partName,
SoapBindingUse
use) {
311
protected virtual SoapHeaderBinding CreateSoapHeaderBinding(XmlQualifiedName message, string partName, string ns,
SoapBindingUse
use) {
316
if (use ==
SoapBindingUse
.Encoded) {
System\Web\Services\Description\WebServicesInteroperability.cs (6)
167
if (soapBodyBinding.Use !=
SoapBindingUse
.Encoded) {
187
if (soapBodyBinding.Use !=
SoapBindingUse
.Encoded) {
208
if (fault.Use ==
SoapBindingUse
.Encoded) {
428
encodedBinding = (body.Use ==
SoapBindingUse
.Encoded);
434
encodedBinding = (header.Use ==
SoapBindingUse
.Encoded);
440
encodedBinding |= (header.Fault.Use ==
SoapBindingUse
.Encoded);
System\Web\Services\Protocols\Soap11ServerProtocol.cs (1)
100
SoapHeaderHandling.WriteHeaders(writer, ServerProtocol.ServerMethod.outHeaderSerializer, message.Headers, ServerProtocol.ServerMethod.outHeaderMappings, SoapHeaderDirection.Fault, ServerProtocol.ServerMethod.use ==
SoapBindingUse
.Encoded, ServerType.serviceNamespace, ServerType.serviceDefaultIsEncoded, Soap.Namespace);
System\Web\Services\Protocols\Soap12ServerProtocol.cs (1)
119
SoapHeaderHandling.WriteHeaders(writer, ServerProtocol.ServerMethod.outHeaderSerializer, ServerProtocol.Message.Headers, ServerProtocol.ServerMethod.outHeaderMappings, SoapHeaderDirection.Fault, ServerProtocol.ServerMethod.use ==
SoapBindingUse
.Encoded, ServerType.serviceNamespace, ServerType.serviceDefaultIsEncoded, Soap12.Namespace);
System\Web\Services\Protocols\SoapClientProtocol.cs (4)
156
internal
SoapBindingUse
use;
548
bool isEncoded = method.use ==
SoapBindingUse
.Encoded;
661
headerHandler.ReadHeaders(reader, method.outHeaderSerializer, message.Headers, method.outHeaderMappings, SoapHeaderDirection.Out | SoapHeaderDirection.Fault, envelopeNs, method.use ==
SoapBindingUse
.Encoded ? encodingNs : null, false);
675
bool isEncodedSoap = method.use ==
SoapBindingUse
.Encoded;
System\Web\Services\Protocols\SoapDocumentMethodAttribute.cs (3)
23
SoapBindingUse
use =
SoapBindingUse
.Default;
100
public
SoapBindingUse
Use {
System\Web\Services\Protocols\SoapDocumentServiceAttribute.cs (5)
20
SoapBindingUse
use =
SoapBindingUse
.Default;
35
public SoapDocumentServiceAttribute(
SoapBindingUse
use) {
43
public SoapDocumentServiceAttribute(
SoapBindingUse
use, SoapParameterStyle paramStyle) {
52
public
SoapBindingUse
Use {
System\Web\Services\Protocols\SoapReflector.cs (9)
88
internal
SoapBindingUse
use;
128
return ((SoapDocumentServiceAttribute)soapServiceAttribute).Use ==
SoapBindingUse
.Encoded;
131
return ((SoapRpcServiceAttribute)soapServiceAttribute).Use ==
SoapBindingUse
.Encoded;
286
if (soapMethod.use ==
SoapBindingUse
.Default) {
289
if (soapMethod.use ==
SoapBindingUse
.Default)
290
soapMethod.use =
SoapBindingUse
.Literal;
329
if (soapMethod.rpc && soapMethod.use !=
SoapBindingUse
.Encoded)
529
static XmlMembersMapping ImportMembersMapping(XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, bool serviceDefaultIsEncoded, bool rpc,
SoapBindingUse
use, SoapParameterStyle paramStyle,
532
if (use ==
SoapBindingUse
.Encoded) {
System\Web\Services\Protocols\SoapRpcMethodAttribute.cs (3)
25
SoapBindingUse
use =
SoapBindingUse
.Encoded;
110
public
SoapBindingUse
Use {
System\Web\Services\Protocols\SoapRpcServiceAttribute.cs (3)
22
SoapBindingUse
use =
SoapBindingUse
.Encoded;
42
public
SoapBindingUse
Use {
System\Web\Services\Protocols\SoapServerMethod.cs (2)
38
internal
SoapBindingUse
use;
166
public
SoapBindingUse
BindingUse {
System\Web\Services\Protocols\SoapServerProtocol.cs (4)
611
string missingHeader = new SoapHeaderHandling().ReadHeaders(reader, serverMethod.inHeaderSerializer, message.Headers, serverMethod.inHeaderMappings, SoapHeaderDirection.In, helper.EnvelopeNs, serverMethod.use ==
SoapBindingUse
.Encoded ? helper.EncodingNs : null, checkRequiredHeaders);
625
bool isEncodedSoap = serverMethod.use ==
SoapBindingUse
.Encoded;
627
if (Tracing.On) Tracing.Enter(Tracing.TraceId(Res.TraceReadRequest), caller, new TraceMethod(serverMethod.parameterSerializer, "Deserialize", reader, serverMethod.use ==
SoapBindingUse
.Encoded ? helper.EncodingNs : null));
666
bool isEncoded = serverMethod.use ==
SoapBindingUse
.Encoded;