internal static SoapServerProtocolHelper GetHelper(SoapServerProtocol protocol, string envelopeNs)
 {
     if (envelopeNs == "http://schemas.xmlsoap.org/soap/envelope/")
     {
         return(new Soap11ServerProtocolHelper(protocol, envelopeNs));
     }
     if (envelopeNs == "http://www.w3.org/2003/05/soap-envelope")
     {
         return(new Soap12ServerProtocolHelper(protocol, envelopeNs));
     }
     return(new Soap11ServerProtocolHelper(protocol, envelopeNs));
 }
 internal static SoapServerProtocolHelper GetHelper(SoapServerProtocol protocol, string envelopeNs)
 {
     if (envelopeNs == "http://schemas.xmlsoap.org/soap/envelope/")
     {
         return new Soap11ServerProtocolHelper(protocol, envelopeNs);
     }
     if (envelopeNs == "http://www.w3.org/2003/05/soap-envelope")
     {
         return new Soap12ServerProtocolHelper(protocol, envelopeNs);
     }
     return new Soap11ServerProtocolHelper(protocol, envelopeNs);
 }
Exemple #3
0
        internal static SoapServerProtocolHelper GetHelper(SoapServerProtocol protocol)
        {
            SoapServerMessage message   = protocol.Message;
            long          savedPosition = message.Stream.Position;
            XmlTextReader reader        = GetXmlTextReader(message.ContentType, message.Stream);

            reader.MoveToContent();
            string requestNamespace         = reader.NamespaceURI;
            SoapServerProtocolHelper helper = GetHelper(protocol, requestNamespace);

            message.Stream.Position = savedPosition;
            return(helper);
        }
Exemple #4
0
        internal static SoapServerProtocolHelper GetHelper(SoapServerProtocol protocol, string envelopeNs)
        {
            SoapServerProtocolHelper helper;

            if (envelopeNs == Soap.Namespace)
            {
                helper = new Soap11ServerProtocolHelper(protocol, envelopeNs);
            }
            else if (envelopeNs == Soap12.Namespace)
            {
                helper = new Soap12ServerProtocolHelper(protocol, envelopeNs);
            }
            else
            {
                // just return a soap 1.1 helper -- the fact that the requestNs doesn't match will signal a version mismatch
                helper = new Soap11ServerProtocolHelper(protocol, envelopeNs);
            }
            return(helper);
        }
 internal static SoapServerProtocolHelper GetHelper(SoapServerProtocol protocol, string envelopeNs) {
     SoapServerProtocolHelper helper;
     if (envelopeNs == Soap.Namespace)
         helper = new Soap11ServerProtocolHelper(protocol, envelopeNs);
     else if (envelopeNs == Soap12.Namespace)
         helper = new Soap12ServerProtocolHelper(protocol, envelopeNs);
     else
         // just return a soap 1.1 helper -- the fact that the requestNs doesn't match will signal a version mismatch
         helper = new Soap11ServerProtocolHelper(protocol, envelopeNs);
     return helper;
 }
 protected SoapServerProtocolHelper(SoapServerProtocol protocol, string requestNamespace) {
     this.protocol = protocol;
     this.requestNamespace = requestNamespace;
 }
 protected SoapServerProtocolHelper(SoapServerProtocol protocol) {
     this.protocol = protocol;
 }
 internal Soap11ServerProtocolHelper(SoapServerProtocol protocol, string requestNamespace) : base(protocol, requestNamespace)
 {
 }
 internal Soap11ServerProtocolHelper(SoapServerProtocol protocol) : base(protocol)
 {
 }
 internal Soap12ServerProtocolHelper(SoapServerProtocol protocol, string requestNamespace) : base(protocol, requestNamespace) {
 }
 internal Soap12ServerProtocolHelper(SoapServerProtocol protocol) : base(protocol) {
 }
 internal SoapServerMessage(SoapServerProtocol protocol) {
     this.protocol = protocol;
 }
Exemple #13
0
 protected SoapServerProtocolHelper(SoapServerProtocol protocol, string requestNamespace)
 {
     this.protocol         = protocol;
     this.requestNamespace = requestNamespace;
 }
Exemple #14
0
 protected SoapServerProtocolHelper(SoapServerProtocol protocol)
 {
     this.protocol = protocol;
 }
 internal SoapServerMessage(SoapServerProtocol protocol)
 {
     this.protocol = protocol;
 }