Re: [Dspace-tech] Need Help for Dspace Rest API

2011-06-10 Thread Bojan Suzic
Hi Dhaivat,

in your code you should change

writer.write(URLEncoder.encode(s,UTF-8));

to

 writer.write(s);

I have tested it locally and works for me.
Also please checkout the latest version of module from svn.

Regards
Bojan



 Hi Folks

 I have implemented the xml request through java code .. But i am still
 getting BAD Request as an errorI have attached the java
 file...Please have a look and kindly correct me where i am going
 wrong..Thanks in advance...


 Regards
 Dhaivat

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Need Help for Dspace Rest API

2011-06-04 Thread dhaivat dave
Hi

I have implemented the xml request through java code .. But i am still
getting BAD Request as an errorI have attached the java file...Please
have a look and try to solve it...


Regards,
Dhaivat


RestTest.java
Description: Binary data
--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 ___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Need Help for Dspace Rest API

2011-06-01 Thread Bojan Suzic
Hi Dave,

can you post the detailed request you have made? Are you using json or xml?

Bojan


 I am trying to get the data from dspace using REST Api...I am able to
 GET Data related communities,Collection and so on..
 But when i am trying to create new Collection using POST Data it gives
 me syntax error on tomcat...
 I am using the following page as guidance..
 https://wiki.duraspace.org/display/DSPACE/REST+API#RESTAPI-rcodes

 Can you have an idea about how do i post data for creating the
 collection or community...?

 Thanks

 Dhaivat Dave


--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Need Help for Dspace Rest API

2011-06-01 Thread dhaivat dave
Hi Bojan,

I am using Xml ..i have attached a java file which sends the request to REST
API and get the response ...


Dhaivat


RestTest.java
Description: Binary data
--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Need Help for Dspace Rest API

2011-06-01 Thread Bojan Suzic

Hi Dhaivat,

I tested it now, there is no input to the script provided. Only xml and 
json are supported.
Later in the day I will try to provide an example how to make a post/put 
request.

Regards
Bojan


 I am using Xml ..i have attached a java file which sends the request to
 REST API and get the response ...


 Dhaivat


--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Need Help for Dspace Rest API

2011-06-01 Thread Peter Dietz
Also,

The test code is expecting a HTTP 200 (OK) result for everything. Thats fine
for a GET, but when you create something 201 (Created) is the usual
response. So you can either make the test smarter so that when you create
something it expects a 201, or to not throw errors for anything 20x.
Peter Dietz



On Wed, Jun 1, 2011 at 5:16 AM, Bojan Suzic bojan.su...@gmail.com wrote:


 Hi Dhaivat,

 I tested it now, there is no input to the script provided. Only xml and
 json are supported.
 Later in the day I will try to provide an example how to make a post/put
 request.

 Regards
 Bojan


  I am using Xml ..i have attached a java file which sends the request to
  REST API and get the response ...
 
 
  Dhaivat



 --
 Simplify data backup and recovery for your virtual environment with
 vRanger.
 Installation's a snap, and flexible recovery options mean your data is
 safe,
 secure and there when you need it. Data protection magic?
 Nope - It's vRanger. Get your free trial download today.
 http://p.sf.net/sfu/quest-sfdev2dev
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech