WSURL = 'http://62.212.78.36/cgi-bin/WagAddressServerSingle.exe/wsdl/IWagAddressServerSingle';
var methods = plugins.Kydome_WebServices.getWSInfo(WSURL, null);
var methodsArray = methods.split('\n');
var noneSelected = 0;
if (methodsArray.length != 1.0)
{
var selectedMethod = plugins.dialogs.showSelectDialog('Available Methods','Select one of the Methods:',methodsArray);
if ( selectedMethod == '' )
{
noneSelected = 1;
}
}
In the above code, methods is comming null.
That mean, i think, the getWSInfo() is not working properly.
When you are talking about “Using Web Services” there are two ways to use:
Servoy Consumes an External Web Service, by using the Kydome_WebServices Plug-in, see the following sample:
Code:
var pamameters = new Array();
//Should be the file path of the WSDL file
pamameters[0] = ‘/data/webservices/test/sendRequest.wsdl’;
//The Service Name as extracted from the WSDL file
//To get all services from WSDL file, use plugins.PBS_DynamicWSClient.getWSInfo(WSURL,null);
pamameters[1] = ‘sendRequest’;
//Number of Seconds to time out
pamameters[2] = 10*1000;
//First Argument to be passed to the service in pamameters[1]
pamameters[3] = forms.tasks.name;
var xx = plugins.Kydome_WebServices.DynInvokeServerside(pamameters);
plugins.dialogs.showInfoDialog( “”, xx, ‘ok’);
External Systems to consume Servoy’s web service, and I really don’t know how to do so, I guess it is possible and Servoy automatically populates the WSDL files for each form including all possible functions/services.
I hope if the Servoy Gurus can help in point number 2.
Can you please explain about the PBS_DynamicWSClient Plugin?
Beacause, at my end i am able to see the Kydome_WebServices plugin but unable to find the PBS_DynamicWSClient Plugin in the navigation window of method editor.