使用Scribe的OData连接器时收到错误

时间:2014-10-30 20:10:13

标签: odata crm microsoft-dynamics scribe-workbench

我对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":""
    }
  ]
}

1 个答案:

答案 0 :(得分:1)

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

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

而不是

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