Exemplo n.º 1
0
        private string Variation_Service_DerivedReNameMethod()
        {
            // Create the proxy
            ClientContract.ISanityAParentB_857419_ContractDerived clientProxy = GetProxy <ClientContract.ISanityAParentB_857419_ContractDerived>();
            // Send the two way message
            _output.WriteLine("Testing [Variation_Service_DerivedReNameMethod]");
            string response = clientProxy.Method("derived");

            _output.WriteLine($"Testing [Variation_Service_DerivedReNameMethod] returned <{response}>");
            return(response);
        }
Exemplo n.º 2
0
        private string Variation_Service_DerivedOneWay(string clientString)
        {
            // Create the proxy
            ClientContract.ISanityAParentB_857419_ContractDerived clientProxy = GetProxy <ClientContract.ISanityAParentB_857419_ContractDerived>();
            // Send the two way message
            _output.WriteLine("Testing [Variation_Service_DerivedOneWay]");
            clientProxy.OneWayMethod(clientString);
            string response = clientString;

            _output.WriteLine($"Testing [Variation_Service_DerivedOneWay] returned <{response}>");
            return(response);
        }
Exemplo n.º 3
0
        private string Variation_Service_DerivedCallingBaseDataContractMethod(string clientString)
        {
            // Create the proxy
            ClientContract.ISanityAParentB_857419_ContractDerived clientProxy = GetProxy <ClientContract.ISanityAParentB_857419_ContractDerived>();

            // Send the two way message
            _output.WriteLine("Testing [Variation_Service_DerivedTwoWayMethod]");

            //Form the DataContract input
            var dataObj = new ClientContract.MyBaseDataType
            {
                data = clientString
            };

            var    result   = (MyBaseDataType)clientProxy.DataContractMethod(dataObj);
            string response = result.data;

            _output.WriteLine($"Testing [Variation_Service_DerivedTwoWayMethod] returned <{response}>");
            return(response);
        }