public virtual WsMessage isValid(WsMessage request)
        {
            // Build request object
            isValidDataContractSerializer reqDcs;

            reqDcs = new isValidDataContractSerializer("isValid", "http://tempuri.org/");
            isValid req;

            req = ((isValid)(reqDcs.ReadObject(request.Reader)));
            request.Reader.Dispose();
            request.Reader = null;

            // Create response object
            // Call service operation to process request and return response.
            isValidResponse resp;

            resp = m_service.isValid(req);

            // Create response header
            WsWsaHeader respHeader = new WsWsaHeader("http://tempuri.org/IService1/isValidResponse", request.Header.MessageID, m_version.AnonymousUri, null, null, null);
            WsMessage   response   = new WsMessage(respHeader, resp, WsPrefix.Wsdp);

            // Create response serializer
            isValidResponseDataContractSerializer respDcs;

            respDcs             = new isValidResponseDataContractSerializer("isValidResponse", "http://tempuri.org/");
            response.Serializer = respDcs;
            return(response);
        }
        public virtual isValidResponse isValid(isValid req)
        {
            // Create request header
            String action;

            action = "http://tempuri.org/IService1/isValid";
            WsWsaHeader header;

            header = new WsWsaHeader(action, null, EndpointAddress, m_version.AnonymousUri, null, null);
            WsMessage request = new WsMessage(header, req, WsPrefix.None);

            // Create request serializer
            isValidDataContractSerializer reqDcs;

            reqDcs             = new isValidDataContractSerializer("isValid", "http://tempuri.org/");
            request.Serializer = reqDcs;
            request.Method     = "isValid";


            // Send service request
            m_requestChannel.Open();
            WsMessage response = m_requestChannel.Request(request);

            m_requestChannel.Close();

            // Process response
            isValidResponseDataContractSerializer respDcs;

            respDcs = new isValidResponseDataContractSerializer("isValidResponse", "http://tempuri.org/");
            isValidResponse resp;

            resp = ((isValidResponse)(respDcs.ReadObject(response.Reader)));
            response.Reader.Dispose();
            response.Reader = null;
            return(resp);
        }