rendered paste bodyusing System;
class EnginFrameWSTestClient {
public static void Main(string[] args)
{
EnginFrameWSService service = new EnginFrameWSService();
service.Url = "http://maggi.polito.it:8080/enginframe/efws/EnginFrameWS";
string sdfURL = "http://maggi.polito.it:8080/enginframe/demo/webservices/demo.ws.xml";
Authority authority = service.getAuthority(sdfURL, "");
Console.WriteLine("GET AUTHORITY");
Console.WriteLine("-------------");
if (authority == null)
{
Console.WriteLine("[No Authority... big problems]");
return;
}
Console.WriteLine("Authority:\n id: " + authority.id +
"\nname: " + authority.name +
"\ndescr: " + authority.description +
"\ncreds: ");
if (authority.credentials == null)
{
Console.WriteLine("[No Credentials... big problems]");
return;
}
for(int i = 0; i < authority.credentials.Length; ++i)
{
Console.WriteLine("Cred[" + i + "].name: " + authority.credentials[i].name);
Console.WriteLine("Cred[" + i + "].description: " + authority.credentials[i].description);
Console.Write("Cred[" + i + "].value ? ");
Console.WriteLine("");
}
}
}