Call to webservice times out

I'm trying to connect to a web service using the stubs generated by wscompile. Problem is that the call to the web service times out after about 25 seconds. The call can take up to 5 minutes.
Where can I specify how long should the web service wait until time out?
This is the code I'm using to connect...
public void test() {
        try {
            Stub stub = createProxy();
            ComEnd2EndmobilePai14000WebservicesIvrIVRWSGetNavigationTreeResponse response;
            stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,
                "http://opt.e2e-center.com/live/cp/services/ivr");
            IVRServiceEndpoint_Stub Ivr = (IVRServiceEndpoint_Stub)stub;
            response = Ivr.WSGetNavigationTree("935551234", 0, "MOT", false);
        } catch (Exception ex) {
            ex.printStackTrace();
    private Stub createProxy() {
        return (Stub) (new IVRServiceEndpointService_Impl()).getIvr();
    }this is the error:
java.rmi.RemoteException: HTTP transport error: java.net.ConnectException: Connection timed out: connect; nested exception is:
        HTTP transport error: java.net.ConnectException: Connection timed out: connect
        at sandbox.end2end.webservice.IVRServiceEndpoint_Stub.WSGetNavigationTree(IVRServiceEndpoint_Stub.java:534)
        at end2endwebservices.MainWindow.test(MainWindow.java:41)
        at end2endwebservices.MainWindow.<init>(MainWindow.java:27)
        at end2endwebservices.Main.main(Main.java:28)
Caused by: HTTP transport error: java.net.ConnectException: Connection timed out: connect
        at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:140)
        at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:96)
        at sandbox.end2end.webservice.IVRServiceEndpoint_Stub.WSGetNavigationTree(IVRServiceEndpoint_Stub.java:518)
        ... 3 more

I'm starting to think this has to do with my proxy.
When compiling the Stub classes I used the command:
wscompile -gen:client -httpproxy:proxy3.whirlpool.com:8080 temp.xml
In the code I see no option to force the webservice to use a proxy. Could someone help me on this?
Thank you,
S�rgio Bastos

