Quantcast
Channel: SCN : All Content - RESTful Web Services SDK
Viewing all articles
Browse latest Browse all 262

Create Document in RESTful webservice

$
0
0


Hi,

 

Anyone help me in java code

how to create a webi document using restful webservice?

 

My Code:

 

HttpPost httpRequest_create_doc = new HttpPost( "http://localhost:6405/biprws/raylight/v1/documents");

        

  httpRequest_create_doc.setHeader("Accept","application/xml");

  httpRequest_create_doc.setHeader("Content-Type","application/xml");

  httpRequest_create_doc.setHeader("X-SAP-LogonToken", sLogonToken);

 

I am getting this response

 

HTTP/1.1 400 Bad Request [Server: Apache-Coyote/1.1, Date: Thu, 25 Sep 2014 12:12:19 GMT, Content-Type: application/xml, Content-Length: 135, Connection: close]

 

Regards,

kavitha S


Viewing all articles
Browse latest Browse all 262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>