技术文章 - CS289405

使用 ThingWorx Extension SDK 开发扩展时如何从 ThingWorx Platform 调用 ContentLoader 函数

已修改: 16-Jan-2023   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 8.3 to 9.1

说明

  • 使用 ThingWorx Extension SDK 开发扩展时如何从 ThingWorx Platform 调用ContentLoader函数
  • 要导入哪些 Java 类以使用ContentLoader函数?
  • 尝试使用创建帖子时: myContentLoader.PostJSON(url, bodyMain, null, null, head, true, false, 10.0, false, null, null, false, null, null, null)出现以下错误:
    • ContentLoader 类型中的方法 PostJSON(String, JSONObject, String, String, JSONObject, Boolean, Boolean, Double, Boolean, String, String, Boolean, String, Integer, String) 不适用于参数 (String, JSONObject, null , null, JSONObject, boolean, boolean, double, boolean, null, null, boolean, null, null, null)
  • 使用PostJSON ContentLoader函数后出现空点错误
这是文章 289405 的 PDF 版本,可能已过期。最新版本 CS289405