private void MessageContractStreamMutipleOperationsService()
        {
            var    clientProxy = GetProxy <IMessageContractStreamMutipleOperationsService>();
            Stream input       = ClientHelper.GetStreamWithStringBytes(TestString);
            MessageContractStreamOneIntHeader message = new MessageContractStreamOneIntHeader();

            message.input = input;
            MessageContractStreamTwoHeaders output = clientProxy.Operation2(message);
            string response = ClientHelper.GetStringFrom(output.Stream);

            MessageContractStreamOneStringHeader message2 = new MessageContractStreamOneStringHeader();

            message2.input = ClientHelper.GetStreamWithStringBytes(TestString);
            MessageContractStreamNoHeader output2 = clientProxy.Operation1(message2);
            string response2 = ClientHelper.GetStringFrom(output2);

            Assert.Equal(TestString, response);
            Assert.Equal(TestString, response2);
        }
Esempio n. 2
0
        public MessageContractStreamNoHeader Operation1(MessageContractStreamOneStringHeader input)
        {
            string value = ServiceHelper.GetStringFrom(input.input);

            return(ServiceHelper.GetMessageContractStreamNoHeader(value));
        }