Forum Discussion
Change the Media Type to multipart/form-data. Right now your request woll not include the attachment. You can find more info in the documentation.
yes i tried with multipart/form-data and than multipart/mixed but still getting bad request message
<Error>
<Message>SourceName and FileReceived cannot be empty.</Message>
</Error>
- samirc238 years agoContributor
Hello,
any update on this issue please ?
thanks,
- Nastya_Khovrina8 years ago
Alumni
Hi samirc23,
Please compare a successful raw request from Postman with a raw request from ReadyAPI. To get a raw request in ReadyAPI, please choose the Raw tab in the left request. Please see the screenshot attached.
To get a raw request which was successfully sent from a browser or another application you can use Fiddler (http://www.telerik.com/download/fiddler) which is a free tool to capture HTTP(S) traffic.
It seems that you need to change a style of the "SourceName" and "FileReceived" parameters. If the style is Plain the values of these parameters are not sent. Please refer to the article about parameters: Resource Parameters Page. Note that you can change the style only on the Projects tab.
- sanj8 years agoSuper Contributor
Here is a screenshot of how to send an xml request