你调用的对象是空的。 - eClaimlink Dubai

时间:2015-07-01 08:36:34

标签: c# web-services

我得到“对象引用未设置为对象的实例”。 当我试图在迪拜使用网络服务进行ERX搜索时,

Erx_Webservice.MySOAP.ValidateTransactionsSoap  Mysoap;
        Mysoap = null; 
        MySOAP.SearchTransactionsRequestBody request = new MySOAP.SearchTransactionsRequestBody();
        MySOAP.SearchTransactionsResponseBody Response = new MySOAP.SearchTransactionsResponseBody();
        MySOAP.SearchTransactionsRequest Req = new MySOAP.SearchTransactionsRequest();
        MySOAP.SearchTransactionsResponse Res = new MySOAP.SearchTransactionsResponse();

        Req.Body = request;
        request.login = "alshifadubai";
        request.pwd = "shifakhaleeji";
        request.callerLicense = "NULL";
        request.ePartner = "NULL"; 
        request.direction  = 1;
        request.transactionID  = 1;
        request.TransactionStatus  = 1;
        request.transactionFileName = "NULL";
        request.transactionFromDate = "NULL";
        request.transactionToDate = "NULL"; 
        request.minRecordCount = 1;
        request.maxRecordCount  = 10;

        try
        {

            Res = Mysoap.SearchTransactions(Req);

0 个答案:

没有答案