13 years ago
Facing issues creating a multipart POST request for a REST a
Hi,
I need help in creating a simple POST request for a REST API which contains multipart parameters. I am able to do so using Java but unable to do the same using SOAP UI.
The request contains String part parameters which are something like below when calling the API through Java:
Part[] parts = { new StringPart("xyz", xy),
new StringPart("toe", toe),
new FilePart("inputFile", sourceFile.getName(), sourceFile)};
When i try the same using SOAP UI with "multi-part form data" as Media type, the request is successfully made, but it seems that the api does not receive the parameters i gave in the Parameter tab before. Also, i do not see the parameters being passed in the http logs. Any help would be truely appreciated.
Thanks,
Deep
I need help in creating a simple POST request for a REST API which contains multipart parameters. I am able to do so using Java but unable to do the same using SOAP UI.
The request contains String part parameters which are something like below when calling the API through Java:
Part[] parts = { new StringPart("xyz", xy),
new StringPart("toe", toe),
new FilePart("inputFile", sourceFile.getName(), sourceFile)};
When i try the same using SOAP UI with "multi-part form data" as Media type, the request is successfully made, but it seems that the api does not receive the parameters i gave in the Parameter tab before. Also, i do not see the parameters being passed in the http logs. Any help would be truely appreciated.
Thanks,
Deep