How to upload a file to a SOAP web service?
问题 I have a .p12 file that I want to upload to a SOAP web service, so that my application can make requests to get it later. How do I upload this file? I don't necessarily want this in my application code, since it's something I only want to do once. But, if it matters, I am using Java. 回答1: You should take a look at MTOM, if the service supports it. If it accepts file attachments, then it probably uses MTOM. Not sure what you mean by keeping it out of application code, but how you go about