Esempio n. 1
0
        /// <summary>
        /// Invokes the TestStackEx service.
        /// </summary>
        public IServiceResponse TestStackEx(IServiceRequest incoming)
        {
            TestStackExResponse response = null;

            TestStackExRequest request = (TestStackExRequest)incoming;

            CompositeTestType output = null;

            response = new TestStackExResponse();

            response.ResponseHeader = ServerInstance.TestStackEx(
               request.RequestHeader,
               request.TestId,
               request.Iteration,
               request.Input,
               out output);

            response.Output = output;

            return response;
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes the message with the body.
 /// </summary>
 public TestStackExResponseMessage(TestStackExResponse TestStackExResponse)
 {
     this.TestStackExResponse = TestStackExResponse;
 }
Esempio n. 3
0
        /// <summary>
        /// Initializes the message with a service fault.
        /// </summary>
        public TestStackExResponseMessage(ServiceFault ServiceFault)
        {
            this.TestStackExResponse = new TestStackExResponse();

            if (ServiceFault != null)
            {
                this.TestStackExResponse.ResponseHeader = ServiceFault.ResponseHeader;
            }
        }
Esempio n. 4
0
        /// <summary cref="IServiceMessage.CreateResponse" />
        public object CreateResponse(IServiceResponse response)
        {
            TestStackExResponse body = response as TestStackExResponse;

            if (body == null)
            {
                body = new TestStackExResponse();
                body.ResponseHeader = ((ServiceFault)response).ResponseHeader;
            }

            return new TestStackExResponseMessage(body);
        }