mercredi 8 février 2017

How to write a client with rest template which calls a rest web service which accepts file along with certain other parameters

I have a rest web service which has url like below:-

http://localhost:8080/appName/context/fileuploadservice?param=X&param2=Y

This web service is a post web service which accepts a file(excel or .csv) to be uploaded and two parameters param and param2.

How to write a client using rest template which will upload the file to this web service and also pass on the two parameters as well.




Aucun commentaire:

Enregistrer un commentaire