Forum Discussion

CXin's avatar
CXin
Frequent Contributor
15 years ago

How to post with image or attachment

Hi Support team,

In my case, I want to post a request with an image.
Usually, I have to use Html to do it:

<HTML>
<head>
<title>title</title>
</head>
<BODY>
<form action="http://api.kijiji.ca/c-ClassiApiCommand" name = "api"method="post" enctype="multipart/form-data" >
<TEXTAREA name = "xml" cols="120" rows="20">
<?xml version="1.0" encoding="utf-8" ?>
<SOAP:Envelope xmlns:SOAP="http://www.w3.org/2003/05/soap-envelope">
<SOAP:Header>header info here</SOAP:Header>
<SOAP:Body>body info here</SOAP:Body>
</SOAP:Envelope>
</TEXTAREA>
Select an 120x60 (SnB logo) Image:<input type = "file" name = "Body/snb120x60" />
<input type = "submit" name = "submit" value= "submit" />
</form>
</body>
</html>

I want to how to do the bold part in SoapUI pro?