TNS timed out error while testing REST service

4.2
11g
Hi There,
We had a new application which was to get and post data using REST API which connects to an internal server. This works fine when we use the Google Chrome Advance REST application through the browser, but get a TNS timed out when trying through Apex
Even a simple sql in the SQL workarea in Apex throws the same error
select utl_http.request( 'http://ourserver.com/api/subscriptions') test
from dual;
ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-12535: TNS:operation timed out
Any idea, what the issue could be?   Works fine from the browser though using a REST client
Trying this for the first time.
thanks,
Ryan

Hi Ryan,
During your installation, did you follow the steps to enable Network Services, which is one of the requirements when using web services in APEX.  You'll find the necessary information in the installation guide.   Also in your utl_http.request call, have you tried specifying a proxy, if one is required?  You might also want to take a look at at apex_web_service API, specifically the make_rest_request function, which might be useful if you're looking to invoke a RESTful Service via PL/SQL in your application.
Regards,
Hilary

Similar Messages

  • Request timed out.- Error while opening a item in Blog

    Hi,
       We have a blog in our share point portal which was running properly before few days.
    We get Request Timed out error while opening an item in the blog. The list contains about        
       3500 items
    [HttpException (0x80004005): Request timed out.]
    We were able to create a new item but not able to view the item.
    When we check the server SQLSERVR.EXE takes more than 90% of the CPU Usage.
    Please let me know how to resolve this issue.
    Thanks,
    Vanitha

    Hi,
    According to your description, Please check the RAM allocated to your SQL server. MOSS server needs 2GB RAM
    to preform well. SQL requires 2GB RAM for optimum performance.
    Messages like this are mainly due to lack of RAM Allocation.
    Best Regards
    David Hu

  • TNS Timed out error when connecting from internet

    All,
    Apologies if I am missing something simple...
    I have set up a test 9i database on a Win 2003 Server, and I can connect to it fine from within my LAN. I am trying to connect to the same database from the internet, but am getting a TNS:Operation timed out error.
    I believe I have set everything up correctly:
    -Port Forwarding port 1521 on my simple Linksys router/firewall
    -TNSPing gives me a sub-second OK (from the internet)
    -I can get a TNS:listener could not resolve SERVICE_NAME error if I purposely screw up the service name in the tnsnames.ora file (proving, I think, that I can connect to the Listener from the outside internet)
    Am I missing something simple? Why can I ping the listener but not get a response when trying to connect to the database (database is working, I can connect from within my LAN)?
    Do I need to download and install the latest release for Win Server 2003?
    Thanks,
    Chris

    Thanks for your response, Michael..
    Is this something new in 9i? The reason I ask is that I swear that while working on another project last year I was able to set up a development 8i database in my home office and was able to allow my client hit this database from their own location (in Peru, via the internet) using a vb.net app that I had built. The only thing I did on my home router was to forward port 1521.
    If my memory is wrong or things have changed since then, then what other ports other than 1521 are used to connect? Security is not really an issue, as I am just trying to set up a test database in order to Q/A an application I'm building.
    Thanks in Advance,
    Chris

  • Error while testing Data Service

    Hi Experts,
                   I got error while testing the Data service of <b>Salesorder Createfromdat2</b>, in this when iam entering the Doc_Type as ZORD it is showing " This Doc type is not defined, what to do with this. Where as when i tried with WebDynPro its not showing any error with that perticular field.
    Plz help me out wether to change some configurations....
    Thanks @ points,
    Kishore
    Message was edited by:
            kishore kumar

    HI kishore
       This is the problem with ur RFC/data inside table. in webdynpro we r using adaptive RFC model, if RFC is giving output while executing, webdynpro will also do the same. but in VC it will parse each field according to the meta data definition, If it is not matching it will give error.
    Regards
    Pradeep P N

  • Connection Timed Out error while saving messages in Solution Database

    Dear Experts,
    I have configured trex in solution manager..while saving service messages in 'Solution Database' i used to get "page cannot be displayed" now iam getting the fallowing error..please suggest any changes required..
    500 Connection timed out
    Error: -5
    Version: 7000
    Component: ICM
    Date/Time: Thu May 14 15:11:24 2009 
    Module: icxxthr.c
    Line: 2698
    Server: Host_<SID>_<Sys no>
    Error Tag: {-}
    Detail: Connection to partner timed out after 60s
    Regards,
    Babu

    Hi Babu,
    you might try the following on the server where the problem occurred: call transaction SMICM -> Goto Services -> Select the service you are working with ->
    Service Change -> increase value for "Max. Processing Time"
    In case your application still times out you should see the changed value displayed.
    Sometimes just executing the application again 2-4 times might help, because compiling might happen and is taking some time in the system.
    With regards to parameters see also SAP Note [824554|https://service.sap.com/sap/support/notes/824554].
    Best regards,
      Andreas

  • Timed Out Error while waiting for response from DB Procedure

    Hi Gurus,
    We are encountering a problem in our production environment. The system is implemented using AIA foundation pack 2.5 on SOA suite 10.1.3.4.
    We have a BPEL process A which calls an ESB Service which inturn calls BPEL Process B. In process B, we have a DB procedure call which waits for a response from
    a DB procedure. The procedure doesn't reply on time and Process B remains in waiting state to get the response from DB Procedure wherein Process A errors out by showing as "Timed Out Error".
    This issue is intermittent and we have already increased transaction-time outs in transaction-manager.xml to 7200 and ejb-orion-jar.xml to 3600.
    When we encountered this problem, we found out that there are too many connections open and when we bounced the server, everything was restored to nornal but as it is a production env. we can't do it over and over again.
    We have 2 nodes each having max connections as 100 and min. as 0.
    Is there a limit to max no. of connections or can we do something in DB side to ensure that it doesn't happen again ?
    Please suggest.
    Thanks,
    Vikas Manchanda

    Hi Gurus,
    We are encountering a problem in our production environment. The system is implemented using AIA foundation pack 2.5 on SOA suite 10.1.3.4.
    We have a BPEL process A which calls an ESB Service which inturn calls BPEL Process B. In process B, we have a DB procedure call which waits for a response from
    a DB procedure. The procedure doesn't reply on time and Process B remains in waiting state to get the response from DB Procedure wherein Process A errors out by showing as "Timed Out Error".
    This issue is intermittent and we have already increased transaction-time outs in transaction-manager.xml to 7200 and ejb-orion-jar.xml to 3600.
    When we encountered this problem, we found out that there are too many connections open and when we bounced the server, everything was restored to nornal but as it is a production env. we can't do it over and over again.
    We have 2 nodes each having max connections as 100 and min. as 0.
    Is there a limit to max no. of connections or can we do something in DB side to ensure that it doesn't happen again ?
    Please suggest.
    Thanks,
    Vikas Manchanda

  • Error while testing the Service Provider

    Hi All,
    I have developed a WebService model for Purchase Requisition scenario and followed all the steps of the Duet Developer Guide up to creating the SCL Business Object.
    While testing the service on SAP side, when I execute the server proxy and in XML editor I passed the inpur values
    Release Group :B1
    Release Code : A1  for bapi    BAPI_REQUISITION_GETITEMSREL,
    Got the errors as below:
    - <n0:StandardMessageFault xmlns:n0="http://myDuet.com/xi/PR">
    - <standard>
      <faultText>Proxy Class (generated)</faultText>
    - <faultDetail>
      <severity>error</severity>
      <text>Non-Retriable Exception with message: The SAP system could not process your request. Contact your administrator</text>
      <id>110(/IWFND/CM_COS)</id>
      </faultDetail>
    - <faultDetail>
      <severity>error</severity>
      <text>0 GSI implementations for Object Type 'ZPRGET_ITEMS_REL', Version 'ECC_604', Consumer ''</text>
      <url>http://DUETBCCPL.bharathicement.com:8000/sap/xi/docu_apperror?ID=NA&OBJECT=%2fIWFND%2fCM_COS010&LANGUAGE=E&MSGV1=0&MSGV2=ZPRGET_ITEMS_REL&MSGV3=ECC_604</url>
      <id>010(/IWFND/CM_COS)</id>
      </faultDetail>
    - <faultDetail>
      <severity>error</severity>
      <text>The SAP system could not process your request. Contact your administrator</text>
      <url>http://DUETBCCPL.bharathicement.com:8000/sap/xi/docu_apperror?ID=NA&OBJECT=%2fIWFND%2fCOD011&LANGUAGE=E</url>
      <id>011(/IWFND/COD)</id>
      </faultDetail>
      </standard>
      </n0:StandardMessageFault>
    And got the status message as
    Call Failed
    I tested the bapi in SAP Backend system, its working fine.
    Can any body look into it where it is going wrong.
    Thanks & Regards,
    Kris

    Hi all,
    Issue has been resolved.
    Thanks
    Kris.

  • Timed Out error while executing BI report in Portal

    Hi Experts,
    When we are trying to execute a BI report which returns over 9 lac records, it is taking lot of time to get executed and then its throwing the timed out error.
    Can anyone help me resolving the issue?
    Is this a problem with the performance of Portal server or its just due to the huge amount of records that are being retrieved?
    Thank You.
    Regards,
    Murthy.

    I havent got any solution regarding this. But, due to constraint regarding number of open Question in the forum, I am closing this and as there is not other way I am marking it as answered.
    Please suggest any other way to close the thread if this is not the right way.
    Thank You.

  • Read timed out error while opening monitor tab in DataServices

    Hello all,
    Am getting a "Read timed out" error when I try to open the monitor tab in DataServices admin console for a few jobs only. For several jobs, monitor tab opens just fine. But for a few it doesnt and throws the error mentioned above. Mostly this behaviour is noticed with a job having several workflows and dataflows.
    The version of DS used is 12.1.0.0. Tried to gather some info on this issue, but couldnt find any relevant thread. Would really appreciate if anyone could help me with it.
    Regards,
    Prem

    check the following post
    http://www.forumtopics.com/busobj/viewtopic.php?t=148213

  • "timed out" error while transferring music and videos

    Hi,
    I use iTunes 8.1.0.52. When i connect iPhone and start transferring music or videos it simply throws out "device timed out" error. What do i do? do i have a solution for this problem? My iPhone is updated with latest software 2.2. Any suggestions?

    try using a different USB port on your computer. i've seen this before in the forum, and the problem was a bad USB port.
    are you plugging in directly to your computer, or through a USB hub? from what i've seen, you can not use a USB hub.

  • Require help to solve Connection timed out error while reload initial data

    Dear Developers,
    I have installed SAP NetWeaver and SAP ME SDK 2.0 on my laptop and working from offshore, the SAP ME WIP and ODS database is situated at onsite. The installation is working fine, however, after developing Activity Hooks, at the step where I need to Reload Initial Data for the Site where I want the Activity to be used I get the below error message:
    500 Connection timed out
    Error: -5
    Version: 7011
    Component: ICM
    Date/Time: Wed Mar 07 12:37:38 2012 
    Module: icxxthr.c
    Line: 4184
    Server: <laptop_hostname>_<SID>_00
    Error Tag: {-}
    Detail: Connection to partner timed out after 600s
    © 2001-2009, SAP AG
    How to find out what is causing this error? When I use the hostname of the onsite SAP ME application pointing to the same database, Reload Initial Data works fine. I need to reload initial data from laptop SAP ME application only, beacause the activity hook classes reside on my laptop, before I send the SAPME.sca files for common server build.

    Hello,
    Please try to increase PROCTIMEOUT ICM parameter for the corresponding server\port. If it does not help, please, check NW default traces for ME errors and share your results with us.
    Best regards,
    Alex.

  • TNS:Operation Timed Out error while trying to invoke BPEL Process from sql

    Hi,
    I am trying to invoke a BPEL Process from PL/sql code. When i try to invoke the process, I am getting the following error message
    ORA-29273 HTTP Request Failed
    ORA:06512: at SYS.UTH_HTTP at line 1029
    ORA:12535: TNS:Operation Timed Out
    ORA:06512: at line 18
    I have the SOA suite installed on my local machine...and the BPEL process that i am trying to invoke is deployed their.
    Any idea what could be wrong..following is the code piece
    soap_request:='<?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header/>
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/Test">
    <ns1:TesProcessRequest><ns1:input>is1_1land</ns1:input></ns1:TesProcessRequest>
    </soap:Body>
    </soap:Envelope>';
    dbms_output.put_line('soap_request: '||soap_request);
    utl_http.set_proxy('3.209.30.25:80', '3.209.32.149:8888');
    http_req:= utl_http.begin_request('http://3.209.32.149:8888/orabpel/default/Tes/1.0 '
                   ,'POST'
                                  ,'HTTP/1.1');
    dbms_output.put_line('after Begin Request' );
    utl_http.set_header(http_req, 'Content-Type', 'text/xml') ;
    Please advise

    you are right the file adapter doesnt invoke any bpel
    process, instead it is polling the file from
    directory location?If it is polling for new files, shouldn't it create a new instance of the BPEL process automatically the moment it finds a new file? In other words, should a new file trigger an instance of the BPEL process rather than being started from PL/SQL?
    Can this file adapter not be invoked as bpel process
    in that case?The file adapter is part of a BPEL process. The BPEL process can be invoked from e.g. PL/SQL.
    In this case this file adapeter return to an RECEIVE
    activity...I think this receive cannot be invoked as
    a BPEL process rite?Can you explain what you mean with this?
    Also , will all synchronous request return "TIMEOUT"
    error, if tried to invoke from pl/sql?Only if the synchronous process instance takes more time to complete (and thus to return) than the value specified for a time-out to occur. If the instance completes in for example 10 ms and the time-out time is specified as 30 seconds, no time-out will occur.
    Regards, Ronald

  • Read timed out error while executing a web service

    hi,
    i have a remote funtion module which takes around 31 seconds in AAD (developing enviroment) server which has around 4 select queries,the same RFC is taking around 25 mins in AAT (testing environment) due to more data.
    Now when i am releasing the respective web service in AAT it is giving read time out error.
    Can anybody please tell me if i can increase the Limit of the execution time at ERP end?
    or anyother solution?
    Edited by: tatavarthi sai lakshmi divya on Mar 28, 2008 11:19 AM

    Hi,
    if you execute in foreground ( dialog ) then it's gives you the time out error.
    check the value of following parameter using tcode RZ11
    rdisp/max_wprun_time
    if you want to change the value run tcode RZ10 select instance profile and change the value of parameter then save and activate instance profile.
    Restart the sap application server.
    regards,
    kausahl

  • The Opration timed out occurred on calling REST Service in Addin in windows 7 ultimate 64 bit

    Hi,
    I have created VSTO solution for Outlook Addin in Visual studio 2010.
    In that on button it will call Java REST webservice and validating the username and password.
    Evrything working fine in few systems.But it showing "The operation timed out" in WIndows 7 64 bit office 2013.
    In other windows 7 machine with office 2010 and 2007 its working perfectly.
    Below is the code :
    var responseMessage = (String)null;
                var request = WebRequest.Create(string.Concat(serviceUrl, resourceUrl)) as HttpWebRequest;
                if (request != null)
                    request.ContentType = "application/xml";
                    request.MediaType = "text/xml";
                    request.Method = method;
    request.keepalive=false;
                   request.ContentLength = xmlRequestBody.Length;                
                ServicePointManager.Expect100Continue = false;            
                //var objContent = HttpContentExtensions.CreateDataContract(requestBody);
                if (method == "POST" && xmlRequestBody != null)
                    byte[] requestBodyBytes = ASCIIEncoding.UTF8.GetBytes(xmlRequestBody.ToString());
                    request.ContentLength = requestBodyBytes.Length;
                    using (Stream postStream = request.GetRequestStream())
                        postStream.Write(requestBodyBytes, 0, requestBodyBytes.Length);
                if (request != null)
                    request.Credentials = new NetworkCredential("Username", "password");
                    //request.ProtocolVersion = HttpVersion.Version11;
                    var response = request.GetResponse() as HttpWebResponse;
                    if (response.StatusCode == HttpStatusCode.OK)
                        Stream responseStream = response.GetResponseStream();
                        if (responseStream != null)
                            var reader = new StreamReader(responseStream);
                            responseMessage = reader.ReadToEnd();
                    else
                        responseMessage = response.StatusDescription;
                return responseMessage;
    Could you please help what could be the reason.Any firewall issue or any serviced related issue.Kidly suggest.

    Hi,
    I have created the windows application using REST Service and tested the application on
    windows 7 64 bit Ultimate edition but I'm getting the same error "The
    operation timed out" attached the screen shot for your reference.
    http://www.screencast.com/t/YeIJxl383a
    I developed the application on Windows 7 Ultimate 64 bit version it is working on my machine. while the executing exe on another windows 7 64 bit Ultimate
    edition which is on the virutal machine Im getting the error.
    There is no visual studio installed on the Virtual machine , i have installed the Dot Net frame work 4.0 client profile on the virtual machine.
    Could you please suggest is there any issues related to opearating system or related to framework.
    Kindly help with some suggestions.

  • Error while testing SAML service in PI7.1

    Hello all,
    I am creating a SAML secured service in PI 7.1
    I have used WS adapter in sender communication channel and reciever as RFC adapter to extract data from the system.
    I have done the necessary config in sender and receiver agreement and created the wsdl manually.
    Now to test that service i have created another component as the client.
    The sender is the SOAP channel and in the receiver, WS adapter is used.
    With these basic configurations, i have created another wsdl file which invokes my previous service.
    When i tested the new wsdl i get an error.
    <SAP:Code area="INTERNAL">WS_LOGICAL_PORT</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error while determining logical port Cannot find logical port for agreement 34CBAC01EBEC3F15813332AC002BD3CF and interface http://atl.tarpon.com/SAPGetAddressSAML_C.MI_Inbound_SAPGetAddSAML_C</SAP:Stack>
    Kindly guide me as to what is to be done for creation of logical port in *NWA as this tool is available for PI7.1 for me.
    Regards,
    Kevin

    Hi Kevin,
    What I meant to say is that there are multiple levels of settings required to enable SAML based communication. I wanted to ask you if you have already done those configurations.
    See the image given at following URL.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/94/695b3ebd564644e10000000a114084/content.htm
    As you can see there is multiple parties involved in the overall SAML authentication process.
    May be following blog will be helpful. 
    SAML Made Simple!
    Regards,
    Vandana.

Maybe you are looking for

  • ITunes Software Problems with Windows 7

    Hallo Community, nach jahrelangem erfolgreichen synchronisieren meines Iphones mit ITunes auf Windows 7, geht plötzlich nichts mehr. Deinstallieren und installieren der ITunes Software hat nichts gebracht. Ein löschen der ITunes Software von der Fest

  • Problems with mobileme syncing ...

    Hi everyone. I'm having massive problems with mobileme sync with my iphone, my macbook and MacPC G5. Essentially I want the iphone contacts and calender data to overwrite anything on laptop and pc but I keep getting message that contacts couldn't be

  • Dump when switching to a different variant

    Hi all, I am a freshman for FPM, and currently I have met a issue when using it. You know I want to switch to a different variant, but when I click the switch button, dump occurs: Dump Info---- Note The followin error text was processed in SD7 the sy

  • Best Practice Clean Install (Same Old Chestnut for Sure)

    OK, I'm sure the answer is somewhere in this forum but each part is so spread out and I'm getting the sequence mixed up on the best way to make the transition to Tiger in consideration of my current setup. So, thanks in advance for being patient and

  • Creative Suite 5.5 on windows 8

    When I download the installer and zip file, it tells me I cant. It seems to be the problem of the Zip file. It also may be that I am running Win. 8 Please help!