Similar Messages

  • HT204380 I have done all the above. I am in Germany using an iPad 2, trying to call an iPad 2 in the UK. My IPad goes through the call and then times out. I have been on the phone to the receiver at the time so know they had their iPad on.

    I have done all the above. I am in Germany using an iPad 2, trying to call an iPad 2 in the UK. My IPad goes through the call and then times out. I have been on the phone to the receiver at the time so know they had their iPad on.

    What do you mean that you can't "call" an iPad in the UK??  That doesn't particularly make sense.  You can email to an iPad or text them, but the iPad is not a phone, so how do you expect to "call" them??
    Hope this helps

  • BOMUpdate WebService times out

    Hi,
    When I am running the BOMUpdate web-service with a BOM containing 1771 Bom components it times out after 10
    minutes. A BOM Update with 1071 components does not time out, but anyway take about 4 minutes to finish.
    Have anybody experience with BOM Update web-service and can give me a hint about how long it normally should take?
    I am running 5.2.5.12.
    Br,
    Johan Nordebrink

    Hi,
    You can try splitting the load to multiple buckets and running each bucket in a separate thread. I assume you can safely run 10 concurrent threads to import BOMs assuming BOMs are independent from each other.
    Also instrumentation of the database side and identifying any bottlenecks there (for example specific SQL statements that take significantly longer than the rest) can provide opportunities for further performance improvement without core modifications.
    Regards,
    Mikhail

  • Connection time out error when calling a webservice on ICF

    Hi
       We have a webservice exposed on ECC 5.0 on the ICF. However, when we invoke the webservice - after 10 seconds , we get a error message
    Error reading server response: The operation has timed-out
    I checked ICMAN parameters
    icm/conn_timeout - and set its new value to 50000 ms ( 50 secs ) - the connection still timed out when the webservice tooks more than 10 seconds to process.
    icm/keep_alive_timeout - I don't see an option to change the new value for this parameter
    What am i missing here - how can I set the connection not to time out uptil say 45 seconds - what parameter do I change here ?

    I partly agree with Kaustubh,
    if you test the service from within SICF the parameter SAPLOCALHOSTFULL (FQHN = Fully-Qualified Host Name) is taken to build the test URL. If this host name is not correct resp. cannot be resolved by the server, you will run into an error.
    icm/host_name_full is only taken if SAPLOCALHOSTFULL is not maintained.
    So first of all you shold check this parameter befor increasing timeout parameters at random.
    If the parameter does not solve the problem, you should have a look into the ICM trace file (dev_icm) and search for "ERROR".
    Regards,
    Stefan

  • Calling SAP Webservice from JAVA ME bad response time

    Hello together,
    I'm calling a SAP RFC as a Webservice from JAVA ME (Netbeans 6.8). The stub classes I've generated with the Sun Wireless Toolkit. The RFC function stores entries in a SAP database table. The call of the websevice with transmitting the data and the database update in SAP works fine, but I got the response message from SAP with a delay of 40 seconds.
    Does anyone know why there is so a long delay in the response and how to fix it?

    hi,
    is this reproducible or was it just the first call to that service?
    it usually occurs that once you call a webservice for the first time, some of the programs (be it your application programs or the even the SOAP runtime itself) required have not been compiled until that and so they are compiled during the webservice call.
    This leads to slow response times even time-outs. The effect vanishes once all sources are compiled (i.e. depending on the complexity of your calls after one to a few calls to that service).
    So, if the slow response times persist, you should turn on debugging in SICF and see where time is spent...
    my 2 cents,
    anton

  • Can you change the legth of time (or number of rings) it takes for on iphone 4 to time out making an outgonig call?

    Can you change the legth of time (or number of rings) it takes for on iphone 4 to time out making an outgonig call?
    Mostly it's to call in for radio contests. The Iphone is really good at making a quick call, but it seems to timeout after 15-20 rings. I realise this is a small thing, but free tickets is free tickets.
    Most commenst I see is abotu incoling calls, not outging.
    Thanks.

    No. You can't do this with any phone.

  • Time out calling CCM 2.0 from SRM

    Hi All,
    I have a CCM 2.0 (CSE & CAT) system on the same box as SRM 5.0. I've set up the integrated call structure and entered a user in the SICF service but when I try to access the catalog via SRM, I'm getting a message saying "Your session has timed out - call up SAP Catalog Search Engine again in SRM."
    Does anyone have any ideas as to why I may be getting this?
    Thanks,
    Paula.

    Hi Paula
    We had faced the same problem.
    Actually when we click on the Catalog URL and on next screen it gave an error "Error Time out Session ......"
    The message was same as you are receivng.
    Solution -
    1 We had gone to Internet Explorer >tools> Internet  options --> Security tab
    Click on the custom level button choose the option "Low"
    for Reset  button
    2 Click on trusted sites (In security tab)
    Click on the sites button add the URL (Domain name and the server name )Add that as a trusted site.
    3 Go to Advance tab and click on restore defaults and click on apply button
    After this check the URL for Catalog in SRM web browser the error should disappear,
    Rgards,
    Nimish Sheth

  • Set time out for single webservice in NWDS 2004s

    hai,
      i created webservices for session bean.created webservices are consumed by webdynpro client.
    when the webdynpro client consuming it.if the response takes more than 60 sec the webservices are timed out so i want to set the time out for my webservice.
    how can i set the time out (more 60 sec)for my webserive(for one service)?
    thanks in advance.
    Edited by: lakshman balanagu on Jun 24, 2008 11:20 AM

    Hi
    Try out this thing: I am not sure as I have not done this.
    Go to this link: http://<server>:<j2ee port>/nwa --> System Management --> Overview --> Configuration
    Application Resouce ( Select your resource from the list)
    Check for "Connection Pooling".
    Here you can check different options.

  • Caller 70 is missing time out (short dump)

    when I was trying to load transaction data into cube , it was failed
    the error message was :
    short dump : caller 70 is missing
    I checked in st22 , it shows that <b>time out</b> .
    when check in r/3 side , extraction was over and job was finished.
    data is coming upto PSA & is not updating into data target and geting failed after some time.
    can any one give me suggestion.
    thanks in advance
    Ram

    Hi Ram.
    We were getting the same message.  SAP recently published note 631668.  It suggests dropping the InfoCube indexes before the load and then rebuilding them afterwards.
    I set our system up to do that last night.  We didn't get the error last night, but a single set of loads is not enough to make me say that it works.  But it might be worth trying in your case.
    Regards,
    Adam

  • OSB - Response timer when business service call external webservice slowly.

    I am a new bie about OSB, i am developing and testing business service OSB call external webservice. When i test by business service on osb console then time response is 10s, but when i program by C# call external webservice then time response is 0,000026s.
    pls help me.

    I am a new bie about OSB, i am developing and testing business service OSB call external webservice. When i test by business service on osb console then time response is 10s, but when i program by C# call external webservice then time response is 0,000026s.
    pls help me.

  • EndInstall() Call Returns Zero But SAP Still Times Out?

    Hi,
    I have an add on installer where the setup.exe file was created and compiled using InnoSetup. Since switching from 32 bit to 64 bit it has been a struggle since there is so little documented by SAP on this. I finally found out that we cannot call the EndInstall and EndUninstall functions directly in AddOnInstallAPI_x64.dll like we could in AddOnInstallAPI.dll for 32 bit add ons. I created a Visual Studio wrapper project that contains the calls to EndInstall and EndUninstall and I launch that compiled executable at the end of my setup.exe installation procedure. I have logging inside the wrapper which gives me the result of the EndInstall call and it is returning a 0 which means it was successful. Even still, SAP still sits until it times out and tells me the add on registration failed and it needs to be corrected. Oddly enough, if I run my wrapper executable manually right at the end of my installer, SAP does get the signal and says the add on was installed successfully.
    I need to get this resolved so I can do a required add on upgrade. Has anyone else experienced this?  Is there any way yet that we can call the 64-bit functions directly from the DLL file yet?  Why has SAP not addressed this yet?
    Thanks,
    David

    Hi Pedro,
    I've tried both EndInstall and EndInstallEx directly from the 64 bit DLL but neither worked. Here was my code in InnoSetup to call EndInstallEx.
    function SetAddOnFolder(Path: String): Integer;
    external 'SetAddOnFolder@{code:TargetDir}\extern\AddOnInstallAPI_x64.dll';
    function RestartNeeded(): Integer;
    external 'RestartNeeded@{code:TargetDir}\extern\AddOnInstallAPI_x64.dll';
    function EndInstallEx(Info: String; InstallSucess: Boolean): Integer;
    external 'EndInstallEx@AddOnInstallAPI_x64.dll';
    function GetCustomSetupExitCode: Integer;
    var
      nResult: Integer;
    begin
    nResult := EndInstallEx('', true);
    end;
    You think this should actually work?
    Thanks,
    David

  • Cannot transfer response group calls that are parked and time out

    Hello all,
    Need your help with a peculiar issue. The deployment consists on one Lync Server 2013 Front End server acting also as mediation server. Communication with the PSTN is through a ITSP (no SBC on place).
    There is a response group created for the main line (the office's published number) that plays a greeting and then it sends the call to a queue (in attendant mode). Any user available picks up the call, puts it on park and IM'es the final recipient (which
    uses any phone to pick up the call). Everything works as expected, except when the call in the parking lot times out, it rings back on the client that picked the call first, but when he picks it up, it doesn't show the options to transfer the call. The top
    of the call window says "Connecting call...", but the call is connected and the person is able to talk with the person that was on parking.
    I have reviewed the client's log file using Snooper, and there is not errors. In the CDR records, everything seems normal.
    The curious thing is that if the call goes directly to the user (using his DID or on a Lync to Lync call) and the calls is parked and it times out, it connects normally, and the user can transfer the call or put it on parking again. The problem happens only
    whit calls that are pick up from the response group.
    Any ideas?
    Patricio Carpio.

    Please check if this issue happens with other Response Group agent.
    As the status “Connecting call” exists, this may cause the option “transfer the call” missing.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Facing Time out after 270 sec through webservice.

    Hello all,
    I am invoking PDF generator for Postscript through webservice along with a cofiguration xml which has timeout set to 10000. But the service doesnot recognise this value & always gets timed out at 270 sec which is its default value.
    I tried converting a PS file to PDF using the GUI by setting the timeout parameter to a higher value than 270 but it still got time out at the default value.
    Please help me solve this prob...
    Thanks in advance.
    -Vineesh.

    Which version of Java?
    Which web app server/db and version?
    Does it work for small (<10Meg files)?
    I've never needed a timeout over 4 minutes even for 500Meg+ PS files, although I'm interacting through the EJB interface, not the webservice.
    I believe there may be some way to increase the timeout further, although I think it involves editing configuration files within the ear/war/jar structure of the deployed libraries; the 270 second value does appear in native2pdfconfig.xml in the pdfg-all.ear on the professional version of PDFG, although I don't have time to test whether this value actually has an effect on the maximum timeout. It may appear elsewhere too. And I'm not sure if it will be in the same location in the postscript only version.

  • Phone Time Out Causing Dropped Calls

    Hi,
    When I'm on talking on the phone for more than a couple minutes  the screen times out which causes the call to be dropped during mid-conversation. Is there a setting to prevent this from happening?
    Current Settings:
    Security Timeout is set for 1 HR
    Allow Outgoing Class While Locked - Yes
    Current OS: 4.6.1.231

    Actually, now I don't think this is related to the screen turning off. In fact the calls aren't being dropped either.
    For some reason, during some calls I'll be able to hear the person fine one moment and then not be able to hear them the next while still being connected with them able to hear me.
    What can I do to get this fixed?

  • SOAP synchronous channel specific call time out configuration

    Hi,
    This is regarding channel specific timeout configuration in SOAP sender and receiver channel.
    We are having SOAP to Proxy synchronous web services. One of the web service is taking longer to execute the RFC's in ECC and getting the results back to PI.
    The error we are getting is Message Expired in soap ui and PI logs.
    When I checked the execution time it says 301165 ms from soap ui.
    The default setting of XI is 180000 ms i.e 3 mins.
    I configured channel specific time out in both sender and receiver channels. Now the configuration has timeout of 600000 ms. Below is the screen shot.
    SENDER:
    RECEIVER:
    But still the message is getting timed out and below is the error:
    Unable to contact target server XXXXXXXX:8000 after 1 tries.
    Below is the error log from PI :
    Please suggest the solution. I am not sure whether its actually  taking the specific configured time.
    Thanks,
    Vertika

    Hi Vertika,
    Please check
    SAP Note 1660913 - SOAP/XI Adapter - XI.Timeout parameter support in 7.30+
    For soap sender channel
    SAP Note 1644846 - Parameter syncTimeout doesn't work under SOAP sender channel
    regards,
    Harish

Maybe you are looking for