Invoking a service java params are coming back as null
I am currently trying to invoke a service but my params are not being set for some reason. This is the java code...
//
// Invoking a service on a Thing
///////////////////////////////////////////////////////////////
// A ValueCollection is used to specify a service's parameters
ValueCollection params = new ValueCollection();
params.put("name", new StringPrimitive("testThing"));
params.put("description", new StringPrimitive("Here is thing created from a service via Java."));
params.put("thingTemplateName", new StringPrimitive("RemoteThing"));
// Use the CreateNewThing service from SimpleThing_1 to create a new thing.
// This service's result type is NOTHING, so we can ignore the response.
result = client.invokeService(ThingworxEntityTypes.Things, ThingName,
"CreateNewThing", params, 5000);
And the service has this javascript within it...
var params = {
name: name /* STRING */,
description: description /* STRING */,
thingTemplateName: thingTemplateName /* THINGTEMPLATENAME */,
};
// no return
Resources["EntityServices"].CreateThing(params);
For some reason the params set in java code are not being transfered to thingworx javascript. What am I missing here?

