Hi,
I create a long lived process with an input string and one step, an assign task to Alex Pink.
I script in a script object the call to the Web Service like this :
var cWSLong = "http://myServer:8080/soap/services/LongWS?wsdl";
function callWS(URL){
try
{
var mySync = {
isDone: false,
val: null,
// Generates the result of the web method:
result: function(cMethod)
{
this.isDone = false;
var name = "http://sw0052.phys.pack:8080/soap/services/LongWS/:" + cMethod + "Response";
xfa.host.messageBox("name : "+name);
if (typeof this.val[name] == "undefined"){
xfa.host.messageBox("val est indéfini");
return null;
}
else
return this.val[name]["return"];
},
// The method called by the web service after completion:
response: function(oResult, cURI)
{
this.val = oResult;
this.isDone = true;
},
// While the web service is not done, do something else:
wait: function()
{
while (!this.isDone) doSomethingElse();
}
};
var myAuthentication = {
Username: "administrator",
Password: "password"
};
var response = SOAP.request(
{
cURL: URL,
oRequest: {
"http://myServer:8080/soap/services/LongWS/:invoke": {
inputString: "jerome"
}
},
oAsync: mySync,
oAuthenticate: myAuthentication
});
//var result = response["http://sw0052.phys.pack:8080/soap/services/LongWS/:invokeResponse"]["return"];
var result = mySync.result("invoke");
xfa.host.messageBox("Result : "+result);
}catch(e) {
xfa.host.messageBox("exception "+e);
}
}
And in the button click event :
myForm.variables.Soap.Test();
But my OResult Object is still null. I received no Processus ID and the process doesn't start.