174 references to Soap
System.Web.Services (174)
System\Web\Services\Description\HttpProtocolImporter.cs (4)
115
return ((XmlSchemaComplexContentExtension)type.ContentModel.Content).BaseTypeName == new XmlQualifiedName(
Soap
.ArrayType,
Soap
.Encoding);
118
return ((XmlSchemaComplexContentRestriction)type.ContentModel.Content).BaseTypeName == new XmlQualifiedName(
Soap
.ArrayType,
Soap
.Encoding);
System\Web\Services\Description\HttpProtocolReflector.cs (2)
90
restriction.BaseTypeName = new XmlQualifiedName(
Soap
.ArrayType,
Soap
.Encoding);
System\Web\Services\Description\SchemaCompiler.cs (1)
48
AddImport(schema,
Soap
.Encoding);
System\Web\Services\Description\ServiceDescription.cs (9)
473
if (element.LocalName ==
Soap
.Element.Claim && element.NamespaceURI ==
Soap
.ConformanceClaim) {
474
if (
Soap
.BasicProfile1_1 == element.GetAttribute(
Soap
.Attribute.ConformsTo)) {
498
XmlElement claim = d.CreateElement(
Soap
.ClaimPrefix,
Soap
.Element.Claim,
Soap
.ConformanceClaim);
499
claim.SetAttribute(
Soap
.Attribute.ConformsTo,
Soap
.BasicProfile1_1);
System\Web\Services\Description\ServiceDescriptionImporter.cs (1)
424
if (!allSchemas.Contains(
Soap
.Encoding)) {
System\Web\Services\Description\SoapProtocolImporter.cs (2)
1093
iStart = uriList.IndexOf(
Soap
.Encoding, iStart, StringComparison.Ordinal);
1096
int iEnd = iStart +
Soap
.Encoding.Length;
System\Web\Services\Description\SoapProtocolReflector.cs (2)
302
soapBodyBinding.Encoding =
Soap
.Encoding;
317
soapHeaderBinding.Encoding =
Soap
.Encoding;
System\Web\Services\Protocols\RuntimeUtils.cs (3)
81
if (ns ==
Soap
.XmlNamespace)
83
if (ns ==
Soap
.Encoding || ns ==
Soap
.Namespace)
System\Web\Services\Protocols\Soap11ServerProtocol.cs (30)
36
get { return
Soap
.Namespace; }
39
get { return
Soap
.Encoding; }
48
string methodUriString = ServerProtocol.Request.Headers[
Soap
.Action];
50
throw new SoapException(Res.GetString(Res.UnableToHandleRequestActionRequired0), new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace));
69
throw new SoapException(Res.GetString(Res.TheRootElementForTheRequestCouldNotBeDetermined0), new XmlQualifiedName(
Soap
.Code.Server,
Soap
.Namespace), e);
80
throw new SoapException(Res.GetString(Res.WebHttpHeader,
Soap
.Action, (string) methodKey), new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace));
82
throw new SoapException(Res.GetString(Res.TheRequestElementXmlnsWasNotRecognized2, ((XmlQualifiedName) methodKey).Name, ((XmlQualifiedName) methodKey).Namespace), new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace));
95
writer.WriteStartElement(
Soap
.Prefix,
Soap
.Element.Envelope,
Soap
.Namespace);
96
writer.WriteAttributeString("xmlns",
Soap
.Prefix, null,
Soap
.Namespace);
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);
102
SoapHeaderHandling.WriteUnknownHeaders(writer, message.Headers,
Soap
.Namespace);
103
writer.WriteStartElement(
Soap
.Element.Body,
Soap
.Namespace);
105
writer.WriteStartElement(
Soap
.Element.Fault,
Soap
.Namespace);
106
writer.WriteStartElement(
Soap
.Element.FaultCode, "");
113
writer.WriteStartElement(
Soap
.Element.FaultString, "");
115
writer.WriteAttributeString("xml",
Soap
.Attribute.Lang,
Soap
.XmlNamespace, soapException.Lang);
122
writer.WriteElementString(
Soap
.Element.FaultActor, "", actor);
131
writer.WriteStartElement(
Soap
.Element.FaultDetail, "");
146
if (code.Namespace ==
Soap
.Namespace) {
System\Web\Services\Protocols\Soap12ServerProtocol.cs (11)
114
writer.WriteStartElement(
Soap
.Prefix,
Soap
.Element.Envelope, Soap12.Namespace);
115
writer.WriteAttributeString("xmlns",
Soap
.Prefix, null, Soap12.Namespace);
123
writer.WriteStartElement(
Soap
.Element.Body, Soap12.Namespace);
125
writer.WriteStartElement(
Soap
.Element.Fault, Soap12.Namespace);
132
writer.WriteAttributeString("xml", "lang",
Soap
.XmlNamespace, Res.GetString(Res.XmlLang));
181
if (code.Namespace ==
Soap
.Namespace) {
182
if (code.Name ==
Soap
.Code.Server)
184
else if (code.Name ==
Soap
.Code.Client)
186
else if (code.Name ==
Soap
.Code.MustUnderstand)
188
else if (code.Name ==
Soap
.Code.VersionMismatch)
System\Web\Services\Protocols\SoapClientProtocol.cs (23)
486
return this.version == SoapProtocolVersion.Soap12 ? Soap12.Namespace :
Soap
.Namespace;
492
return this.version == SoapProtocolVersion.Soap12 ? Soap12.Encoding :
Soap
.Encoding;
534
if (this.version != SoapProtocolVersion.Soap12 && request.Headers[
Soap
.Action] == null) {
539
request.Headers.Add(
Soap
.Action, actionStringBuilder.ToString());
559
writer.WriteStartElement(
Soap
.Prefix,
Soap
.Element.Envelope, envelopeNs);
560
writer.WriteAttributeString("xmlns",
Soap
.Prefix, null, envelopeNs);
569
writer.WriteStartElement(
Soap
.Element.Body, envelopeNs);
571
writer.WriteAttributeString("soap",
Soap
.Attribute.EncodingStyle, null, encodingNs);
651
reader.ReadStartElement(
Soap
.Element.Envelope);
652
else if (reader.NamespaceURI ==
Soap
.Namespace)
653
reader.ReadStartElement(
Soap
.Element.Envelope,
Soap
.Namespace);
655
reader.ReadStartElement(
Soap
.Element.Envelope, Soap12.Namespace);
663
reader.ReadStartElement(
Soap
.Element.Body, envelopeNs);
665
if (reader.IsStartElement(
Soap
.Element.Fault, envelopeNs)) {
725
if (reader.NamespaceURI ==
Soap
.Namespace || reader.NamespaceURI == Soap12.Namespace || reader.NamespaceURI == null || reader.NamespaceURI.Length == 0) {
726
if (reader.LocalName ==
Soap
.Element.FaultCode || reader.LocalName == Soap12.Element.FaultCode) {
732
else if (reader.LocalName ==
Soap
.Element.FaultString) {
733
lang = reader.GetAttribute(
Soap
.Attribute.Lang,
Soap
.XmlNamespace);
757
else if (reader.LocalName ==
Soap
.Element.FaultActor || reader.LocalName == Soap12.Element.FaultNode) {
760
else if (reader.LocalName ==
Soap
.Element.FaultDetail || reader.LocalName == Soap12.Element.FaultDetail) {
System\Web\Services\Protocols\SoapException.cs (11)
42
public static readonly XmlQualifiedName ServerFaultCode = new XmlQualifiedName(
Soap
.Code.Server,
Soap
.Namespace);
47
public static readonly XmlQualifiedName ClientFaultCode = new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace);
52
public static readonly XmlQualifiedName VersionMismatchFaultCode = new XmlQualifiedName(
Soap
.Code.VersionMismatch,
Soap
.Namespace);
57
public static readonly XmlQualifiedName MustUnderstandFaultCode = new XmlQualifiedName(
Soap
.Code.MustUnderstand,
Soap
.Namespace);
64
public static readonly XmlQualifiedName DetailElementName = new XmlQualifiedName(
Soap
.Element.FaultDetail, "");
297
: new XmlQualifiedName(
Soap
.Code.Server,
Soap
.Namespace));
System\Web\Services\Protocols\SoapHeader.cs (8)
229
if (!reader.IsStartElement(
Soap
.Element.Header, envelopeNS)) {
293
writer.WriteStartElement(
Soap
.Element.Header, envelopeNS);
302
encodingStyle =
Soap
.Encoding;
379
writer.WriteStartElement(
Soap
.Element.Header, envelopeNS);
431
new XmlQualifiedName(
Soap
.Code.MustUnderstand,
Soap
.Namespace));
461
new XmlQualifiedName(
Soap
.Code.MustUnderstand,
Soap
.Namespace));
System\Web\Services\Protocols\SoapServerProtocol.cs (43)
168
throw new SoapException(Res.GetString(Res.TheMethodDoesNotHaveARequestElementEither1, serverMethod.methodInfo.Name), new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace));
177
throw new SoapException(Res.GetString(Res.TheMethodsAndUseTheSameSoapActionWhenTheService3, serverMethod.methodInfo.Name, duplicateMethod.methodInfo.Name, soapMethod.action), new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace));
188
throw new SoapException(Res.GetString(Res.TheMethodsAndUseTheSameRequestElementXmlns4, serverMethod.methodInfo.Name, duplicateMethod.methodInfo.Name, soapMethod.requestElementName.Name, soapMethod.requestElementName.Namespace), new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace));
368
throw new SoapException(Res.GetString(Res.UnableToHandleRequest0), new XmlQualifiedName(
Soap
.Code.Server,
Soap
.Namespace));
409
throw SoapException.Create(Version, Res.GetString(Res.WebConfigExtensionError), new XmlQualifiedName(
Soap
.Code.Server,
Soap
.Namespace), extensionException);
437
if (Request.Headers[
Soap
.Action] == null || ContentType.MatchesBase(Request.ContentType, ContentType.ApplicationSoap))
562
string expectedNamespace = IsSupported(WebServiceProtocols.HttpSoap) ?
Soap
.Namespace : Soap12.Namespace;
575
new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace), new SoapFaultSubCode(Soap12FaultCodes.UnsupportedMediaTypeFaultCode));
585
throw new SoapException(Res.GetString(Res.WebRequestUnableToRead), new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace), e);
592
new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace), new SoapFaultSubCode(Soap12FaultCodes.UnsupportedMediaTypeFaultCode));
598
if (!reader.IsStartElement(
Soap
.Element.Envelope, helper.EnvelopeNs))
606
reader.ReadStartElement(
Soap
.Element.Envelope, helper.EnvelopeNs);
615
new XmlQualifiedName(
Soap
.Code.MustUnderstand,
Soap
.Namespace));
618
if (!reader.IsStartElement(
Soap
.Element.Body, helper.EnvelopeNs))
621
reader.ReadStartElement(
Soap
.Element.Body, helper.EnvelopeNs);
659
throw new SoapException(Res.GetString(Res.WebRequestUnableToRead), new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace), e);
690
writer.WriteStartElement("soap",
Soap
.Element.Envelope, helper.EnvelopeNs);
703
writer.WriteStartElement(
Soap
.Element.Body, helper.EnvelopeNs);
705
writer.WriteAttributeString("soap",
Soap
.Attribute.EncodingStyle, null, helper.EncodingNs);
732
soapException = SoapException.Create(Version, Res.GetString(Res.WebRequestUnableToProcess), new XmlQualifiedName(
Soap
.Code.Client,
Soap
.Namespace), null, null, null, new SoapFaultSubCode(Soap12FaultCodes.RpcBadArgumentsFaultCode), e);
734
soapException = SoapException.Create(Version, Res.GetString(Res.WebRequestUnableToProcess), new XmlQualifiedName(
Soap
.Code.Server,
Soap
.Namespace), e);
809
extensionException = SoapException.Create(Version, Res.GetString(Res.WebExtensionError), new XmlQualifiedName(
Soap
.Code.Server,
Soap
.Namespace), ex);
836
upgradeElement.AppendChild(CreateUpgradeEnvelope(doc,
Soap
.Prefix,
Soap
.Namespace));
850
qnameAttr.Value = prefix + ":" +
Soap
.Element.Envelope;
922
if (envelopeNs ==
Soap
.Namespace)
984
if (!reader.IsStartElement(
Soap
.Element.Envelope, requestNamespace))
990
reader.ReadStartElement(
Soap
.Element.Envelope, requestNamespace);
993
while (!reader.EOF && !reader.IsStartElement(
Soap
.Element.Body, requestNamespace))
1005
reader.ReadStartElement(
Soap
.Element.Body, requestNamespace);
System\Web\Services\Protocols\SoapUnknownHeader.cs (24)
36
element.SetAttribute(
Soap
.Attribute.MustUnderstand, Soap12.Namespace, "1");
38
element.RemoveAttribute(
Soap
.Attribute.MustUnderstand,
Soap
.Namespace);
43
element.RemoveAttribute(
Soap
.Attribute.Actor,
Soap
.Namespace);
49
element.SetAttribute(
Soap
.Attribute.MustUnderstand,
Soap
.Namespace, "1");
51
element.RemoveAttribute(
Soap
.Attribute.MustUnderstand, Soap12.Namespace);
54
element.SetAttribute(
Soap
.Attribute.Actor,
Soap
.Namespace, actor);
76
string elementMustUnderstand = GetElementAttribute(
Soap
.Attribute.MustUnderstand,
Soap
.Namespace, element);
78
elementMustUnderstand = GetElementAttribute(
Soap
.Attribute.MustUnderstand, Soap12.Namespace, element);
98
element.SetAttribute(
Soap
.Attribute.MustUnderstand,
Soap
.Namespace, "1");
100
element.RemoveAttribute(
Soap
.Attribute.MustUnderstand,
Soap
.Namespace);
102
element.RemoveAttribute(
Soap
.Attribute.MustUnderstand, Soap12.Namespace);
111
string elementActor = GetElementAttribute(
Soap
.Attribute.Actor,
Soap
.Namespace, element);
123
element.RemoveAttribute(
Soap
.Attribute.Actor,
Soap
.Namespace);
125
element.SetAttribute(
Soap
.Attribute.Actor,
Soap
.Namespace, value);