A working java Client is following:

String serviceEndpoint =
"http://xxx.mydomain.it:8080/web10/services/web10?wsdl";
String method = "newContact";
Service service = new Service();
Call call = (Call) service.createCall();
call.setUsername("frank");
call.setPassword("frank2012");

call.setTargetEndpointAddress(new java.net.URL(serviceEndpoint));
call.setOperationName(method);
call.setTimeout(-1);
FileDataSource ds = new FileDataSource(new File("C:\\Users\\User\\Downloads\\auto2.zip"));
DataHandler zipFileHandler = new DataHandler(ds);

QName qnameAttachment = new QName(serviceEndpoint, "DataHandler");
call.registerTypeMapping(zipFileHandler.getClass(),qnameAttachment,JAFDataHandlerSerializerFactory.class, JAFDataHandlerDeserializerFactory.class);
call.addParameter("email", XMLType.SOAP_STRING, ParameterMode.IN);
call.addParameter("p0", XMLType.SOAP_STRING, ParameterMode.IN);
call.addParameter("source", qnameAttachment, ParameterMode.IN);
call.setReturnType(XMLType.SOAP_STRING);
Object[] parametri = {"email","p0",zipFileHandler};

String v = (String) call.invoke(parametri);
System.out.println("Result newContact = "+v);
 
Last edit: Serafino Bilotta 2013-12-16