allora ho cercato in giro e ho trovato qualche informazione in più, ho creato un programma java che crea un messaggio soap e ci allega il certificato e lo manda ad un endpoint

ecco il codice

public class InvioCert {
public static void main(String[] args) {


try {

// Crea message factory
MessageFactory messageFactory = MessageFactory.newInstance();

// Creazione di un messaggio
SOAPMessage message = messageFactory.createMessage();

// Creazione attachment part per il certificcato
URL url = new URL("file:e:/Prova.der");
DataHandler dataHandler = new DataHandler(url);
AttachmentPart attachment = message.createAttachmentPart(dataHandler);
attachment.setContentId("Certificato");
message.addAttachmentPart(attachment);
int i=message.countAttachments();
System.out.println("Numero Allegati al messaggio:"+i);

//Invio del messaggio SOAP ad un endpoint
URLEndpoint urlEndpoint = new URLEndpoint("http://www.w.co:80/endis");
SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
SOAPConnection con = scf.createConnection();
SOAPMessage reply = con.call( message, urlEndpoint );

} catch (IOException e) {
System.out.println("I/O exception: " + e.toString());
System.exit(1);
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
ora il mio problema è il solito invio del messaggio in quanto io non ho un endpoint a cui mandarlo ma ho gia implementata una classe client "chiamata" che si connette al locator del web service e manda delle stringhe.

Ora io devo a questa classe aggiungere tutto questo programma??