Sending file to secured SOAP web service using apache http client
问题 There is a SOAP service written which is for any file transfer. I need to call that service using apache http client library. First thing to be noted is that the service is secured with password digest. I have username and password. Second, I need to pass a file as an attachment. I have come across the following code void post(String strURL, String strSoapAction, String strXMLFilename) throws Exception{ File input = new File(strXMLFilename); PostMethod post = new PostMethod(strURL);