直觉合作伙伴平台 - 执行术语查询返回错误 404



以下代码使 xml 反序列化失败:

var query = new TermQuery();

变量结果 = 查询。执行查询(上下文);

var r = 结果。计数();Console.WriteLine(r);

我收到 404 错误。用于访问销售术语查询的资源似乎不可用。

这是请求:

<?xml version="1.0" encoding="utf-8"?><TermQuery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.intuit.com/sb/cdm/v2" />

这是回应

<html><head><title>JBoss Web/2.1.12.GA-patch-03 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - Null subresource for path: https://services.intuit.com/sb/none/v2/556745565</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Null subresource for path: https://services.intuit.com/sb/none/v2/556745565</u></p><p><b>description</b> <u>The requested resource (Null subresource for path: https://services.intuit.com/sb/none/v2/556745565) is not available.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/2.1.12.GA-patch-03</h3></body></html>

谢谢!

这是 DevKit 中的一个错误。 如果查看终结点,DevKit 将"none"作为实体类型传递。

https://services.intuit.com/sb/无/

解决方法是使用 DevDefined 或类似的库来构造 OAuth 请求并直接调用服务。 下面是一个示例:

http://pastebin.com/raw.php?i=dqTb7gFM

最新更新