コード例 #1
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);
        }
コード例 #2
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;
 }