Example #1
0
        public void ConstructorHttpGet()
        {
            SoapServerType st = new SoapServerType(typeof(EdaInterface), WebServiceProtocols.HttpGet);

            // I wonder if this property makes sense here ...
            Assert.IsTrue(st.ServiceRoutingOnSoapAction, "#1");
        }
Example #2
0
        public void NamedServiceBinding()
        {
            SoapServerType sst = new SoapServerType(typeof(EdaInterface), WebServiceProtocols.HttpSoap);

            new ServerType(typeof(EdaInterface));

            SoapServerMethod m = sst.GetMethod("urn:localBinding:local:LocalBindingMethod");

            Assert.IsNotNull(m, "#1");
            m = sst.GetMethod("somethingFoo");
            Assert.IsNull(m, "#2");

            MethodInfo mi = typeof(EdaInterface).GetMethod("BindingMethod");

            Assert.IsNotNull("#3-1");
            m = sst.GetMethod(mi);
            // ... so, MethodInfo does not work as a key here.
            Assert.IsNull(m, "#3-2");
        }
Example #3
0
        public void GetMethodNullKey()
        {
            SoapServerType sst = new SoapServerType(typeof(EdaInterface), WebServiceProtocols.HttpSoap);

            sst.GetMethod(null);
        }