I am required to use a servlet which has an implementation for both doGet and doPost. However I am required to call the doPost method by "posting" an xml file(or SOAP message). Any idea how I can do that? some code illustration will be greatly appreciated.
Basically I have a set of parameters that I need to pass to a servlet. Previously I was passing them by calling the servlet like
So I assume the above calls the doGet method of the servlet.
Now I am required to implement a doPost method for the same servlet, which would receive those parameters in an XML file. So I am sending the attributes via SOAP to the doPost. This is the code for the class that initiates the request:
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com