1 write to message
System.Web.Services (1)
System\Web\Services\Protocols\SoapServerProtocol.cs (1)
306
message
= new SoapServerMessage(this);
83 references to message
System.Web.Services (83)
System\Web\Services\Protocols\SoapServerProtocol.cs (83)
327
message
.highPriConfigExtensions = SoapMessage.InitializeExtensions(serverType.HighPriExtensions, serverType.HighPriExtensionInitializers);
331
message
.highPriConfigExtensions = ModifyInitializedExtensions(PriorityGroup.High,
message
.highPriConfigExtensions);
334
message
.SetStream(Request.InputStream);
343
message
.InitExtensionStreamChain(
message
.highPriConfigExtensions);
344
message
.SetStage(SoapMessageStage.BeforeDeserialize);
345
message
.ContentType = Request.ContentType;
346
message
.ContentEncoding = Request.Headers[ContentType.ContentEncoding];
347
message
.RunExtensions(
message
.highPriConfigExtensions, false);
348
extensionException =
message
.Exception;
359
message
.allExtensions =
message
.highPriConfigExtensions;
364
this.serverMethod = RouteRequest(
message
);
387
message
.otherExtensions = SoapMessage.InitializeExtensions(otherReflectedExtensions, otherInitializers);
391
message
.otherExtensions = ModifyInitializedExtensions(PriorityGroup.Low,
message
.otherExtensions);
392
message
.allExtensions = (SoapExtension[]) CombineExtensionsHelper(
message
.highPriConfigExtensions,
message
.otherExtensions, typeof(SoapExtension));
467
get { return
message
; }
493
message
.SetStage(SoapMessageStage.AfterDeserialize);
495
message
.RunExtensions(
message
.allExtensions, true);
496
SoapHeaderHandling.SetHeaderMembers(
message
.Headers, this.Target, serverMethod.inHeaderMappings, SoapHeaderDirection.In, false);
569
message
.InitExtensionStreamChain(
message
.otherExtensions);
570
message
.RunExtensions(
message
.otherExtensions, true);
573
if (!ContentType.IsSoap(
message
.ContentType))
574
throw new SoapException(Res.GetString(Res.WebRequestContent,
message
.ContentType, helper.HttpContentType),
590
if (version == SoapProtocolVersion.Soap11 && !ContentType.MatchesBase(
message
.ContentType, helper.HttpContentType))
591
throw new SoapException(Res.GetString(Res.WebRequestContent,
message
.ContentType, helper.HttpContentType),
594
if (
message
.Exception != null) {
595
throw
message
.Exception;
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);
648
message
.SetParameterValues(values);
667
SoapHeaderHandling.EnsureHeadersUnderstood(
message
.Headers);
668
message
.Headers.Clear();
669
SoapHeaderHandling.GetHeaderMembers(
message
.Headers, this.Target, serverMethod.outHeaderMappings, SoapHeaderDirection.Out, false);
671
if (
message
.allExtensions != null)
672
message
.SetExtensionStream(new SoapExtensionStream());
674
message
.InitExtensionStreamChain(
message
.allExtensions);
676
message
.SetStage(SoapMessageStage.BeforeSerialize);
677
message
.ContentType = ContentType.Compose(helper.HttpContentType, Encoding.UTF8);
678
message
.SetParameterValues(returnValues);
679
message
.RunExtensions(
message
.allExtensions, true);
680
message
.SetStream(outputStream);
681
Response.ContentType =
message
.ContentType;
682
if (
message
.ContentEncoding != null &&
message
.ContentEncoding.Length > 0)
683
Response.AppendHeader(ContentType.ContentEncoding,
message
.ContentEncoding);
685
XmlWriter writer = GetWriterForMessage(
message
, 1024);
702
SoapHeaderHandling.WriteHeaders(writer, serverMethod.outHeaderSerializer,
message
.Headers, serverMethod.outHeaderMappings, SoapHeaderDirection.Out, isEncoded, serverType.serviceNamespace, serverType.serviceDefaultIsEncoded, helper.EnvelopeNs);
716
message
.SetStage(SoapMessageStage.AfterSerialize);
717
message
.RunExtensions(
message
.allExtensions, true);
721
if (
message
== null) return false;
723
message
.Headers.Clear();
725
SoapHeaderHandling.GetHeaderMembers(
message
.Headers, this.Target, serverMethod.outHeaderMappings, SoapHeaderDirection.Fault, false);
750
if (
message
.allExtensions != null)
751
message
.SetExtensionStream(extensionStream);
754
message
.InitExtensionStreamChain(
message
.allExtensions);
764
message
.SetStage(SoapMessageStage.BeforeSerialize);
765
message
.ContentType = ContentType.Compose(helper.HttpContentType, Encoding.UTF8);
766
message
.Exception = soapException;
770
message
.RunExtensions(
message
.allExtensions, false);
781
message
.SetStream(outputStream);
783
Response.ContentType =
message
.ContentType;
784
if (
message
.ContentEncoding != null &&
message
.ContentEncoding.Length > 0) {
785
Response.AppendHeader(ContentType.ContentEncoding,
message
.ContentEncoding);
788
XmlWriter writer = GetWriterForMessage(
message
, 512);
792
helper.WriteFault(writer,
message
.Exception, statusCode);
797
message
.SetStage(SoapMessageStage.AfterSerialize);
798
message
.RunExtensions(
message
.allExtensions, false);
816
sw.WriteLine(GenerateFaultString(
message
.Exception));