Set timeout for dynamic web service call in wls

Hi,
I have a dynamic client using Call interface to invoke 3rd party web service. How can I set the timeout for the call? I know there is a property to set for static client.
Thanks

Have you checked out the stub properties:
weblogic.wsee.transport.connection.timeout
weblogic.wsee.transport.read.timeout
http://edocs.beasys.com/wls/docs92/webserv/client.html#wp228628

Similar Messages

  • Problem in passing/returning objects over dynamic web service call

    Hi Friends,
    I am beginner in java web service.
    Here is the problem I am facing when I pass/return user defined objects to remote web service method using dynamic we service call.
    The client can call the remote web service method in 2 ways.
    1. By generating client stubs using WSDL file
    - In this case, I am able to pass/return the user defined objects to remote method without any issue only when the server side web services are deployed in any server(jboss)
    - But in java 1.6 & above, the web services can be deployed without server using endpoint. In this case, I am not able to pass/return objects over web service calls.
    2. Without generating client stubs (dynamic web service call)
    - This will establish a connection at run time using the given WSDL file (I have attached the document). I have to form an XML(This will contain API name, arguments) string as input at run time
    - In this case, it allows only string as argument while passing & returning.
    Please let me know if you can help me on this.
    Regards,
    pani

    I'm not sure about your question, but this might help:
    [http://forum.java.sun.com/thread.jspa?threadID=5251188|http://forum.java.sun.com/thread.jspa?threadID=5251188]
    You might also want to read on JAXB.

  • How to set a timeout on the web service call

    I can use Business process or JCD wrapped as business process. I need to send a web service request and wait for 2 seconds, if the response doesnot comeback within the 2 second time frame, I need to raise the fault message and publish it to queue. Webservice external system, doesnot have configurations for the duration of the web service call, Is there any better way of getting this accomplished.
    thanks
    Kiran

    This can be solved quite easily if you use BPEL... but I think you also could do it in a JCD.
    What you need to do, is to delegate the actual web service call to a "sub service". Then you call this "sub service" using an asynchornous mechanism like JMS. After the JMS send, you do a JMS recieve waiting for your desired amout of time. If this times out, you can throw an exception or whatever.
    The "sub service" consists of queue that triggers your "sub service" that does the web service call normally. The "sub service" blocks until the web service returns a response and posts this back on a queue (you should use a dedicated reply-to Queue). If the reply comes to late, it is ignored by the calling business process.

  • Dynamic - Web Service Call

    Hi All
    I am working on 12.2.3 build 165. I am trying to call web service dynamically providing url at the run time..
    I tried using wizard way- giving url, then selecting operation and it works fine. But is it possible to give url as input at run time... I have tried giving no. of inputs at run time but none worked. Pls guide in detail if this is possible.
    thanking you all , taranum

    Hello Nagaraju,
    I need to create a dynamic Webservice call for my application.
    As you mentioned on above I passed the following with link editor in Web service call,
    1. WSDL Base URL
    2. WSDL URL
    3. Opertaion
    but its showing the following error
    com.sap.lhcommon.webservice.SoapOperation.getInputMessage() of an object loaded from local variable 'oper'
    Am i missing any mandatory field value to pass to Webservice call ?
    how can I pass XML input at run time to the request object in this scenario ?
    Here I'm using this as a common transaction, so multiple transaction can use it to post to Web sphere.
    Looking forward for your assistance.
    I need to pass wsdl's dynamically, So can I pass Input XML to request object in linke editor ?
    on of the WSDL structure:
    Regards,
    Srisailam Yadav

  • Using Web Dynpro authentication for a Web Service call

    Hi all,
    I want to develop a Web Dynpro that calls a Web Service running on the same Web AS (7.0). The Web Dynpro will be integrated in a Portal. The web service that has to be called is automatically generated when we create a guided procedure :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm
    In my Web Dynpro, I imported the WSDL of this WS and created a model.
    The first time I tried to call the WS in my Web Dynpro I got an authentication error :
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<myHostName>:50100/GPRuntimeFacadeWS/GPProcessExposing?style=document&pid=CA544E9B629A11DB91480017A48D672A&pver=0.5"
    So I hard-coded an HTTP authentication :
         model._setUser("myWASuser");
         model._setPassword("myPassword");
    And the Web Service call now works.
    Now the next step is that the WS call is made by the user that runs the Web Dynpro. So I found this documentation :
    http://help.sap.com/saphelp_nw04/helpdata/en/59/e8e95d1eba48dfa86ae91ad8816f5d/frameset.htm
    It would resolve my authentication problem, AND the transport issue : at the moment the Web Service URL is stored in the Logical Port of the WD model, and at transport time, a rebuild of the WD project will be needed.
    So I applied what is said in the doc : from the point of view of the Web Service consumer, I just had to add :
        model._setHTTPDestinationName("STARTGP");
    (where STARTGP is the name of the destination I created in the Visual Administrator with a "Logon Ticket" authentication.)
    before the execute(), and I removed my hardcoded authentication.
    Unfortunately, nothing changes... I still get a 401 authentication error.
    Does anyone have an idea about this ? Or maybe a workaround ?
    Thanks in advance for any suggestion.
    Regards,
    Julien

    Hello Julien,
    I have a scenario similar to yours. A client webdynpro application accessing a EJB methods exposed as web service. Those EJB's methods calls R3 RFC's. The client requirements' was to allow SSO through all the layers (Webdynpro -> EJB WS -> RFC). The Webdynpro and EJB's are deployed on the same WAS.
    Solution:
    1 - Create a RFC Destination on Visual Administration provide the R3 connection parameters and set the Authentication for "Current User (Logon Ticket)". Save your Destination;
    2 - In your EJB Project open your Web Service Configuration, on the Security page, set:
        Authentication Mechanism: HTTP Authentication
        Basic (username/password)
        Use SAP Logon Ticket
    3 - In your EJB, implement the following code to create JCO Client for the RFC invocations:
    Object obj = ctx.lookup(DestinationService.JNDI_KEY);
        DestinationService dstService = (DestinationService) obj;
        RFCDestination dst = (RFCDestination) dstService.getDestination("RFC", "<YOUR_RFC_DESTINATION_NAME>");
        Properties jcoProperties = dst.getJCoProperties();
        JCO.Client jcoClient = JCO.createClient(jcoProperties);
    4 - In your EAR Project, open your "application-j2ee-engine.xml" and add the References:
         "tc/sec/destinations/service" as Service
         "tc/sec/destinations/interface" as Interface.
    5 - Create your EAR File and Deploy;
    6 - Check if the web service now requires Authentication: go to http://<host>:<port>/index.html and click on Web Services Navigator. Test your Web Service. Your Web Service should requiere you to log in before execute the test;
    7 - Go back to your Visual Administrator and create a HTTP Destination. Provide your WS URL (should be something like "http://<host>:<port>/<WS_NAME>/Config1?style=document"). Choose Authentication: Logon Ticket. Save your Destination;
    8 - Go to your webdynpro project, import your WS Model. (If you have already created it, you have to delete it and import it again, refer to this blog on how to reimport WS Models: /people/bertram.ganz/blog/2005/10/10/how-to-reimport-web-service-models-in-web-dynpro-for-java  How To Reimport Web Service Models in Web Dynpro for Java );
    9 - Open your model's Logical Ports node, go to the Security tab, and choose "Use SAP Logon Ticket";
    10 - In your webdynpro code, before you call the ws invocation (should be something like that: <YOUR_NODE_DEFINITION>.modelObject().execute();), include the following line:
    <YOUR_NODE_DEFINITION>.modelObject()._setHTTPDestinationName("<YOUR_HTTP_DESTINATION_NAME>");
    11 - Save All Metadata and deploy your Webdynpro App. Test your results.
    I hope it helps you, as the documentation on how to implement this scenario is scattered through the SDN and all the SAP help portal.
    Best regards,
    Paulo.

  • Setting timeout in Oracle Web Service Callouts

    We have a 10.1.0.4 Enterprise DB with dbwsclient.jar loaded. Currently using the database callouts. The problem is there seems to be no timeout when the called web service does not respond. I did not see a setting for the socket timeout in the code produced by JPublisher.
    Thanks

    Hi,
    Where the properties need to be put and how can they be read really depends on how your Web Service is implemented. What is the WS based on - EJB, POJO, PL/SQL, JMS...?
    Yogesh

  • How to add security credentials to SOAP header for EBS Web Service call..

    All,
    I am trying to invoke a webservice that I successfully exposed as a WSDL Web Service using EBS Integrated SOA Gateway. I am using OBIEE 11g Action Framework which uses WebLogic.
    Here are the steps I completed:
    - I exposed a WSDL web service in EBS R12 via Integrated SOA Gateway
    - I granted the access to this service in EBS R12 to user SYSADMIN
    - I used OBIEE 11g to make a Action to call the Web service (using Action Framework) by searching for the WSDL
    - When I try to execute the action: I get the error:
    Action could not be invoked.
    ServiceExecutionFailure :
    Error invoking web service HR_PHONE_API_Service at endpoint http://ip-10-87-33-3.ec2.internal:8000/webservices/SOAProvider/plsql/hr_phone_api/ Missing <wsse:Security> in SOAP Header
    PROBLEM: I am unsure how to add the credentials for SYSADMIN user and password to add the SOAP username/pwd to the outgoing call. Anyone on this forum know how to set up the SOAP to call with the correct credentials? I have been looking at the documentation but it is not clearly explained.

    Dear Heiko,
    did you solve this problem?
    We are facing the same problem. Every parameter that requries "cmd" does not work. I guess we don´t use this paramter the right way.
    Best, Chris

  • ADF to BPEL - Adding additional field for the web service call

    I have an existing ADF project that invokes a BPEL process. Recently I added 2 new fields to the bpel process and I want to populate this additional fields from the ADF when calling the bpel process.
    What is the best way to do this ? I dont see a way to regenerate the data control. Am I missing something ?

    correct, i am using the WS data control
    I manually added the 2 new fields in the ProjectName.xml and pagenamepagedef.xml files and also he necessary code in the bean class . But when i run it i still dont see the vallues passed to the bpel process.

  • Communication Warnings for Web Service Calls

    The Flex 3 documentation states:
    "SWF files that are assigned to the local-with-networking
    sandbox forfeit their local file access. In return, the SWF files
    are allowed to access data from the network. However, a
    local-with-networking SWF file is still not allowed to read any
    network-derived data unless permissions are present for that
    action, through a cross-domain policy file or a call to the
    Security.allowDomain() method."
    However, when we embed an SWF with a sandbox type of
    local-with-network in a PDF file, when that PDF file is read off
    disk we get a large volume of warning dialogues -- one for each web
    service call that the Flash makes. Since the SWF is
    local-with-networking, we assumed that these communications were
    allowed but the prompts create a very poor user experience. We have
    an appropriate crossdomain file set up. What else do we need to do
    to avoid these prompts?
    Terry. ([email protected])

    Folks, any thoughts?
    I appreciate your help.
    praveen

  • System processes needed for web service call

    Hi experts,
    one theoretical question: how about the system processes needed for a web service call? If have created a test service that does nothing except to wait for 10 seconds. When I call it from outside, no extra process is busy (as seen in trx SM50). Is it possible that one web service call (from outside -> SAP machine) does not need a DIA or BTC process on SAP machine?
    Thanks in advance for your help!
    Kind regards, Matthias

    Hi,
    Of course a web service needs a dialog workprocess to run.
    But if you used the "wait" abap instruction, it may be that this instruction frees the work process ?
    Regards,
    Olivier

  • Can a BPEL process wait for a second web service call

    Hi,
    My BPEL process is an asynchronous process, so the first web service call kicks off an instance of the process.
    what i want is somewhere down in the process i can put a "receive" shape to pause the process and wait for another web service call to come in, once the "receive" shape gets the second web service call, the process continues on.
    Is that a valid thing to do on BPEL?
    i don't seem to be able to get it working.
    i could change the WSDL for the BPEL process to publish two operations, the default "initiate" and another one called "continue", they both accept the same type of request message.
    but when i test it, the BPEL process just can't accept message at the second operation, it always creates a new instance to handle the web service calls, even when the call is targeting "continue" operation.
    Any ideas?
    Thanks in advance!

    I was just about to give up after the last post but then the "pick" shape hit my eye somehow ("thank God", that's all i can say)
    and it did the trick, the "pick" shape can wait for an incoming call from a partner link.
    so what i can achieve is this,
    the first web service call sends some thing like
    <Root><CorrelationId>1</CorrelationId><Content>first name</Content></Root>
    on the "initiate" operation, just like calling an "initiate" method in java code
    the BPEL instance gets initiated, reaches the "pick" shape and stops
    then a second web service call comes in as
    <Root><CorrelationId>1</CorrelationId><Content>last name</Content></Root>
    on the "continue" operation, again just like calling a "continue" method
    it works!

  • Asynchronous web service call doesn't work

    Hi,
    I'm trying to convert a synchronous web service call into an asynchronous call. (Folder-level Javascript, Acrobat Professional 8.1, Windows XP).
    Everything works fine when I call Soap.Request as a synchronous call. It calls the web service and gets the expected result. However, when I try to convert Soap.Request into an asynchronous call by adding the OAsync property, as described on pp. 198-199 of "Developing Acrobat Applications Using JavaScript," NONE of the various OAsync functions (i.e. result, response, wait) are ever called. IOW, the Javascript code continues executing after the Soap.Request call and doesn't wait for my web service call to return. Indeed, the web service method on the server doesn't even BEGIN to execute by the time the Javascript code runs to completion. (I can confirm this by watching my ASP.Net code execute in the Visual Studio debugger. In fact, the Javascript code runs to completion even before the Global.asax Session_Start code begins to execute, much less the web service method itself.) So, the problem is not with the web service, which works fine when Soap.Request is called as a synchronous method.
    To reiterate, my Javascript code is identical to the code on pp. 198-199 of "Developing Acrobat Applications Using JavaScript." In troubleshooting this, I've tried calling the OAsync functions (mySync.wait(), mySync.result(), mySync.response()) after calling the Soap.Request, but nothing works.
    Is there something else that I must add to my Javascript code (e.g. an additional Soap.Request property, or something after calling Soap.Request) to force the Javascript to wait until the web service method returns?
    Thanks,
    Bill

    Hi Lukasz,
    you can also define namespace the later in the operation GetOpenOrders itself, e.g.:
    <tem:GetOpenOrders xmlns:tem=u201Dhttp://tempuri.org/u201D>
    It does not need to be part of the Envelope element.
    Best regards
    Bastian

  • Asynchronous web service call using PL/SQL

    Hi Guys,
    i'm using Apex 4.1.
    Is that possible to invoke a web service asynchronously within PL/SQL code block ? If so,
    How can i access the return value of the service when execution of that web service completes ?

    Bolev wrote:
    We have (Oracle 10g) automated process (ETL) based on internal data. Now there is an offer to incorporate existing web service call (let's say for additional record verification) in this process. Service call (I do not know what type of it yet) is using data from remote database which is not ours.Web service calls from PL/SQL is not that complex. You can use the standard UTL_HTTP package as shown in {message:id=4205205}.
    I never heard anybody goes this way especially for ETL processes.Well, if you push a million rows through the ETL process and the call overhead for the web service call (assuming perfect network and web server response) is 1 sec, that translates into 277+ hours of runtime alone for the validation to be done via web service.
    So yeah - it would seem kind of silly to use something like a web service to validate large volumes ETL data.

  • How can I use web service call for edit a report with SSRS in Java Struts2 web application

    Hello im new in SSRS technologie and I would like make web service call at my SSRS server. Is sombody can help me ?
    - What API should I import in my project ? I use Maven can I found this API on Maven repository ?
    - I would like have an sample of code which initialize the ReportingService, do the call and process result.
    We use the SQL Server ReportingService 2008 R2 and currently we made HTTP call like this : http://<ssr_server>/ReportServer/Pages/ReportViewer.aspx?%2fSSRS_OMB%2fMyReport&rs:Command=Render&MyParam=<value>
    Regards

    Hi ombinte,
    SQL Server Reporting Services provides access to the full functionality of the report server through the Report Server Web service. Because the Report Server Web service is an XML Web service which uses Simple Object Access Protocol (SOAP) over Hypertext Transfer
    Protocol (HTTP), any SOAP-aware application or development tool can communicate with the SSRS web service.
    There are three primary ways to develop Reporting Services applications based on the Web service, please see:
    Develop applications using Microsoft Visual Studio and the Microsoft .NET Framework SDK.
    Develop applications using the rs utility (RS.exe), the Reporting Services script environment.
    Develop applications using any SOAP-enabled set of development tools.
    For more information about Report Server Web Service, you can refer to the following document:
    http://technet.microsoft.com/en-us/library/ms152787.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • LCDS web service call throwing error for valid XSD URL

    Hi,
    I am trying to call a web service which is deployed on a J2EE application[ Project name : WebServiceApplication ] through a different LCDS application [ Project name : lcdsTestWebService] But while loading of mxml following error comming into console.
    Can any one explain that why Flex application is looking for DocTypeTestService_schema1.xsd  into lcdsTestWebService application when this xsd is
    present in WebServiceApplication project.
    One intresting point which i found that if i place this xsd into root of lcdsTestWebService application so that it is accessable through
    url = "http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd" than there is no issue and web service call sucessfully
    happen.
    [2/14/11 16:23:18:208 IST] 0000002c SystemOut     O [LCDS]Deserializing AMFX/HTTP request
    Version: 3
      (Message #0 targetURI=null, responseURI=null)
        (Typed Object #0 'flex.messaging.messages.HTTPMessage')
    (Object #1)
            body =       clientId = "A568DF0F-A60A-1473-CDAB-707E4A185812"
          contentType = "application/x-www-form-urlencoded"
          destination = "testWebservice"
    (Object #2)
            DSEndpoint = "my-http"
            DSId = "A568DE2A-2809-A1FE-0934-D3ECBC19337C"
            headers =       httpHeaders = null
          messageId = "9F6F7661-8FA1-30CA-3F04-23CD91C1AF90"
          method = "GET"
          recordHeaders = true
          timestamp = 0
          timeToLive = 0
          url = "http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd"
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- GET : http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Cookie in request: domain = 'localhost', path = '/', client name = 'JSESSIONID', endpoint name = 'JSESSIONID', value = '0000Ii8aRUEKjvhE38Bd_dyW3jw:-1
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Accept : */*
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Accept-Language : en-US
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Referer : http://localhost:9080/lcdsTestWebService/SampleWebService.swf/[[DYNAMIC]]/6
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: x-flash-version : 10,1,102,64
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Content-Type : application/xml
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: User-Agent : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; MS-RTC LM 8; SLCC1; MS-RTC S; USPortal)
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Cache-Control : no-cache
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Begin GET request --
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- End GET request --
    [2/14/11 16:23:20:191 IST] 0000002d FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\IBM\WebSphere\Appserver\profiles\AppSrv04\logs\ffdc\server1_1aaf1aaf_11.02.14_16.23.19 .98114899428566798599.txt com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest 573
    [2/14/11 16:23:20:391 IST] 0000002c SystemOut     O [LCDS]Serializing AMFX/HTTP response
    Version: 3
      (Message #0 targetURI=/onStatus, responseURI=)
        (Typed Object #0 'flex.messaging.messages.ErrorMessage')
          body = null
          messageId = "A568F5E1-EF0D-DCBC-6AB1-912C2FEAACB2"
          extendedData = null
          clientId = "A568DF0F-A60A-1473-CDAB-707E4A185812"
          headers = (Object #1)
            DSStatusCode = 404
          rootCause = null
          destination = "testWebservice"
          faultCode = "Server.Proxy.Request.Failed"
          faultString = "HTTP/1.1 404 Not Found"
          faultDetail = "HTTP/1.1 404 Not Found"
          timeToLive = 0.0
          timestamp = 1.297680800351E12
          correlationId = "9F6F7661-8FA1-30CA-3F04-23CD91C1AF90"

    I received a workaround by an internal message.
    The how to guide is :
    -Download the wsdl file (with bindings, not the one from ESR)
    -Correct it in order that the schema corresponds to the answer (remove minOccurs or other things like this)
    -Deploy the wsdl file on you a server (java web project for exemple). you can deploy on your local
    -Create a new logicial destination that point to the wsdl file modified
    -Change the metadata destination in your web dynpro project for the corresponding model and keep the execution desitnation as before.
    Then the received data is check by the metadata logical destination but the data is retrieved from the correct server.

Maybe you are looking for

  • Can't re-enable iCloud Photo Library iPhone

    After upgrading to iOS 8 on my iPhone 5s and iPad (4th Gen) I turned on the iCloud Photo Library (beta) on both devices.  Since, I have bought an iPhone 6 and restored my backup to the iPhone 6 from the iPhone 5s backup.  The problem is that my photo

  • .MOD files in Quicktime won't play

    I'm trying to convert .mod files into MPEG files. I'm working on an iMac 3.06 GHz Inteal Core Duo. I shot video on Canon FS100 camera and when I uploaded the video and the files are ".MOD"s. I can't play them on my computer. I changed the file extens

  • I have 8GB Iphone is there anyway that i can add another 16GB

    i wan add some 16GB or 32GB is that possible my Iphone it has only 8GB so i want keep my phone in same time i want more GB is that work ??????

  • Failure to copy to the Ipod from iTunes

    I get an error message saying "attempting to copy to the disk "MY Ipod" failed. An unknown error occurred (-69)...can anyone help????

  • Text table Description

    In an ALV report i have created, I have a column displayed which has an underlying text table associated with it for the value description. Does ALV reporting have the capability to retrieve these descriptions from the Text table. I want to display t