Commit e2120c3e by Patryk Czarnik

GetCountryInfo - wysłanie zapytania

parent 632926c4
......@@ -22,6 +22,13 @@ public class GetCountryInfo {
System.out.println("Zapytanie:");
request.writeTo(System.out);
System.out.println("\n\nWysyłam...");
SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
SOAPConnection connection = scf.createConnection();
SOAPMessage response = connection.call(request, "http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso");
System.out.println("Mam odpowiedź:");
response.writeTo(System.out);
} catch (SOAPException | IOException e) {
e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment