Java Web Service link :
http://orws2.isima.fr/Recuperation_donnee/Recuperation_donnee?WSDL
webservice.WebServiceJobShop_Service service = new webservice.WebServiceJobShop_Service(); webservice.WebServiceJobShop port = service.getWebServiceJobShopPort();
double lati1 = 45.758451, longi1 = 3.105476; double lati2 = 45.776234, longi2 = 3.091571; String key = "7780458c95b922qbda15"; String rlt = port.demarrerGuidage(lati1, longi1, lati2, longi2, key); jTextArea1.setText(jTextArea1.getText() + "resultat = " + rlt+"\n");
do{ rlt = port.recupererResultatGuidage(key); try{ Thread.sleep(1000); }catch(Exception E){ break; }; }while (rlt.contains("#4#")); jTextArea1.setText(jTextArea1.getText() + "resultat = " + rlt+"\n");
webservice.WebServiceJobShop_Service service = new webservice.WebServiceJobShop_Service(); webservice.WebServiceJobShop port = service.getWebServiceJobShopPort(); double lati1 = 45.758451, longi1 = 3.105476; double lati2 = 45.776234, longi2 = 3.091571; String key = "7780458c95b922qbda15"; String rlt = port.demarrerGuidage(lati1, longi1, lati2, longi2, key); jTextArea1.setText(jTextArea1.getText() + "resultat = " + rlt+"\n"); do{ rlt = port.recupererResultatGuidage(key); try{ Thread.sleep(1000); }catch(Exception E){ break; }; }while (rlt.contains("#4#")); jTextArea1.setText(jTextArea1.getText() + "resultat = " + rlt+"\n");