Hello All,
I have a question please regarding the consumption of a webservice
the goal is to create an item with 2 properties in the instance B (http://machineB/InnovatorTwo/Client) from another instance A (http://machineA/InnovatorOne/Client)
When i try to add an item with "POST" it doesn't work. (see screnshoot below)
Below is the server method that i have used in the instance InnovatorOne that is installed in machineA to add an item :
const string url = "http://machineB/InnovatorTwo/Client";
const string db = "databaseOne";
const string user = "admin";
const string password = "pswd";
var httpServerConnection = IomFactory.CreateHttpServerConnection(url, db, user, password);
var loginResult = httpServerConnection.Login();
if (loginResult.isError()) return loginResult;
var remoteInnovator = IomFactory.CreateInnovator(httpServerConnection);
var remoteParts = remoteInnovator.newItem("NameOfTheItem", "add");
remoteParts.setProperty("propertyOne", "valueOne");
remoteParts.setProperty("propertyTwo", "valueTwo");
return remoteParts.apply();
NOTE: the error appears when i run the method from Actions > run server method