57 references to SoapHeaderDirection
System.Web.Services (57)
System\Web\Services\Description\SoapProtocolImporter.cs (11)
244
internal
SoapHeaderDirection
direction;
543
SoapHeaderDirection
direction;
546
direction =
SoapHeaderDirection
.In;
550
direction =
SoapHeaderDirection
.Out;
608
localHeader.direction =
SoapHeaderDirection
.InOut;
615
if (soapHeader.direction ==
SoapHeaderDirection
.Out) {
616
AddMetadataProperty("Direction", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(
SoapHeaderDirection
).FullName),
SoapHeaderDirection
.Out.ToString()));
618
else if (soapHeader.direction ==
SoapHeaderDirection
.InOut) {
619
AddMetadataProperty("Direction", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(
SoapHeaderDirection
).FullName),
SoapHeaderDirection
.InOut.ToString()));
System\Web\Services\Description\SoapProtocolReflector.cs (7)
108
if ((soapHeader.direction &
SoapHeaderDirection
.In) != 0) {
110
if (soapHeader.direction !=
SoapHeaderDirection
.In)
130
if ((soapHeader.direction &
SoapHeaderDirection
.In) != 0)
132
if ((soapHeader.direction &
SoapHeaderDirection
.Out) != 0)
135
if ((soapHeader.direction &
SoapHeaderDirection
.Fault) != 0) {
137
throw new InvalidOperationException(Res.GetString(Res.BPConformanceHeaderFault, soapMethod.methodInfo.ToString(), soapMethod.methodInfo.DeclaringType.FullName, "Direction", typeof(
SoapHeaderDirection
).Name,
SoapHeaderDirection
.Fault.ToString()));
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 (9)
101
if ((mapping.direction &
SoapHeaderDirection
.In) != 0)
103
if ((mapping.direction & (
SoapHeaderDirection
.Out |
SoapHeaderDirection
.Fault)) != 0)
525
SoapHeaderHandling.GetHeaderMembers(message.Headers, this, method.inHeaderMappings,
SoapHeaderDirection
.In, true);
568
SoapHeaderHandling.WriteHeaders(writer, method.inHeaderSerializer, message.Headers, method.inHeaderMappings,
SoapHeaderDirection
.In, isEncoded, clientType.serviceNamespace, clientType.serviceDefaultIsEncoded, envelopeNs);
661
headerHandler.ReadHeaders(reader, method.outHeaderSerializer, message.Headers, method.outHeaderMappings,
SoapHeaderDirection
.Out |
SoapHeaderDirection
.Fault, envelopeNs, method.use == SoapBindingUse.Encoded ? encodingNs : null, false);
702
SoapHeaderHandling.SetHeaderMembers(message.Headers, this, method.outHeaderMappings,
SoapHeaderDirection
.Out |
SoapHeaderDirection
.Fault, true);
System\Web\Services\Protocols\SoapHeader.cs (7)
167
internal
SoapHeaderDirection
direction;
188
public
SoapHeaderDirection
Direction {
226
public string ReadHeaders(XmlReader reader, XmlSerializer serializer, SoapHeaderCollection headers, SoapHeaderMapping[] mappings,
SoapHeaderDirection
direction, string envelopeNS, string encodingStyle, bool checkRequiredHeaders) {
291
public static void WriteHeaders(XmlWriter writer, XmlSerializer serializer, SoapHeaderCollection headers, SoapHeaderMapping[] mappings,
SoapHeaderDirection
direction, bool isEncoded, string defaultNS, bool serviceDefaultIsEncoded, string envelopeNS) {
390
public static void SetHeaderMembers(SoapHeaderCollection headers, object target, SoapHeaderMapping[] mappings,
SoapHeaderDirection
direction, bool client) {
437
public static void GetHeaderMembers(SoapHeaderCollection headers, object target, SoapHeaderMapping[] mappings,
SoapHeaderDirection
direction, bool client) {
466
static int FindMapping(SoapHeaderMapping[] mappings, SoapHeader header,
SoapHeaderDirection
direction) {
System\Web\Services\Protocols\SoapHeaderAttribute.cs (3)
24
SoapHeaderDirection
direction =
SoapHeaderDirection
.In;
48
public
SoapHeaderDirection
Direction {
System\Web\Services\Protocols\SoapReflector.cs (9)
21
internal
SoapHeaderDirection
direction;
473
SoapHeaderDirection
direction = headerAttribute.Direction;
474
if (soapMethod.oneWay && (direction & (
SoapHeaderDirection
.Out |
SoapHeaderDirection
.Fault)) != 0) throw HeaderException(headerAttribute.MemberName, methodInfo.DeclaringType, Res.WebHeaderOneWayOut);
476
SoapHeaderDirection
prevDirection = (
SoapHeaderDirection
) headerTypes[soapHeader.headerType];
499
if ((direction &
SoapHeaderDirection
.In) != 0)
501
if ((direction & (
SoapHeaderDirection
.Out |
SoapHeaderDirection
.Fault)) != 0)
System\Web\Services\Protocols\SoapServerMethod.cs (2)
226
if (mapping.direction ==
SoapHeaderDirection
.In)
228
else if (mapping.direction ==
SoapHeaderDirection
.Out)
System\Web\Services\Protocols\SoapServerProtocol.cs (7)
153
if (mapping.direction ==
SoapHeaderDirection
.In)
155
else if (mapping.direction ==
SoapHeaderDirection
.Out)
496
SoapHeaderHandling.SetHeaderMembers(message.Headers, this.Target, serverMethod.inHeaderMappings,
SoapHeaderDirection
.In, false);
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);
669
SoapHeaderHandling.GetHeaderMembers(message.Headers, this.Target, serverMethod.outHeaderMappings,
SoapHeaderDirection
.Out, false);
702
SoapHeaderHandling.WriteHeaders(writer, serverMethod.outHeaderSerializer, message.Headers, serverMethod.outHeaderMappings,
SoapHeaderDirection
.Out, isEncoded, serverType.serviceNamespace, serverType.serviceDefaultIsEncoded, helper.EnvelopeNs);
725
SoapHeaderHandling.GetHeaderMembers(message.Headers, this.Target, serverMethod.outHeaderMappings,
SoapHeaderDirection
.Fault, false);