Unsolved
This post is more than 5 years old
2 Posts
0
3772
August 31st, 2009 05:00
REST API with SoapUI
Hi gents,
I am trying to perform a REST API requests (POST) with SoapUI v3.0 tool. I intend to create a new directory but, I allways receive the error message 1002:
HTTP/1.1 400 Bad Request
Date: Fri, 28 Aug 2009 16:33:26 GMT
Server: Apache
Content-Length: 145
Connection: close
Content-Type: text/xml
1002
I fill the endpoint field with http://Atmos_IP/rest/namespace. or http://Atmos_IP/rest/namespace/myfolder
Do you have any idea ?
Thanks
No Events found!



madler1
40 Posts
0
August 31st, 2009 08:00
josé1
2 Posts
0
August 31st, 2009 09:00
Hi Madler,
Here is my REST request
POST http://xx.xx.xx.xx/rest/namespace/photos/ HTTP/1.1
accept: */*
date: Fri, 28 Aug 2009 12:05:52 GMT
content-type: application/octet-stream
x-emc-date: Fri, 28 Aug 2009 12:05:52 GMT
host: 10.170.202.80
x-emc-uid: 2156c010794e4e5b97d167a9af069e76/Qualif_1
x-emc-signature: lpy1bza3POW7hcodjzzvsrpZDBw=
My Endpoint :http://xx.xx.xx.xx/rest/namespace
The Full Path : /rest/
madler1
40 Posts
0
August 31st, 2009 11:00
you should replace "namespace" with the actual namespace you are using. In this case it is objects. The host field should not be an explicit IP address. use accesspoint.emccis.com. Here is a POST that my code generates. I don't specify the file name. I let Atmos generate the file name for me.
POST /rest/objects/ HTTP/1.1
accept: */*
content-length: 4
content-type: application/octet-stream
date: Mon, 31 Aug 2009 13:55:40 GMT
host: accesspoint.emccis.com
x-emc-date: Mon, 31 Aug 2009 13:55:40 GMT
x-emc-signature: 7fiPpV74hTbJN5XQfsCTpqgZKag=
x-emc-uid: 7ad0980ef7b446b08d779ead9577739b/TWINS38406D26B757718