protected void Invoke <TREQUEST>(CFInvokeInfo info, TREQUEST request)

        {
            CFContractSerializerInfo serializerInfo = new CFContractSerializerInfo();

            serializerInfo.MessageContractType = typeof(TREQUEST);
            serializerInfo.IsWrapped           = info.RequestIsWrapped;
            serializerInfo.ExtraTypes          = info.ExtraTypes;
            serializerInfo.UseEncoded          = info.UseEncoded;
            System.ServiceModel.Channels.Message msg = System.ServiceModel.Channels.Message.CreateMessage(this.binding.MessageVersion, info.Action, request, GetContractSerializer(serializerInfo));
            if (info.IsOneWay)
            {
                if ((this._outputChannelFactory != null))
                {
                    this.postOneWayMessage(msg);
                }
                else
                {
                    this.getReply(msg);
                }
            }
            else
            {
                this.processReply(this.getReply(msg));
            }
        }
Exemple #2
0
        protected TRESPONSE Invoke <TREQUEST, TRESPONSE>(CFInvokeInfo info, TREQUEST request)
        {
            CFContractSerializerInfo serializerInfo = new CFContractSerializerInfo();

            serializerInfo.MessageContractType = typeof(TREQUEST);
            serializerInfo.IsWrapped           = info.RequestIsWrapped;
            serializerInfo.ExtraTypes          = info.ExtraTypes;
            serializerInfo.UseEncoded          = info.UseEncoded;
            System.ServiceModel.Channels.Message msg = System.ServiceModel.Channels.Message.CreateMessage(this.binding.MessageVersion, info.Action, request, GetContractSerializer(serializerInfo));
            return(this.getResult <TRESPONSE>(this.getReply(msg), info));
        }
    private GetMobileResultResponse GetMobileResult(GetMobileResultRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IDarPoolingMobile/GetMobileResult";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IDarPoolingMobile/GetMobileResultResponse";
        info.ResponseIsWrapped = true;
        GetMobileResultResponse retVal = base.Invoke <GetMobileResultRequest, GetMobileResultResponse>(info, request);

        return(retVal);
    }
    private AuthenticateUserResponse AuthenticateUser(AuthenticateUserRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IStockService/AuthenticateUser";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IStockService/AuthenticateUserResponse";
        info.ResponseIsWrapped = true;
        AuthenticateUserResponse retVal = base.Invoke <AuthenticateUserRequest, AuthenticateUserResponse>(info, request);

        return(retVal);
    }
    private loginResponse1 login(loginRequest1 request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IBarcode/login";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IBarcode/loginResponse";
        info.ResponseIsWrapped = true;
        loginResponse1 retVal = base.Invoke <loginRequest1, loginResponse1>(info, request);

        return(retVal);
    }
Exemple #6
0
    private GetHeshesResponse GetHeshes(GetHeshesRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IUpdater/GetHeshes";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IUpdater/GetHeshesResponse";
        info.ResponseIsWrapped = true;
        GetHeshesResponse retVal = base.Invoke <GetHeshesRequest, GetHeshesResponse>(info, request);

        return(retVal);
    }
        private AddStatisticsDataResponse AddStatisticsData(AddStatisticsDataRequest request)
        {
            CFInvokeInfo info = new CFInvokeInfo();

            info.Action            = "http://tempuri.org/IStatisticsDataRecollection/AddStatisticsData";
            info.RequestIsWrapped  = true;
            info.ReplyAction       = "http://tempuri.org/IStatisticsDataRecollection/AddStatisticsDataResponse";
            info.ResponseIsWrapped = true;
            AddStatisticsDataResponse retVal = base.Invoke <AddStatisticsDataRequest, AddStatisticsDataResponse>(info, request);

            return(retVal);
        }
Exemple #8
0
    private RunScalarResponse RunScalar(RunScalarRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IServiceBase/RunScalar";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IServiceBase/RunScalarResponse";
        info.ResponseIsWrapped = true;
        RunScalarResponse retVal = base.Invoke <RunScalarRequest, RunScalarResponse>(info, request);

        return(retVal);
    }
Exemple #9
0
    private getUnpackedShellsResponse1 getUnpackedShells(getUnpackedShellsRequest1 request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "";
        info.RequestIsWrapped  = false;
        info.ReplyAction       = "*";
        info.ResponseIsWrapped = false;
        getUnpackedShellsResponse1 retVal = base.Invoke <getUnpackedShellsRequest1, getUnpackedShellsResponse1>(info, request);

        return(retVal);
    }
