public Document getRegInfo(){
Document res = new Document();
try{
res = (Document)RegInfo.get();
}catch(Exception e){System.err.println(e.toString());}
return res;
}
public boolean isEmpty(){
if (RegInfo.getSize()==0) return true;
else return false;
}
public void run(){
while(true){
System.out.println("Attempt to Receive info");
String endpoint ="http://"+IPAddress+":8080/axis/services/Server";
Service service = new Service();
while (true){
System.out.println("Connecting Server");
try{
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName("sendRegister");
String Parameter = "";
String res = (String) call.invoke( new Object[] { Parameter } );
System.out.println("received"+res);
SAXBuilder ix = new SAXBuilder();
Document doc = ix.build(new StringReader(res));