Error 1113 Invoking Service from .net application
I have a .NET application that starts a client to connect to my server as a virtual thing and push data to the server (this works completely with no errors). I wanted to invoke a service on the ThingWorx server that would take parameters from the client (below is the code) and run a service that automatically creates and binds the virtual thing to a remote thing.
I tested the service in TW and it works but when I invoke it from my client I receive this exception "Error invoking Service for Entity. Service Unavailable. (Code 1113)". I have double-checked the names and everything checks out. I'm not sure what I'm missing so if someone has experience with this I would appreciate feedback.
public static void createThing(ConnectedThingClient client, String ThingTemplate, String ThingName, String Description)
{
var param = new ValueCollection();
param.Add("ThingName", new StringPrimitive(ThingName));
param.Add("ThingTemplate", new StringPrimitive(ThingTemplate));
param.Add("Description", new StringPrimitive(Description));
client.invokeService(com.thingworx.relationships.RelationshipTypes.ThingworxEntityTypes.Things, "TestThing", "CreateThing", param, 30000);
}
createThing(client, "TestThingTemplate", "thingnametest","this is a test");