Exemple #10
0
    private loginResponse1 login(loginRequest1 request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "";
        info.RequestIsWrapped  = false;
        info.ReplyAction       = "*";
        info.ResponseIsWrapped = false;
        loginResponse1 retVal = base.Invoke <loginRequest1, loginResponse1>(info, request);

        return(retVal);
    }
Exemple #11
0
    private ReceivePointsResponse ReceivePoints(ReceivePointsRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://www.japanese-coach.com/IKanjiService/ReceivePoints";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://www.japanese-coach.com/IKanjiService/ReceivePointsResponse";
        info.ResponseIsWrapped = true;
        ReceivePointsResponse retVal = base.Invoke <ReceivePointsRequest, ReceivePointsResponse>(info, request);

        return(retVal);
    }
Exemple #12
0
        private ValidateUserResponse ValidateUser(ValidateUserRequest request)
        {
            CFInvokeInfo info = new CFInvokeInfo();

            info.Action            = "http://tempuri.org/ISessionManager/ValidateUser";
            info.RequestIsWrapped  = true;
            info.ReplyAction       = "http://tempuri.org/ISessionManager/ValidateUserResponse";
            info.ResponseIsWrapped = true;
            ValidateUserResponse retVal = base.Invoke <ValidateUserRequest, ValidateUserResponse>(info, request);

            return(retVal);
        }
Exemple #13
0
        private UserLogOffResponse UserLogOff(UserLogOffRequest request)
        {
            CFInvokeInfo info = new CFInvokeInfo();

            info.Action            = "http://tempuri.org/ISessionManager/UserLogOff";
            info.RequestIsWrapped  = true;
            info.ReplyAction       = "http://tempuri.org/ISessionManager/UserLogOffResponse";
            info.ResponseIsWrapped = true;
            UserLogOffResponse retVal = base.Invoke <UserLogOffRequest, UserLogOffResponse>(info, request);

            return(retVal);
        }
Exemple #14
0
        private GetCustomerFromSessionResponse GetCustomerFromSession(GetCustomerFromSessionRequest request)
        {
            CFInvokeInfo info = new CFInvokeInfo();

            info.Action            = "http://tempuri.org/ISessionManager/GetCustomerFromSession";
            info.RequestIsWrapped  = true;
            info.ReplyAction       = "http://tempuri.org/ISessionManager/GetCustomerFromSessionResponse";
            info.ResponseIsWrapped = true;
            GetCustomerFromSessionResponse retVal = base.Invoke <GetCustomerFromSessionRequest, GetCustomerFromSessionResponse>(info, request);

            return(retVal);
        }
    private BookStockCountResponse BookStockCount(BookStockCountRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IStockService/BookStockCount";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IStockService/BookStockCountResponse";
        info.ResponseIsWrapped = true;
        BookStockCountResponse retVal = base.Invoke <BookStockCountRequest, BookStockCountResponse>(info, request);

        return(retVal);
    }
Exemple #16
0
    private GetDtSapResponse GetDtSap(GetDtSapRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IServiceBase/GetDtSap";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IServiceBase/GetDtSapResponse";
        info.ResponseIsWrapped = true;
        GetDtSapResponse retVal = base.Invoke <GetDtSapRequest, GetDtSapResponse>(info, request);

        return(retVal);
    }
Exemple #17
0
    private InsertResponse Insert(InsertRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IServiceBase/Insert";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IServiceBase/InsertResponse";
        info.ResponseIsWrapped = true;
        InsertResponse retVal = base.Invoke <InsertRequest, InsertResponse>(info, request);

        return(retVal);
    }
Exemple #18
0
    private packShellResponse1 packShell(packShellRequest1 request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "";
        info.RequestIsWrapped  = false;
        info.ReplyAction       = "*";
        info.ResponseIsWrapped = false;
        packShellResponse1 retVal = base.Invoke <packShellRequest1, packShellResponse1>(info, request);

        return(retVal);
    }
Exemple #19
0
    private SaveImageResponse SaveImage(SaveImageRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IServiceBase/SaveImage";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IServiceBase/SaveImageResponse";
        info.ResponseIsWrapped = true;
        SaveImageResponse retVal = base.Invoke <SaveImageRequest, SaveImageResponse>(info, request);

        return(retVal);
    }
Exemple #20
0
    private createShellResponse1 createShell(createShellRequest1 request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "";
        info.RequestIsWrapped  = false;
        info.ReplyAction       = "*";
        info.ResponseIsWrapped = false;
        createShellResponse1 retVal = base.Invoke <createShellRequest1, createShellResponse1>(info, request);

        return(retVal);
    }
