public virtual WsMessage SetNestedData(WsMessage request)
        {
            // Build request object
            SetNestedDataDataContractSerializer reqDcs;

            reqDcs           = new SetNestedDataDataContractSerializer("SetNestedData", "http://tempuri.org/");
            reqDcs.BodyParts = request.BodyParts;
            SetNestedData req;

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

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

            resp = m_service.SetNestedData(req);

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

            // Create response serializer
            SetNestedDataResponseDataContractSerializer respDcs;

            respDcs             = new SetNestedDataResponseDataContractSerializer("SetNestedDataResponse", "http://tempuri.org/");
            response.Serializer = respDcs;

            // Indicate that message is Mtom encoded
            response.BodyParts = new WsMtomBodyParts();
            return(response);
        }
        public virtual WsMessage SetNestedData(WsMessage request)
        {
            // Build request object
            SetNestedDataDataContractSerializer reqDcs;
            reqDcs = new SetNestedDataDataContractSerializer("SetNestedData", "http://tempuri.org/");
            reqDcs.BodyParts = request.BodyParts;
            SetNestedData req;
            req = ((SetNestedData)(reqDcs.ReadObject(request.Reader)));

            // Create response object
            // Call service operation to process request and return response.
            SetNestedDataResponse resp;
            resp = m_service.SetNestedData(req);

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

            // Create response serializer
            SetNestedDataResponseDataContractSerializer respDcs;
            respDcs = new SetNestedDataResponseDataContractSerializer("SetNestedDataResponse", "http://tempuri.org/");
            response.Serializer = respDcs;

            // Indicate that message is Mtom encoded
            response.BodyParts = new WsMtomBodyParts();
            return response;
        }