0

我对 Scribe 世界很陌生。我们使用 Web API 2.2 开发了一个自定义 oData 端点,以公开我们内部系统的数据,以便我们可以使用 Scribe 将其导入到我们的 CRM Online 环境中。当我们尝试在 Scribe 中测试我们的连接时,我们得到一个我们真的不理解的错误。

连接测试失败。

验证关联的连接信息是否有效并且您有权访问此 oData 服务。

从 oData 服务返回以下异常消息:

没有为 oDataMessageReader 指定模型。消息阅读器需要在 oDataMessageReader 构造函数中指定 JSON 轻负载模型。

我想知道是否有人编写了自己的端点并能够使用 Scribe 的 OData 连接器成功连接到它。如果是这样,将不胜感激任何建议或指出错误的可能原因的正确方向。我一直在网上搜索,找不到任何线索。我还展示了我们的响应有效负载的示例。如果那里有什么奇怪的东西,我想知道。

{
  "odata.metadata":"https://extranet.trimontrea.com/Skynet/odata/$metadata#EntitiesOData","value":[
    {
      "EntityID":"1","EntityName":"LEHMAN BROTHERS HOLDING INC             ","Address1":"200 VESEY ST, 12TH FLOOR      ","Address2":"                              ","Address3":"                              ","Address4":"NEW YORK, NY  10285           ","City":null,"State":null,"Zip":null,"PrimaryContact":"LEHMAN BROTHERS HOLDINGS INC  ","EntityType":null,"TaxID":"","PhoneNumber":"","FaxNumber":""
    },{
      "EntityID":"10","EntityName":"RESTRUCTURED ASSET SECURITIES2          ","Address1":"C/O THE BANK OF NEW YORK      ","Address2":"WHITE CLAY CENTER             ","Address3":"NEWARK, DELAWARE              ","Address4":"19711                         ","City":null,"State":null,"Zip":null,"PrimaryContact":"CDC II                        ","EntityType":null,"TaxID":"","PhoneNumber":"","FaxNumber":""
    },{
      "EntityID":"100","EntityName":"LBHI - OLD GATE                         ","Address1":"LBHI - OLD GATE               ","Address2":"                              ","Address3":"                              ","Address4":"                              ","City":null,"State":null,"Zip":null,"PrimaryContact":"                              ","EntityType":null,"TaxID":"","PhoneNumber":"","FaxNumber":""
    },{
      "EntityID":"101","EntityName":"LBHI - OLD GATE EQUITY                  ","Address1":"LBHI - OLD GATE EQUITY        ","Address2":"                              ","Address3":"                              ","Address4":"                              ","City":null,"State":null,"Zip":null,"PrimaryContact":"                              ","EntityType":null,"TaxID":"","PhoneNumber":"","FaxNumber":""
    },{
      "EntityID":"11","EntityName":"PTG-LB BANKHAUS LONDON BRANCH           ","Address1":"3 WORLD FINANCIAL CENTER      ","Address2":"NEW YORK                      ","Address3":"NY                            ","Address4":"10285                         ","City":null,"State":null,"Zip":null,"PrimaryContact":"LONDON BRANCH                 ","EntityType":null,"TaxID":"","PhoneNumber":"","FaxNumber":""
    },{
      "EntityID":"12","EntityName":"LBHI - WATERTON CONDUIT LOANS           ","Address1":"200 VESEY ST, 12TH FLOOR      ","Address2":"PRINCIPAL TRANSACTIONS GROUP  ","Address3":"                              ","Address4":"NEW YORK, NY 10285            ","City":null,"State":null,"Zip":null,"PrimaryContact":"O/B/O WATERTON CONDUIT LOANS  ","EntityType":null,"TaxID":"","PhoneNumber":"","FaxNumber":""
    },{
      "EntityID":"13","EntityName":"ORIX REAL EST. CAP. MARKETS             ","Address1":"1717 MAIN STREET, 12TH FLOOR  ","Address2":"                              ","Address3":"                              ","Address4":"DALLAS, TX 75201              ","City":null,"State":null,"Zip":null,"PrimaryContact":"SASCO - SERIES 2000-C2        ","EntityType":null,"TaxID":"","PhoneNumber":"","FaxNumber":""
    }
  ]
}
4

1 回答 1

1

我发现我传递了错误的 URL 作为连接 URL。我应该通过这个:

https://extranet.trimontrea.com/Skynet/odata

并不是

https://extranet.trimontrea.com/Skynet/odata/EntitiesOData

于 2014-11-03T18:28:51.293 回答