Getting OutOfMemoryError with REST webservice

Hi,
I need some help with my configuration regarding
the listener (version 2.0.1.64.14.25 as stand alone with Application Express 4.2.1.00.08):
I consume (via $.ajax(...)) a REST-Webservice for request a clob value.
Configuration of my Ressource Handler:
method: GET
Requires Secure Access: No
source type: "Query one Row"
Pagination Size: 1
Source: select id, col3 from csvloader where id = :ID
This works as excepted until I want to load a value that is bigger then 65 kb.
In my cmd box, where the listener is stated, I noticed the following error:
22.03.2013 14:18:49 oracle.dbtools.rt.web.WebErrorResponse internalError
SCHWERWIEGEND: Java heap space
java.lang.OutOfMemoryError: Java heap space
("SCHWERWIEGEND" means "fatal" in german)
In order to avoid this error, I tried to increase the heap space:
java -Xms500m -Xmx1024m -jar apex.war
-> no change, still getting OutOfMemoryError (HTTP 500 Errorcode)
Any suggestions, hints?
Thanks for your help!
Michael

Hi!
I'm still working on this topic. I updated the listener to the newest version 2.0.2.133.14.47
but this is not a solution for my problem.
Steps I've done:
- raised JVM-Memory: GlassFish -> JVM configuration -> JVM options: add/set "-Xmx1024m" and "-XX:MaxPermSize=256m"
- raise "-Xmx1024m" to "-Xmx1224m" -> glassfish doesn-'t start
Maybe I have a problem with my os: I use windows XP (32bit) in a virtual machine. Seems that JVM don't get enough
memory. On the other hand, I just want to get about 65 - 72,5 KB from a blob-field to my browser....
Any suggestions for me?
Thanks a lot!
Michael

