3 Replies Latest reply on Feb 18, 2016 12:04 PM by asinclair-2 RSS
    asinclair-2 Apprentice

    ThingWorx problem passing XML as a service parameter from one script to another

    The first script peeks into the XML - a parameter of an HTTP POST service request (REST API) - to identify the thing and service that needs to be invoked to parse out the data. Then the script calls the second service passing the same XML object as the first and only parameter.


    ThingWorx throws the following exception (that is returned in the payload of HTTP 500 Internal Server Error).


    Wrapped java.lang.Exception: Invalid parameter type for service


    Now what? Is this just not allowed or is the XML object in some state where it cannot be used in another script?