Forum Discussion

sunwater's avatar
sunwater
New Contributor
14 years ago

Problem with posting image in soapUI

Hi,

It's really an old problem unsolved. Any help is very much appreciated!
We are running into issues posting an image to our REST services thru SoapUI. No matter what we try, our REST service rejects the soapUI call. Refer to:

It's very strange that the error message shows "missing xid" while xid is added correctly as request parameter. Other properties and settings are listed as captured in image above.
Username and password are authorized correctly.
"Adds authentication information to outgoing request" is checked in Preferences.
The "Rose.jpg" is attached from my desktop and cached in the request.
"Post QueryString" is marked.
Detailed information in Raw is as following:
[
POST https://qetest.appconomy.com/matrix/res ... 3ARose.jpg HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/form-data; boundary="----=_Part_1_13075343.1348109273265"
MIME-Version: 1.0
Authorization: Basic bWVyY2hhbnRvd25lcjEwNDkzMjptZXJjaGFudA==
User-Agent: Jakarta Commons-HttpClient/3.1
Host: qetest.appconomy.com
Content-Length: 124436

------=_Part_1_13075343.1348109273265
Content-Type: image/jpeg; name=Rose.jpg
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="Rose.jpg"; filename="Rose.jpg"

ÿØÿà

]

I'm wondering if there's any problem with the settings to post the image.
If I don't mark "Post QueryString", following error is got:

HTTP/1.1 500 Internal Server Error
Content-Encoding: gzip
Content-Type: application/json
Date: Thu, 20 Sep 2012 02:46:33 GMT
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=C585428DBED23AED241FFB8A48CCF352; Path=/matrix/; Secure; HttpOnly
Content-Length: 100
Connection: keep-alive
{
"error" : {
"description" : "storage failure",
"message" : null,
"code" : 11053
}
}


I would very much appreciate it if you could give our SoapUI request a quick look to see if there is something obvious we are doing wrong.
Thank you in advance!
You can also contact with me via email: testn@qq.com

1 Reply

  • sunwater's avatar
    sunwater
    New Contributor
    Hi, does there anybody who can help me to handle this?
    It's emergent. Thank you 3Q!