Codice: Seleziona tutto
public SOAPMessage sendSoapRequest(String endpointUrl, SOAPMessage request)
{
try
{
SOAPConnection soapConnection
= SOAPConnectionFactory.newInstance().createConnection();
SOAPMessage response = soapConnection.call(request, endpointUrl);
soapConnection.close();
return response;
}
catch (SOAPException ex)
{
// Do Something
}
return null;
}