1 write to helper
System.Web.Services (1)
System\Web\Services\Protocols\SoapServerProtocol.cs (1)
511
this.
helper
= helper;
34 references to helper
System.Web.Services (34)
System\Web\Services\Protocols\SoapServerProtocol.cs (34)
374
if (
helper
.RequestNamespace != null)
375
SetHelper(SoapServerProtocolHelper.GetHelper(this,
helper
.RequestNamespace));
430
return
helper
.RouteRequest();
538
if (
helper
.RequestNamespace == null) return;
550
if (
helper
.RequestNamespace !=
helper
.EnvelopeNs) { // unknown envelope ns -- version mismatch
552
string requestNamespace =
helper
.RequestNamespace;
557
throw new SoapException(Res.GetString(Res.WebInvalidEnvelopeNamespace, requestNamespace,
helper
.EnvelopeNs), SoapException.VersionMismatchFaultCode);
559
else if (!IsSupported(
helper
.Protocol)) { // known envelope ns but we don't support this version -- version mismatch
561
string requestNamespace =
helper
.RequestNamespace;
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),
598
if (!reader.IsStartElement(Soap.Element.Envelope,
helper
.EnvelopeNs))
606
reader.ReadStartElement(Soap.Element.Envelope,
helper
.EnvelopeNs);
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);
618
if (!reader.IsStartElement(Soap.Element.Body,
helper
.EnvelopeNs))
621
reader.ReadStartElement(Soap.Element.Body,
helper
.EnvelopeNs);
627
if (Tracing.On) Tracing.Enter(Tracing.TraceId(Res.TraceReadRequest), caller, new TraceMethod(serverMethod.parameterSerializer, "Deserialize", reader, serverMethod.use == SoapBindingUse.Encoded ?
helper
.EncodingNs : null));
635
values = (object[])serverMethod.parameterSerializer.Deserialize(reader, isEncodedSoap ?
helper
.EncodingNs : null);
677
message.ContentType = ContentType.Compose(
helper
.HttpContentType, Encoding.UTF8);
690
writer.WriteStartElement("soap", Soap.Element.Envelope,
helper
.EnvelopeNs);
691
writer.WriteAttributeString("xmlns", "soap", null,
helper
.EnvelopeNs);
693
writer.WriteAttributeString("xmlns", "soapenc", null,
helper
.EncodingNs);
702
SoapHeaderHandling.WriteHeaders(writer, serverMethod.outHeaderSerializer, message.Headers, serverMethod.outHeaderMappings, SoapHeaderDirection.Out, isEncoded, serverType.serviceNamespace, serverType.serviceDefaultIsEncoded,
helper
.EnvelopeNs);
703
writer.WriteStartElement(Soap.Element.Body,
helper
.EnvelopeNs);
705
writer.WriteAttributeString("soap", Soap.Attribute.EncodingStyle, null,
helper
.EncodingNs);
708
if (Tracing.On) Tracing.Enter(Tracing.TraceId(Res.TraceWriteResponse), caller, new TraceMethod(serverMethod.returnSerializer, "Serialize", writer, returnValues, null, isEncoded ?
helper
.EncodingNs : null));
709
serverMethod.returnSerializer.Serialize(writer, returnValues, null, isEncoded ?
helper
.EncodingNs : null);
730
else if (serverMethod != null && serverMethod.rpc &&
helper
.Version == SoapProtocolVersion.Soap12 && e is ArgumentException)
745
HttpStatusCode statusCode =
helper
.SetResponseErrorCode(Response, soapException);
765
message.ContentType = ContentType.Compose(
helper
.HttpContentType, Encoding.UTF8);
792
helper
.WriteFault(writer, message.Exception, statusCode);