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