var
oListURL = "http://localhost:3612/WebSite18/Service.asmx?WSDL";
var
e;
try
{
xfa.host.messageBox("starting List Retrieval.");
var
service = SOAP.connect(oListURL);
if
(typeof service != "object")
{
xfa.host.messageBox("Couldn't get List object.");
}
if
(service.getAllServiceNames == "undefined") {
xfa.host.messageBox("Couldn't get getAllServiceNames Call.");
}
var
oItems = service.getAllServiceNames();
if
(oItems == null) {
xfa.host.messageBox("List empty.");
}
var
ncount = 0;
var
nLimit = 10;
for
(var nItemCount in oItems)
{
for
(var nItemNode in oItems[nItemCount])
{
if
(nItemNode == "name")
DropDownList1.addItem(oItems[nItemCount][nItemNode]);
}
if
(++nCount >= nLimit)
break
;
}
}
catch
(e)
{
xfa.host.messageBox("Problem with list Call: "
+ e);
}