【问题标题】:Intuit Reporting services (Balancesheet / profilt and loss)Intuit Reporting services(资产负债表/损益表)
【发布时间】:2014-06-11 09:09:04
【问题描述】:

我正在使用以下代码从 quickbooks 中获取资产负债表以及利润和损失数据。

OAuthRequestValidator oauth = new OAuthRequestValidator(accessToken, accessTokenSecret, 消费者密钥,消费者秘密);

ServiceContext serviceContext = new ServiceContext(realmId, IntuitServicesType.QBO, oauth); serviceContext.IppConfiguration.Message.Request.SerializationFormat = Intuit.Ipp.Core.Configuration.SerializationFormat.Json;

ReportService reportService = new ReportService(serviceContext);

               reportService.accounting_method = "Accrual";
                reportService.start_date = "2014-01-01";
                reportService.end_date = "2014-06-01";
                Report report = reportService.ExecuteReport("BalanceSheet");

它编译得很好,但是当它运行时它给出了以下错误。

" **未找到 Ids 服务端点。

说明:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。 异常详细信息:Intuit.Ipp.E​​xception.EndpointNotFoundException:找不到 Ids 服务端点。 源错误: 第 133 行:reportService.start_date = "2014-01-01"; 第 134 行:reportService.end_date = "2014-06-01"; 第 135 行:报告报告 = reportService.ExecuteReport("BalanceSheet"); 第 136 行: 第 137 行:“**

【问题讨论】:

    标签: intuit-partner-platform


    【解决方案1】:

    请使用正确的日期格式 YYYY-MM-DD。 请使用 JSON 作为响应格式,因为不支持 xml。然后你的代码就可以工作了。 serviceContext.IppConfiguration.Message.Response.SerializationFormat = Intuit.Ipp.Core.Configuration.SerializationFormat.Json;

    【讨论】:

    • nimisha 如果你看到我的代码块粘贴在我的问题中......我正在做你建议的事情
    • 您正在设置请求序列化格式..不是响应。请也设置。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-13
    • 1970-01-01
    • 2016-11-30
    相关资源
    最近更新 更多