Article - CS289405

How to call ContentLoader function from ThingWorx Platform when developing extension using ThingWorx Extension SDK

Modified: 29-Mar-2021   

Applies To

  • ThingWorx Platform 8.3 to 9.1

Description

  • How to call ContentLoader function from ThingWorx Platform when developing extension using ThingWorx Extension SDK
  • What Java classes are to be imported to use the ContentLoader functions?
  • When attempting to create the post using: myContentLoader.PostJSON(url, bodyMain, null, null, head, true, false, 10.0, false, null, null, false, null, null, null) following error seen:
    • The method PostJSON(String, JSONObject, String, String, JSONObject, Boolean, Boolean, Double, Boolean, String, String, Boolean, String, Integer, String) in the type ContentLoader is not applicable for the arguments (String, JSONObject, null, null, JSONObject, boolean, boolean, double, boolean, null, null, boolean, null, null, null)
  • Null point error after using PostJSON ContentLoader function
This is a PDF version of Article CS289405 and may be out of date. For the latest version click https://www.ptc.com/en/support/article/CS289405?language=en&posno=2&q=java contentloader&source=search