Similar Messages

  • Integration with Restful webservice i..e Request details

    Dear Experts,
    After going through several blogs and attempting in system , I am not really convinced with the way my results are shaping up.
    There are 2 systems SAP ABAP portal and JAVA portal. I am having a scenario when any user logs in ABAP web dynpro portal and executes task, his details from JAVA portal should fire response with user details.To achieve this , SAP PI is used to integrate the JAVA application supporting JSON format i.e. Restful adapter.
    I referred the excellent blog  http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/08/11/calling-synchronous-restful-web-service-with-pi--i  and but still issues keep cropping with unexpected one.
    If experts come across any of suitable answers , please hit my queries with the solution.
    1.I created a message type with single node , but unable to perform proxy test in Sender ECC as the execute button in greyed out.Is this is the correct way to create a MT with a single node.
    2.Should the UDF mapping for the dynamic URL be mapped to the primary node of request and response MT.
    3.How does the JAVA UDF in SAP PI captures the User details in ECC during runtime.
    4.Which URL i.e. the parameter entered in the SOAP adapter or the URL in the TServerLocation connects the receiver JAVA application.
    5.Whether the receiver SOAP adapter with HTTP Axis, be able to perform HTTP Method = POST and Content Type = application/x-www-form-urlencoded.
    6.The connection URL to the JAVA application has character "&". Would it cause error during runtime.
    7.I am using chrome POSTMAN test toll.
    Request experts to push the answers in sequence wise.
    Many thanks in advance..
    Regards
    Rebecca Alice.....

    Dear Experts,
    Any suggestions and , is greatly appreciated..
    Regards......

  • Invalid request when calling REST-webservice with UTL_HTTP.

    Hello,
    When i try to send some data to a REST-webservice i get as response "INVALID REQUEST"
    I Think it is about the request-body that seems to be no UTF-8.
    I tried to set the characterset with utl_http.set_body_charset(t_http_req, 'UTF-8').
    But when i read the characterset with utl_http.get_body_charset(t_charset);, is still get "ISO-8859-1"
    I am using: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    Some help would realy be appreciated because i am out of options trying to get the code working..
    ======MY CODE==========
    create or replace procedure ipm40_send_bekendmaking(p_bdmg_id in number)
    as
    r_bekendmaking ipm40_bekendmakingen%rowtype;
    r_gemeente ipm40_gemeenten%rowtype;
    l_url httpuritype;
    t_http_req utl_http.req;
    t_http_resp utl_http.resp;
    t_request_body varchar2(32767);
    t_respond varchar2(32767);
    -- t_teller integer := 1;
    -- t_output varchar2(2000);
    t_start number := 1;
    t_body_lengte number;
    t_chunkdata varchar2(4000);
    t_tijd_1 varchar2(256);
    t_tijd_2 varchar2(256);
    t_timeout integer;
    t_length number;
    t_charset varchar2(256);
    begin
    select *
    into r_bekendmaking
    from ipm40_bekendmakingen
    where id = p_bdmg_id;
    select *
    into r_gemeente
    from ipm40_gemeenten
    where gmte_code = r_bekendmaking.gmte_code;
    l_url := httpuritype.createuri('http://zwolle.stadsbeheer.com:82/apex/ipm40bekendmaking?p_bdmg_id='||r_bekendmaking.id);
    t_request_body := l_url.getClob();
    /* request that exceptions are raised for error Status Codes */
    --Utl_Http.Set_Response_Error_Check ( enable => true );
    /* allow testing for exceptions like Utl_Http.Http_Server_Error */
    --Utl_Http.Set_Detailed_Excp_Support ( enable => true );
    utl_http.set_transfer_timeout(300);
    t_http_req:= utl_http.begin_request( r_gemeente.url_webservice_bekendmakingen
    , 'POST'
    , 'HTTP/1.1');
    utl_http.set_body_charset(t_http_req, 'UTF-8');
    utl_http.get_body_charset(t_charset);
    utl_http.set_authentication(t_http_req,r_gemeente.user_webservice_bekendmakingen,r_gemeente.pw_webservice_bekendmakingen);
    t_length := length(t_request_body);
    utl_http.set_header(t_http_req, 'Content-Type', 'application/xml charset=UTF-8');
    utl_http.set_header(t_http_req, 'Content-Length', t_length);
    utl_http.set_header(t_http_req, 'Transfer-Encoding', 'chunked' ); --
    t_body_lengte := dbms_lob.getlength(t_request_body);
    loop
    t_chunkdata := dbms_lob.substr(t_request_body, 2000, t_start);
    utl_http.write_text ( t_http_req, t_chunkdata );
    t_start := t_start + 2000;
    if t_start > t_body_lengte
    then
    exit;
    end if;
    end loop;
    t_http_resp:= utl_http.get_response(t_http_req);
    utl_http.read_text(t_http_resp, t_respond);
    utl_http.end_response(t_http_resp);
    if instr(t_respond,'Successfully document processed') != 0
    then
    update ipm40_bekendmakingen
    set ind_status = 'S'
    , datum_verzonden = sysdate
    , response = t_respond
    where id = r_bekendmaking.id;
    else
    update ipm40_bekendmakingen
    set ind_status = 'F'
    , datum_verzonden = null
    , response = t_respond
    where id = r_bekendmaking.id ;
    end if;
    commit;
    exception
    when others
    then
    t_tijd_2 := to_char(sysdate,'HH24:MI:SS');
    t_respond := substr(sqlerrm,1,2000);
    update ipm40_bekendmakingen
    set ind_status = 'F'
    , datum_verzonden = null
    , response = t_respond
    where id = r_bekendmaking.id ;
    commit;
    end;
    ===THE RESPOND=============
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
    <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
    </HEAD><BODY>
    <H1>ERROR</H1>
    <H2>The requested URL could not be retrieved</H2>
    <HR noshade size="1px">
    <P>
    While trying to process the request:
    <PRE>
    POST /pushxml/pushxml-bm HTTP/1.0
    Authorization: Basic Ymtfc21hcnRob2xkaW5nOllyZXMzdlFR
    Content-Type: application/xml charset=UTF-8
    Content-Length: 2096
    Transfer-Encoding: chunked
    Connection: close
    </PRE>
    <P>
    The following error was encountered:
    <UL>
    <LI>
    <STRONG>
    Invalid Request
    </STRONG>
    </UL>
    <P>
    Some aspect of the HTTP Request is invalid. Possible problems:
    <UL>
    <LI>Missing or unknown request method
    <LI>Missing URL
    <LI>Missing HTTP Identifier (HTTP/1.0)
    <LI>Request is too large
    <LI>Content-Length missing for POST or PUT requests
    <LI>Illegal character in hostname; underscores are not allowed
    </UL>
    <P>Your cache administrator is [email protected].
    <BR clear="all">
    <HR noshade size="1px">
    <ADDRESS>
    Generated Fri, 12 Aug 2011 17:33:24 GMT by asd2cc001.asp4all.nl (squid)
    </ADDRESS>
    </BODY></HTML>

    Always check the access_log and error_log files of the Apache web server in such a case. This will identify whether the error comes from Apache itself, mod_plsql, the Apex run-time engine, or the Oracle database.
    I see that you're creating a HTTP/1.1 in PL/SQL - however, the web server response indicates a HTTP/1.0 call was received. Unusual. And could be part of the problem.

  • RESTful webservice with Jersey

    Hey all,
    I'm building a RESTful webservice with Jersey on top of my EJB layer.
    This all goes well, the simple CRUD operations seem to work, but now I seem to have some trouble to add the extra functionality.
    I've got a category which I can get by id through: http://localhost:8080/RealEvaluatorWeb/resources/categories/id (with id the integer that I need).
    This is done by CategoriesResource method:
    @Path("{idCategory}/")
        public CategoryResource getCategoryResource(@PathParam("idCategory") Integer id) {
            CategoryResource resource = resourceContext.getResource(CategoryResource.class);
            resource.setId(id);
            return resource;
        }Now I want to add that a category can be found by his name, so like this: http://localhost:8080/RealEvaluatorWeb/resources/categories/name (with name the string that I need).
    I thougt I just had to add the following method:
       @Path("{name}/")
        public CategoryResource getCategoryResource(@PathParam("name") String name) {
            CategoryResource resource = resourceContext.getResource(CategoryResource.class);
            resource.setName(name);
            return resource;
        }but then my server log spits out following error message:
    A resource, class service.CategoriesResource, has ambiguous sub-resource locator for URI template {name}/, which matches with template {idCategory}/So can anyone help me and tell what I should add to be able to search by name?
    Thanks!

    OK got it solved by my self.
    Solution:
    Define a RESTFUL (POST, PLSQL) Service with the following HEADER parameters:
    authorization          authorization     IN     STRING
    X-APEX-STATUS-CODE     status          OUT     INTEGER
    As per RFC 1945, the Authorization header value should contain the username:password
    as encoded (base64) string. That is what the RESTclient send (over https)
    In the PLSQL i decode :authorization and validate it against APEX Authentication Scheme.
    The result of the validation drives the response header (:status) in PLSQL with 200 (ok) or 401 (Not Authorized)
    -- Klaus

  • Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API

    Hi All,
    In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
    Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
    3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
    Error within screenshot are : status Code : 409
    status Text :conflict
    For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
    my code is
    function PerformUpload(listName, fileName, listItem, fileData)
        var urlOfAttachment="";
       // var itemId = listItem.get_id();
        urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
        // use the request executor (cross domain library) to perform the upload
        var reqExecutor = new SP.RequestExecutor(appWebUrl);
        reqExecutor.executeAsync({
            url: urlOfAttachment,
            method: "POST",
            headers: {
                "Accept": "application/json; odata=verbose",
                "X-RequestDigest": digest              
            contentType: "application/json;odata=verbose",
            binaryStringRequestBody: true,
            body: fileData,
            success: function (x, y, z) {
                alert("Success!");
            error: function (x, y, z) {
                alert(z);

    Hi,
    THis is common issue if your file size exceeds 
     upload a document of size more than 1mb. worksss well for kb files.
    https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
    or try the below method
    https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • OSB invoking RESTful webservices:issue with relative-URI instead of

    Hi,
    We have a requirement where we need to pass the request content as string in the URL.
    we need to send the request in the URL like:
    http://abc.com/rest/xvf/nas<Employee><name>abc</name><empid>1234</empid>...<Employee>
    we have used a servicecallout action which is invoking a business service which has the base uri value like:
    http://abc.com/rest
    and in the insert action we are trying to appened the remaining uri in the rest command i.e
    <http:relative-URI>/xvf/nas{fn-bea:serialize($xmldata)}</http:relative-URI>
    here $xmldata is <Employee><name>abc</name><empid>1234</empid>...<Employee>
    while trying to invoke the service we are getting the error like:
    BEA-380000: General runtime error: Illegal character in path at index 36: http://abc.com/rest/xvf/nas& lt ; Employee>& lt ; name>abc& lt ; /name>& lt ; empid>1234>...& lt ; Employee>
    before to that we used fn-bea:inlinedXML and fn:bea:serialize functions on the retrieved xml and stored it into the xmldata variable and this variable is displaying the request in the proper xml file, but while appending it to the relative URI method the xml data is changing as like shown above i.e instead of < it is coming as & lt ; and at the end with out invoking the servie it is stoppeing at the OSB with the above error as illegal character, please advice..
    how to append the proper xml to the URL/URI in the relative-URI method in the proxy transport??
    as here it is coming & lt ; (combined with out space) as < i am changing it as like & lt ; for better understanding
    Thanks..
    Edited by: user12679330 on May 13, 2010 9:36 AM
    Edited by: user12679330 on May 13, 2010 9:40 AM
    Edited by: user12679330 on May 13, 2010 9:40 AM

    Not sure what you are trying to do but if I am not wrong, you are trying to use HTTP get with REST. You may refer -
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/httppollertransport/transports.html#wp1083292
    http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html
    http://blogs.oracle.com/jamesbayer/2008/07/using_rest_with_oracle_service.html
    http://blogs.oracle.com/woa/2009/04/restify_your_world_and_put_it.html
    Regards,
    Anuj

  • Restful webservice with basic authentication

    Hi, i am running the following:
    Oracle: 11.2....
    ApexListener: 2.....
    Glassfish: 3.0...
    Apex: 4.2.1
    I have successfully established some restful webservices. Now i want to add a basic authentication to them against an APEX Authentication Scheme which is used in one of my APEX Applications. I cannot find any documentation related to Glassfish or ApexListener or APEX to do that.
    Or are the RESTful Service Privileges which belong to APEX User Goups intent to do a basic authentication ?
    Thanks for your help !
    -- Klaus

    OK got it solved by my self.
    Solution:
    Define a RESTFUL (POST, PLSQL) Service with the following HEADER parameters:
    authorization          authorization     IN     STRING
    X-APEX-STATUS-CODE     status          OUT     INTEGER
    As per RFC 1945, the Authorization header value should contain the username:password
    as encoded (base64) string. That is what the RESTclient send (over https)
    In the PLSQL i decode :authorization and validate it against APEX Authentication Scheme.
    The result of the validation drives the response header (:status) in PLSQL with 200 (ok) or 401 (Not Authorized)
    -- Klaus

  • Help Needed with getting Started With Office 365 Development C# Rest API

    We have a O365 Tenant Setup with a Federated Active Directory Setip we want to be able to right code that will connect to our tenant and perform basic CRUD operations against it (ex. Creating mail boxes)
    The problem is we want this to be contained in a CLR trigger In SQL so say if a new user is added to our user table then we would create a new AD account for that user and also create a mailbox.
    But I cannot find and example on how to connect to Office 365 using the REST API (Not the SDK because you can not add the connected service to a class library) and before the required actions that we need to do. All the example I have found are with the
    SDK API and/or require window 8 and that is also not an option.
    Please help I do not know where to start, and I would love to see some examples done in c# and not using the SDK.
    Thanks,
    Andrew Day

    Hi,
    >> Instead of SharePoint URLs I would use the O365 API URL?
    Yes, in my sample code, I was accessing the File resource by using the O365 File API. In your case, you need to acquire the token to access the Mail resource and use O365 Mail API.
    By the way, I think the article
    Understand Office 365 app authentication concepts will help you to understand the authentication process in Office 365 Development.
    >> Why can I not use the SDK API with a class Library?
    Actually, you are able to reference the Office 365 .NET SDK in the class Library. But the class library project type was not supported by Visual Studio Office 365 Development Tool. As a workaround,
    you can reference the SDK manually in your project.
    Since your original question is about “getting started with Office 365 Development C# Rest API”, if you have more questions about the Office 365 SDK, I will suggest you posting a new thread
    to discuss the Office 365 SDK. It will involve more other community members to share their ideas and experience on a specific a question and for others who had a similar question could also find the valuable information quickly.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Call secure RestFul WebService with basic authorization via https

    Hi,
    is there a way to call a secure RestFul WebService with basic authorization via https from APEX?
    Database: Oracle 11g XE
    APEX: 4.2.1
    I have a solution by calling the WebService from Java which was called from the database via scheduled job (execute).
    As my hosting partner does not support Java I am looking for another option.
    Regards
    Markus

    Hi,
    I think its not possible, in this link you can find in more detail why.
    Its related with the use of wallets to acess https requests.
    http://www.apexninjas.com/blog/2011/06/https-access-with-utl_http-on-oracle-xe-has-anyone-managed-to-do-this/
    Edit: Because you are using Oracle XE
    Edited by: carlos.pereira on Jan 23, 2013 6:15 PM

  • Getting error response while trying to access REST webservice through Powerbuilder

    Hi Team,
    I am trying to access a rest webservice through powerbuilder 12.5(.net).The rest webservice is secured through basic authentication.I am passing the userid and password through powerbuilder to acess the service,But its returning an error .But while i am trying to accss the same REST webservice through SOAPUI, i am able to get the response.
    Please find the below line of code which i have written in powerbuilder.
    p_testcleint2 lp_rest
    string ls_string
    lp_rest=create p_testcleint2
    PBWebHttp.WebClientCredential lsCredential             //configure credentials
    lsCredential = create PBWebHttp.WebClientCredential
    lsCredential.AccessAuthentication = PBWebHttp.AuthenticationMode.Basic!
    lsCredential.Password='Pa$$word1!'
    lsCredential.Username='admin'
    lp_rest.restConnectionObject.ClientCredential = lsCredential  //add credentials to connection
    try
       lp_rest.PostMessage()
    catch (System.Exception ee)
      messagebox("Failure",string(ee.Message))
    end try
    Error i am getting as below :
    The remote server returned an error:(401) unauthorized.
    Can you please let me know why this error is coming or do i need to any extra paramert in the lsCredential to handle this.
    Thanks in advance.
    Regards
    Subrat

    Hi Chris,
    Thanks for the reply.
    Yes i checked -in fiddler, the basic authentication request is not generating in the fiddler.
    In the same Rest service if i turned off the basic authentication then call is happening in Powerbuilder and its displaying in fiddler also.
    Regards
    Subrat

  • Calling a REST webservice with pl/sql and parse XML

    Hi
    I hope someone is able to help me with this task. I'm newbie with Oracle APEX, have not developed advanced applications yet. A few days ago I installed one of the package application with customer and order. I want to integrate with online shopping with Rest service using PL / SQL. NETS is a provider of online payment systems.
    http://www.betalingsterminal.no/Netthandel-forside/Teknisk-veiledning/Communication/REST/
    There are four steps you must go through to execute the payment. where it is retunert xml files containing infomation to be used further.
    Step 1 - Register payment
    Webshop Performs Register:
    https://epayment-test.bbs.no/Netaxept/Register.aspx?MerchantId=9999997&token=secret&orderNumber=10011&amount=200&CurrencyCode=NOK
    &redirectUrl=http://webshop/RegisterReply.asp
    Reply from payment provider:
    <? Xml version = "1.0"?>
    <RegisterResponse Xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <TransactionId> B127f98b77f741fca6bb49981ee6e846 </ TransactionId>
    </ Register Response>
    Step 2 - Present Web form to customer
    Webshop's customer submit web form:
    https://epayment-test.bbs.no/Terminal/default.aspx?merchantId=9999997&transactionId=b127f98b77f741fca6bb49981ee6e846
    Step 3 - "Redirect" customer back to merchant
    Payment provider send URL to redirect webshop's customer:
    http://webshop/RegisterReply.asp?transactionId=b127f98b77f741fca6bb49981ee6e846&responseCode=OK
    Step 4 - Process payment
    Webshop Performs Process (AUTH):
    https://epayment-test.bbs.no/Netaxept/Process.aspx?merchantId=9999997&token=&transactionId=b127f98b77f741fca6bb49981ee6e846&operation=AUTH
    Reply from payment provider:
    <? Xml version = "1.0"?>
    <Process Response xmlns: XSi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema">
    <Operation> AUTH </ Operation>
    <ResponseCode> OK </ Response Code>
    <AuthorizationId> 064392 </ AuthorizationId>
    <TransactionId> B127f98b77f741fca6bb49981ee6e846 </ TransactionId>
    <ExecutionTime> 2009-12-16T11: 17:54.633125 +01:00 </ ExecutionTime>
    <MerchantId> 9999997 </ MerchantId>
    </ Process Response>
    Webshop Performs Process (CAPTURE)
    https://epayment-test.bbs.no/Netaxept/Process.aspx?merchantId=9999997&token=&transactionId=b127f98b77f741fca6bb49981ee6e846
    &transactionAmount=200&operation=CAPTURE
    Reply from payment provider:
    <? Xml version = "1.0"?>
    <ProcessResponse Xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Operation> CAPTURE </ Operation>
    <ResponseCode> OK </ Response Code>
    <TransactionId> B127f98b77f741fca6bb49981ee6e846 </ TransactionId>
    <ExecutionTime> 2009-12-16T11: 40:57.601875 +01:00 </ ExecutionTime>
    <MerchantId> 9999997 </ MerchantId>
    </ Process Response>
    I really appreciate if anyone can help me with This

    Hi,
    Is there any particular reason you want to call a form through provider API?
    Because when you call a from through
    wwa_api_provider.show_portlet the issue #1 is true (you cannot pass parameteres to a form) and the issue #2 could be resoled by supplying a porltet_record.p_page_url to the current page URL.
    However, there is a form-specific PLSQL APIs to call a form and pass parameters to that from which is describe in our FAQ list:
    http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm#BuildingApplications
    Please see following topics:
    "How do I call a form in insert mode and pass it default values?"
    and
    "How do I call a form and pass it a query condition to be automatically executed?"
    Thanks,
    Dmitry

  • Get elements from external sites with rest

    Hello!!!
    I have a site collection in SPO2013 and i would like to read texts from a Drupal site and show it in my SP site. Is possible to do that with REST? if so, how? Is there some tutorial?
    Thanks!!!

    Hello,
    Yes you can create list items inside your SharePoint site using rest api. here is the simple function for your understating,
    // Adding a list item with the metadata provided
    function addListItem(url, listname, metadata, success, failure) {
    // Prepping our update
    var item = $.extend({
    "__metadata": { "type": getListItemType(listname)}
    }, metadata);
    // Executing our add
    $.ajax({
    url: url + "/_api/web/lists/getbytitle('" + listname + "')/items",
    type: "POST",
    contentType: "application/json;odata=verbose",
    data: JSON.stringify(item),
    headers: {
    "Accept": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val()
    success: function (data) {
    success(data); // Returns the newly created list item information
    error: function (data) {
    failure(data);
    you can refer to the article below which explains basic CRUD operations using REST api  with simple code  examples:
    http://www.plusconsulting.com/blog/2013/05/crud-on-list-items-using-rest-services-jquery/
    Regards,
    Subhash Reddy.
    subhash reddy

  • Restful webservice Internal Server Error PUT POST DELETE

    Hi ,
    When I make a RESTful webservice on the Oracle Cloud with a PUT,POST or DELETE method, the test results is always the same error: "500 - Internal Server Error".
    The GET method causes no problems and gives me the value in JSON format.
    Can anyone help me because I can't find an Oracle example with one of these methods?

    Java Cloud Service does support RESTful WebServices based on JAX-RS 1.1 specification & Jersey 1.9 implementation.
    Please follow the documentation for http://docs.oracle.com/cd/E23943_01/web.1111/e13734/rest.htm#CHDCGFCH (Section Using the Jersey JAX-RS Reference Implementation)
    The required Jersey 1.9 shared library is pre-deployed in all the Java Cloud Service instances , you only need to add the reference of this shared lib in your weblogic.xml.
    The following example shows how to update the weblogic.xml file to use the Jersey JAX-RS RI Version 1.9.
    <library-ref>
    <library-name>jax-rs</library-name>
    <specification-version>1.1</specification-version>
    <implementation-version>1.9</implementation-version>
    <exact-match>false</exact-match>
    </library-ref>

  • Restful Webservice and German Umlaut

    Hello,
    i'm trying to setup a restful webservice using Apex 4.2 and Apex Listener 2, but i have problems regarding german unlaute in the json response.
    To see if its a configuration error on my side, i did setup an exmaple on apex.oracle.com and there i get the same results.
    I added a now row to the table emp, with just the ename as 'öäü'.
    Please see the example at http://apex.oracle.com/pls/apex/dwtest/getEmp/
    The result looks like this:
    {"next":{"$ref":"http://apex.oracle.com/pls/apex/dwtest/getEmp/?page=1"},"items":[{"ename":"öäü"}]}It should look like this:
    {"next":{"$ref":"http://apex.oracle.com/pls/apex/dwtest/getEmp/?page=1"},"items":[{"ename":"öäü"}]}The interesting fact is that i sometimes get the desired output, but its net reproducible to me. As browser i tested Firefox, Chrome, IE9 and Opera.
    I wonder if i configured something wrong in my browsers or in apex.
    If you would like to take a look at the webservide use these credentials:
    Workspace: dwtest
    Username: testuser
    Password: forum
    Thanks for help in advance.
    Regards,
    Dirk

    Do you think this could be related to the problem described here? {thread:id=2519567}?
    Howard

  • Report data ( value ... tag) missing in the Webi report retrieved through RestFul Webservice

    I am trying the below URL to get the WEBi report from SAP BO using the Rest Webservice support that is now available.
    http://{serverIP:serverPort}/biprws/raylight/v1/documents/{documentId}
    I am able to get the report but as I compare the same report response when using SAOP Webservice, there seems to be a mismatch in the response. Here is what I see in the SOAP response:
    </td><td c="1" ><cell  ref="1.E.4t" bid="14" h="26" w="231" pad="6,7" sid="-10"><ct >Some arbitrary value</ct><value type="xs:string">Some arbitrary value</value></cell>
    But when I run it through REST, I am missing the <value ..> tag:
    </td><td c="1" ><cell  ref="1.E.4t" bid="14" h="26" w="231" pad="6,7" bt="1" sid="-10"><ct >Some arbitrary value</ct></cell>
    Apart from this right at the start of the xml response, I see some property mismatch as well.
    SOAP has this property extra:
    <property name="output.format.xml.valuemode">yes</property>
    While REST has these property extra:
    <property name="output.format.xml.option.style">1</property>
    <property name="output.format.xml.styledict.fontplatform">html</property>
    <property name="output.format.xml.td.bandinfo">yes</property>
    <property name="source.selected">data</property>
    <property name="xelement.xml.object">yes</property>
    <property name="xelement.xml.object.usemap">yes</property>
    <property name="xelement.xml.object.usersupportedformat">image/png</property>
    I am not sure if:
    the <value ...> tag miss is because of these missing/extra properties or
    current REST support has some issues
    For my application the value tag is a must and I can't do without this, but with REST it seems no way to obtain that.
    Any help or pointer(s) in this regard is appreciated!

    Hello Milind,
    According to our Product Owner Sam Polichouk, the solution should be available for you in 4.1 SP3, which is currently scheduled for release by the end of March 2014 (subject to change).  The product team recommends that you get the raw, unformatted data values from within the Dataset specific call.  This data contains a type to tell the end user what kind of data it is, so you can format it or use it properly.
    The updated documentation for the SDK will be available at SAP BusinessObjects Business Intelligence platform 4.1 – SAP Help Portal Page once the Support Pack is publicly released.

Maybe you are looking for

  • PC Suite Updates not uninstalling previous version

    I installed the original PC suite that came with the N95 (several months old now but new phone for me) and then realised I needed a new PC suite so upgraded. The software states that new versions will replace the old one but I still get the original

  • Is it possible to save part of a song in Garageband?

    Hello, I am just wondering if there is a way to save part of a song in Garageband. I used some arrangements to a song I'm using. I labeled one part, "Part 1," the next part, "Part 2," the next part, "Part 3," etc. I want to save each part individuall

  • Can't update library item in object library

    I used to be able to update library items, and did so often. Now the "Update library item" option is not just grayed out-- it's gone from the panel menu. In order to update an item, I have to drag it to the page, update, then delete the corresponding

  • Can you please get rid of the alot tool bar and web site?

    I need to get rid of the alot tool bar

  • System using too much RAM?

    I just launched the Activity Monitor. With basically nothing open except for a few widgets and the activity monitor, it says my system is using 600 MB of RAM... that can't be right can it? It says it has 402 MB free. could there be something wrong? I