System.out.println("\n============= Request ==============");
System.out.println(XMLUtils.DocumentToString(env.getAsDocument()));
// This is where we actually invoke the service, sending the request we've constructed
// Assuming we did everything right, it will return to us a SOAP envelope containing the response
SOAPEnvelope response = call.invoke(env);
System.out.println("\n============= Response ==============");
XMLUtils.PrettyElementToStream(response.getAsDOM(), System.out);
// Find the <RequestSecurityTokenResponse> element the SOAP body should contain