allora, ho provato in locale ed effettivamente continua a darmi lo stesso errore
ti posto il codice
codice:
public static void main(String[] args) {
SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
SOAPConnection connection = soapConnFactory.createConnection();
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage message = messageFactory.createMessage();
MimeHeaders headers = message.getMimeHeaders();
headers.setHeader("POST", "/ServiceF4.asmx");
headers.setHeader("Content-Type", "text/xml; charset=utf-8");
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody body = envelope.getBody();
SOAPElement bodyElement = body.addChildElement(envelope.createName("ACCESS" , "", "https://indirizzo/"));
SOAPElement bodyElement_2 = bodyElement.addChildElement("ACCESSInput").addChildElement("CommonIn");
bodyElement_2.addChildElement("CLIENTUNIQUEIDENTIFIER").addTextNode("0");
bodyElement_2.addChildElement("MAINUSERNAME").addTextNode("user");
bodyElement_2.addChildElement("MAINPASSWORD").addTextNode("pass");
bodyElement_2.addChildElement("BPSOFFICE").addTextNode("fsd");
bodyElement_2.addChildElement("BPSOP").addTextNode("fdsfdsf");
message.saveChanges();
System.out.println("\nREQUEST:\n");
message.writeTo(System.out);
System.out.println();
String destination = "https://indirizzo";
SOAPMessage reply = connection.call(message, destination);
SOAPMessage reply = sendMessage(message, destination);
System.out.println("\nRESPONSE:\n");
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
Source sourceContent = reply.getSOAPPart().getContent();
StreamResult result = new StreamResult(System.out);
transformer.transform(sourceContent, result);
System.out.println();
connection.close();
}