Exemple #21
0
    private DownloadFileResponse DownloadFile(DownloadFileRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IUpdater/DownloadFile";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IUpdater/DownloadFileResponse";
        info.ResponseIsWrapped = true;
        DownloadFileResponse retVal = base.Invoke <DownloadFileRequest, DownloadFileResponse>(info, request);

        return(retVal);
    }
Exemple #22
0
    private finishSessionResponse finishSession(finishSessionRequest1 request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "";
        info.RequestIsWrapped  = false;
        info.ReplyAction       = "*";
        info.ResponseIsWrapped = false;
        finishSessionResponse retVal = base.Invoke <finishSessionRequest1, finishSessionResponse>(info, request);

        return(retVal);
    }
    private getUnpackedShellsResponse1 getUnpackedShells(getUnpackedShellsRequest1 request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IBarcode/getUnpackedShells";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IBarcode/getUnpackedShellsResponse";
        info.ResponseIsWrapped = true;
        getUnpackedShellsResponse1 retVal = base.Invoke <getUnpackedShellsRequest1, getUnpackedShellsResponse1>(info, request);

        return(retVal);
    }
Exemple #24
0
    private writeTagResponse writeTag(writeTagRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://www.hulisoft.com/RFIDService/IRFIDService/writeTag";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://www.hulisoft.com/RFIDService/IRFIDService/writeTagResponse";
        info.ResponseIsWrapped = true;
        writeTagResponse retVal = base.Invoke <writeTagRequest, writeTagResponse>(info, request);

        return(retVal);
    }
    private packShellResponse1 packShell(packShellRequest1 request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IBarcode/packShell";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IBarcode/packShellResponse";
        info.ResponseIsWrapped = true;
        packShellResponse1 retVal = base.Invoke <packShellRequest1, packShellResponse1>(info, request);

        return(retVal);
    }
    private HandleDarPoolingMobileRequestResponse HandleDarPoolingMobileRequest(HandleDarPoolingMobileRequestRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IDarPoolingMobile/HandleDarPoolingMobileRequest";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IDarPoolingMobile/HandleDarPoolingMobileRequestResponse";
        info.ResponseIsWrapped = true;
        HandleDarPoolingMobileRequestResponse retVal = base.Invoke <HandleDarPoolingMobileRequestRequest, HandleDarPoolingMobileRequestResponse>(info, request);

        return(retVal);
    }
    private GetDataUsingDataContractResponse GetDataUsingDataContract(GetDataUsingDataContractRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action            = "http://tempuri.org/IStockService/GetDataUsingDataContract";
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://tempuri.org/IStockService/GetDataUsingDataContractResponse";
        info.ResponseIsWrapped = true;
        GetDataUsingDataContractResponse retVal = base.Invoke <GetDataUsingDataContractRequest, GetDataUsingDataContractResponse>(info, request);

        return(retVal);
    }
Exemple #28
0
    private getModuleInfoResponse getModuleInfo(getModuleInfoRequest request)
    {
        CFInvokeInfo info = new CFInvokeInfo();

        info.Action     = "http://www.hulisoft.com/RFIDService/IRFIDService/getModuleInfo";
        info.ExtraTypes = new System.Type[] {
            typeof(object[])
        };
        info.RequestIsWrapped  = true;
        info.ReplyAction       = "http://www.hulisoft.com/RFIDService/IRFIDService/getModuleInfoResponse";
        info.ResponseIsWrapped = true;
        getModuleInfoResponse retVal = base.Invoke <getModuleInfoRequest, getModuleInfoResponse>(info, request);

        return(retVal);
    }
Exemple #29
0
        private TRESPONSE getResult <TRESPONSE>(System.ServiceModel.Channels.Message reply, CFInvokeInfo info)

        {
            System.Diagnostics.Debug.Assert((reply != null));
            this.processReply(reply);
            TRESPONSE retVal = default(TRESPONSE);

            if ((reply.IsEmpty == false))
            {
                CFContractSerializerInfo serializerInfo = new CFContractSerializerInfo();
                serializerInfo.MessageContractType = typeof(TRESPONSE);
                serializerInfo.IsWrapped           = info.ResponseIsWrapped;
                serializerInfo.IsResponse          = true;
                serializerInfo.ExtraTypes          = info.ExtraTypes;
                serializerInfo.UseEncoded          = info.UseEncoded;
                retVal = reply.GetBody <TRESPONSE>(this.GetContractSerializer(serializerInfo));
            }
            return(retVal);
        }