Multiple Asynchronous on-demand calls

Hi,
I do have on the example below 2 on-demand processes. Both of them are a set of select statements taking around 0.2 secs to run.
What I am trying to achieve is to display a region after each process has been completed.
The problem I am experiencing is that I only have the second region displayed.
<script language="JavaScript" type="text/javascript">
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=Dashboard_OOS',0);
pstep = 1;
get.GetAsync(f_AsyncReturn);
var get2 = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=Dashboard_Usage',0);
pstep = 10;
get2.GetAsync(f_AsyncReturn);
function f_AsyncReturn(){  
alert(p.readyState+"-"+pstep);
if(p.readyState == 1){  
if (pstep == 1){
show_loading();
}else if(p.readyState == 2){  
}else if(p.readyState == 3){  
}else if(p.readyState == 4){  
if (pstep == 1) {
$x('item').value = p.responseText;
$x_Show('region1');
}else if (pstep == 10) {
$x_Show('region2');
hide_loading();
}else{return false;}
</script>
Note: after adding the alert at the beginning of f_AsyncReturn I can see only one alert for the first call and then 4 alerts for the second.
My first try was with synchronous calls, which were fine in firefox but not in IE. Firefox displays the regions as the calls are completed but IE waits for all calls to be completed and then displays all regions at the same time.
Any ideas/comments are welcome.
Regards

Javier,
You have to duplicated the Asynchronous calls in your script, you are seeing the behavior because by default XMLHttpRequest returns data in a variable called p and generally we use p.responseText, p.readyState to get the information back from request. When we are running multiple calls on the same page, the process which gets executed first will have its values in p variable. Try creating separate call for each of your code block something like this
<script type="text/javascript">
// XMLHTTP for Dashboard_OOS
htmldb_Get.prototype.OOS_GetAsync = function(pVar){
   try{
      OOS= new XMLHttpRequest();
    }catch(e){
      OOS = new ActiveXObject("Msxml2.XMLHTTP");
    try {
         var startTime = new Date();
               OOS.open("POST", this.base, true);
               if(OOS) {
                         OOS.onreadystatechange = pVar;
                         OOS.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
                         OOS.send(this.queryString == null ? this.params : this.queryString );
                         return OOS;
          }catch(e){
      return false;
// XMLHTTP for Dashboard_Usage
htmldb_Get.prototype.Usage_GetAsync = function(pVar){
   try{
      Usage= new XMLHttpRequest();
    }catch(e){
      Usage = new ActiveXObject("Msxml2.XMLHTTP");
    try {
         var startTime = new Date();
               Usage.open("POST", this.base, true);
               if(Usage) {
                         Usage.onreadystatechange = pVar;
                         Usage.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
                         Usage.send(this.queryString == null ? this.params : this.queryString );
                         return Usage;
          }catch(e){
      return false;
// AsyncReturn for Dashboard_OOS
function OOS_AsyncReturn(){
     var s = OOS.readyState;
     if(s == 1)
          show_loading();
     else if(s == 2)
     else if(s == 3)
     else if(s == 4)
          $x('item').value = p.responseText;
          $x_Show('region1');
          hide_loading();
     else
          return false;
     return true;
// AsyncReturn for Dashboard_Usage
function Usage_AsyncReturn(){
     var s = Usage.readyState;
     if(s == 1)
          show_loading();
     else if(s == 2)
     else if(s == 3)
     else if(s == 4)
          $x_Show('region2');
     else
          return false;
     return true;
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=Dashboard_OOS',0);
pstep = 1;
get.OOS_GetAsync(OOS_AsyncReturn);
var get2 = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=Dashboard_Usage',0);
pstep = 10;
get2.Usage_GetAsync(Usage_AsyncReturn);
</script>Thanks,
Manish

Similar Messages

  • Defining Multiple operations for async calls in OSB

    Hi,
    I have three Asynchronous BPEL processes- BPELProcessA, BPELProcessB and BPELProcessC
    I am trying to invoke BPELProcessB and BPELProcessC from BPELProcessA through an OSB Proxy service. I want to use a single proxy service to make calls to BPELProcessB and BPELProcessC from BPELProcessA . To do this I defined multiple operations in the wsdl of the proxy service. This is not working
    But I am able to implement the following
    1. If BPELProcessB and BPELProcessC are Synchronous, I am able to invoke BPELProcessB and BPELProcessC by defining multiple operations in the proxy service wsdl
    2. I am able to invoke and receive response from 1 Asynchronous BPEL process by defining 1 operation in the proxy service wsdl. I followed the approach described at [http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/bpelpmtransport/transport.html#wp1111338]. Does this mean for each asynchronous BPEL, I need a separate pair of OSBs for each async process ( 1 for request and 1 for callback)?
    Has anyone tried invoking multiple asynchronous processes by defining multiple operations in the wsdl?
    Kindly request every to give inputs

    Hi Eric
    Below is the flow and error we are getting:
    ProcessA is calling ProcessB and ProcessC through common OSB. In OSB we have created individual business services for ProcessB and ProcessC.I am using common Proxy service for calling these two Business Services using different operations.I have created one callback business service and Proxy service for ProcessA.
    I am successfully able to call BPEL processes, ProcessB and ProcessC, but during callback client activity these two BPEL processes are failing with below error and ProcessA is going in waiting on receive activity state:
    nested exception is:ORABPEL-00000
    Exception not handled by the Collaxa Cube system.
    An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-08010
    Failed get operation definition.
    Failed to get the WSDL operation definition of "onResult" in portType "{http://xmlns.oracle.com/AsyncBPELProcess}AsyncBPELProcessCallback".
    Please verify that operation "onResult" is defined in portType "{http://xmlns.oracle.com/AsyncBPELProcess}AsyncBPELProcessCallback".
         at com.collaxa.cube.ws.wsdl.WSDLUtils.getOperation(WSDLUtils.java:216)
         at com.collaxa.cube.ws.wsdl.WSDLUtils.getOperation(WSDLUtils.java:208)
         at com.collaxa.cube.ws.wsdl.WSDLManager.isOneWayOperation(WSDLManager.java:517)
         at com.collaxa.cube.engine.core.BaseCubeProcess.getOperationType(BaseCubeProcess.java:735)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.getOperationType(DeliveryHandler.java:778)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.post(DeliveryHandler.java:71)
         at com.collaxa.cube.ws.WSIFInvocationHandler.invokeLocalService(WSIFInvocationHandler.java:1338)
         at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:287)
         at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:528)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:248)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:829)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:412)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:199)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3714)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1657)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:220)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:317)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5787)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1089)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:589)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:421)
         at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:695)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:141)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
         at java.lang.Thread.run(Thread.java:595)
    Exception: ORABPEL-08010
    Failed get operation definition.
    Failed to get the WSDL operation definition of "onResult" in portType "{http://xmlns.oracle.com/AsyncBPELProcess}AsyncBPELProcessCallback".
    Please verify that operation "onResult" is defined in portType "{http://xmlns.oracle.com/AsyncBPELProcess}AsyncBPELProcessCallback".
    Handled As: com.collaxa.cube.CubeException

  • Asynchronous/On-Demand Comunication using Sockets

    I need to write an API which (on request of the user clicking on a button in the UI) writes a message onto a socket irrespective of whether the other side of the socket is up and running or not.
    Consequtive calls to this API may or may not involve the same host & port to which the message needs to be written.
    Any suggestions on how I can achieve this Asynchronous "on-demand" socket operation.

    ejp wrote:
    It's not like that UPD packet is going to remain in one peice anyway.But if it doesn't stay in one piece there is no guarantee that it will ever be reassembled.
    UDP packets larger than 534 should only be used on networks where you know there will be no fragmentation by routers. In practice this limits you to less that 1500 bytes anyway.Yeah. For that matter, there's also no guarentee that the packet won't just get dropped if it's bigger than the MTU at some hop along its path. Sometimes I wonder how packets ever get anywhere...
    @op Moral of the story is, you should avoid sending out Datagrams that are bigger than the maximum transmission unit (MTU) of your network, which is guarenteed to be at least 576 over the internet and 1492 over ethernet. You factor in the 40 bytes for the header, you don't want put in more than 536 / 1452 bytes of actual data into your datagram.
    Sending more data than that per packet risks making everything slower and less reliable.
    Separate your data out into the appropriate sized chunks (536 for internet connections, 1452 for local data transport), wrap each chunk into a UDP packet, and send it on its way.

  • On demand call recording on QM server with CUCM

    Hi ,
    I have a customer who wants to enable on-demand call recording on QM server .
    Is there a plugin that needs to be installed on Cisco side to make it happen .
    QM Server 9.0.1.57
    Calabrio Call Recording: 8.8.1.57
    Calabrio Quality Management: 8.8.1.57
    Call Manager 9.1.1
    UCCX 9.0.2
    or any infomation regarding that would be helpful
    Thank you

    This is something I have not done before, but I recall seeing the feature for IP Phones.  It was an IP Phone Service which showed a menu for starting and stopping recordings for workers without a PC.
    On the QM 9.0 Data sheet, the feature is mentioned in the following bullet point:
    - The ability to control recording for manual start,  pause, and add metadata through Cisco Agent Desktop or Calabrio recording control browser or IP phone applications
    Source: http://www.cisco.com/en/US/prod/collateral/voicesw/custcosw/ps5693/ps8293/data_sheet_c78-710576.html#wp9000180
    I'm looking for the documentation to configure this feature.  Unfortunately, Calabrio has their own documentation and support site @ portal.calabrio.com which only Cisco partners can access (something I am not).  The answer may reside there.  I'll post back if I find the IP Phone Service URL to use.
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • Query unread emils across multiple mailboxes in one call

    Hi everyone,
    I have developed an application that read emails from exchange server. Currently I’m using exchange WebDAV and check each mailbox one by one to read emails.
    Now question is,
    if I want to read emails from multiple mailboxes in single call without going each mailbox one by one, how it is possible using exchange WebDAV, if no then which method is best for it?
    Thanks

    Hi,
    According to my technology and research, WebDAV can implement batch request. For your reference:
    https://msdn.microsoft.com/en-us/library/ms877286%28v=exchg.65%29.aspx?f=255&MSPPError=-2147217396
    However, Exchange 2013 doesn’t support WebDAV connections. More details about What's discontinued in Exchange 2013:
    https://technet.microsoft.com/en-us/library/jj619283%28v=exchg.150%29.aspx
    For your question, we may can do this by using EWS.
    Additional, this question may be related to Exchange development. Please contact relevant team so that you can get more professional suggestion, for your convenience:
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=exchangesvrdevelopment
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Allen Wang
    TechNet Community Support

  • Is there a way to process multiple asynchronous calls individually (instead of all at once)?

    Hello,
    I have a function that saves a record using a RPC call (asyncToken with a new responder).  When I save an individual record (pressing "s" key), it works fine.  However, when I attempt to save multiple records simultaneously (bound to "v" key) (I have a for loop running through the selectedItems in the datagrid), it performs strangely.
    For anyone who hasn't experienced this, the successive calls seem to get stacked (literally - i.e. using a stack) and processed at the end of all operations in that block of code (I had trace functions before and after the call that were executed before I saw the result confirming this).
    What I would like to do is to simulate multiple AsyncToken usages with a single click, but still have them all occur individually since right now, the function saves the last item in the stack 8 times instead of saving each of the 8 items separately.
    OR
    Is there another means of RPC using something like "interruptToken" as opposed to asyncToken?  (In most other areas I've seen, asynchronous calls are performed as interrupts and dealt with immediately, thats why this procedure confused me for a bit)
    Thanks in advance,

    The second paragraph you posted is definitely worthwhile - still figuring out some of the inner workings of Flex calls (not just RPC stuff) that I use as I am pretty new to flex.
    I don't have the code with me at the moment, but I think I have to use separate calls to the save function.  My situation is this (and I plan on updating with code on Monday if necessary):
    I have a datagrid that is populated using a single RPC (which is loaded into an arrayCollection first then the datagrid).  Changes are made to the datagrid through a copy/paste function that I made, but these changes are only reflected on the datagrid (i.e. not in the dataprovider).  When the user hits "save", the selected line (selectedItem actually - i.e. not an index but the object itself) is passed to another class which contains a modified version of my "modify data" function (brings up a dialog after choosing a given line allowing editting/validation of certain fields regarding the selectedItem).  This changed version of "modify data" is then called and immediately closed effectively saving this record (without allowing the user to alter fields - so they don't have to hit save twice).
    With the copy/paste function, I make all of these changes en masse and then have a loop that goes something like
    for each (_object:Object in myDatagrid.selectedItems)
         callSaveFunction(this, _object);
    which ideally loops through the data and saves each item that has been changed.  If there is a way to save all of the data in the datagrid simultaneously, I would appreciate a bit of help there (perhaps dealing with the bindings - right now I have the object I save as the destination and the source is myDatagrid.selectedIndex.[field name]).
    Good to know about the other stuff, though - my understanding was a little bit lacking before

  • Asynchronous stored proc call in 10g

    Hi,
    There's an external application that executes one of the stored procedures in my database. I dont want an open connection between the application and database for the duration of procedure execution (execution time can be as long as an hour).
    What'd be the best approach to asynchronously call the stored procedure in Oracle 10g?
    Also, can I run multiple sessions of the same procedure asynchronously (as the external application is accessible to many users and more than one user can kick-off the process at any point of time).
    Any pointers to relevant documentation would be greatly appreciated.
    Thanks

    Another suggestion can be Streams AQ. I found it very useful.
    You can see a working example here:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:11739140770566317513::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:8760267539329
    All you need to know is here:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14257/toc.htm

  • Returning multiple values from a called tabular form(performance issue)

    I hope someone can help with this.
    I have a form that calls another form to display a multiple column tabular list of values(needs to allow for user sorting so could not use a LOV).
    The user selects one or more records from the list by using check boxes. In order to detect the records selected I loop through the block looking for boxes checked off and return those records to the calling form via a PL/SQL table.
    The form displaying the tabular list loads quickly(about 5000 records in the base table). However when I select one or more values from the table and return back to the calling form, it takes a while(about 3-4 minutes) to return to the called form with the selected values.
    I guess it is going through the block(all 5000 records) looking for boxes checked off and that is what is causing the noticeable pause.
    Is this normal given the data volumes I have or are there any other perhaps better techniques or tricks I could use to improve performance. I am using Forms6i.
    Sorry for being so long-winded and thanks in advance for any help.

    Try writing to your PL/SQL table when the user selects (or remove when deselect) by usuing a when-checkbox-changed trigger. This will eliminate the need for you top loop through a block with 5000 records and should improve your performance.
    I am not aware of any performance issues with PL/SQL tables in forms, but if you still have slow performance try using a shared record-group instead. I have used these in the past for exactly the same thing and had no performance problems.
    Hope this helps,
    Candace Stover
    Forms Product Management

  • Asynchronous SUBMIT or CALL WITH creation of NEW SESSION

    I'm doing monotonous comparisons between systems, but I do need to see the SAP standard comparison for each. So I have an ALV list that I'd like to double click a line entry that will spawn 3 NEW SESSIONS and I'll automatically populate the parameters.
    So, has anyone been able to SUBMIT or CALL WITH THE KEY BEING THAT IT MUST CREATE 3 NEW ASYNCHRONOUS SESSIONS. I'd be grateful if you'd share your experience in this regard. Thank you, Adrian

    Hi,
    You can try in this way.
    Create a new FM and place your code there. Call this FM using addition STARTING NEW TASK. It should work fine.
    Check out F1 help on CALL FUNCTION for more details and additions.
    Thanks,
    Vinod.

  • 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

  • Multiple Fields in RFC call in UDF

    In my Message Mapping I am calling a RFC using a UDF, this works fine but only for 1 field. Like in my BAPI I have 1 Field in the Input parameters. Does anyone know how to import more than 1 parameter? Here is some sample code from my UDF:
    Calling the RFC, I specify this: <?xml version=\"1.0\" encoding=\"UTF-8\"?><p2:ZTEST xmlns:p2=\"urn:sap-com:document:sap:rfc:functions\"><INPUT_VALUE>4500014790</INPUT_VALUE></p2:ZTEST>
    Where ZTEST is my BAPI name and INPUT_Value is my import parameter. My question is how would I specify more than 1 import parameter in my xml string? I tried <INPUT_VALUE1>4500014790</INPUT_VALUE1><INPUT_VALUE2>33</INPUT_VALUE3> but then it does not return anything..
    String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace();
    // filling the string with our RFC-XML (with values)
    String m = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><p2:ZTEST xmlns:p2=\"urn:sap-com:document:sap:rfc:functions\"><INPUT_VALUE>4500014790</INPUT_VALUE></p2:ZTEST>";
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
    // 1. Determine a channel (Business system, Communication channel)
    Channel channel = LookupService.getChannel("ECDCLNT999","CC_ECD999_RFC");
    // 2. Get a RFC accessor for a channel.
    accessor = LookupService.getRfcAccessor(channel);
    // 3. Create a xml input stream representing the function module request message.
    InputStream inputStream = new ByteArrayInputStream(m.getBytes());
    // 4. Create xml payload
    XmlPayload payload = LookupService.getXmlPayload(inputStream);
    // 5. Execute lookup.
    Payload result = accessor.call(payload);
    InputStream in = result.getContent();
    out = new ByteArrayOutputStream(1024);
    byte[] buffer = new byte[1024];
    for (int read = in.read(buffer); read > 0; read = in.read(buffer)) {
    out.write(buffer, 0, read);
    content = out.toString();
    catch(LookupException e)
    importanttrace.addWarning("Error while lookup " + e.getMessage() );
    catch(IOException e)
    importanttrace.addWarning("Error " + e.getMessage() );
    finally
    if (out!=null) {
    try {
    out.close();
    } catch (IOException e) {
    importanttrace.addWarning("Error while closing stream " + e.getMessage() );
    // 7. close the accessor in order to free resources.
    if (accessor!=null) {
    try {
    accessor.close();
    } catch (LookupException e) {
    importanttrace.addWarning("Error while closing accessor " + e.getMessage() );
    //returning the result u2013 RFC-XML.response
    return content;

    Hi Jan de Lange  ,
    Can you send the UDF code for the above. Even I was having the same problem ie., sending multiple values in the input file.
    I want to send three PO numbers.
    String m = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><p2:ZXI_GET_PO_DETAILS xmlns:p2=\"urn:sap-com:document:sap:rfc:functions\">
    <PO_NUM>4500000005</PO_NUM>
    <PO_NUM>4500000020</PO_NUM>
    <PO_NUM>4500000021</PO_NUM></p2:ZXI_GET_PO_DETAILS>";
    Best Regards
    Suresh

  • Asynchronous web service call from Redwood

    Hi Everyone,
    Build version M33.104.
    We have a scenario where we have to call an asynchronous web service.
    From the documentation i understand that the Redwood job will be in status Running until the web service completes.
    How does the call back work from the web service to Redwood? How does Redwood know the asynchronous web service job completed?
    From the documentation, the per-requisite is:
    callback to UpdateJob1 web service at ServerAddress with JobId and FinalStatus as Out parameters
    Should i create two out parameters for the web service job definition in Redwood? one JobId and another FinalStatus?
    How do i get the URL to UpdateJob1 web-service, so that i can make my web service, call it, to update the Redwood job that called it?
    thanks
    Nanda

    Hi HP,
    I included the following snippet in job source:
    //Set completion strategy to external
    jcsJobContext.setCompletionStrategy(CompletionStrategyType.External);
    I get the following error when compiled:
    JCS-102183: Compile failed for Job Definition SOAP_GlobalWeatherSoap_GetCitiesByCountry (Latest Version): SOAP_GlobalWeatherSoap_GetCitiesByCountry.java:user code 24:40:cannot find symbol symbol : variable CompletionStrategyType location: class com.redwood.scheduler.custom.SOAP_GlobalWeatherSoap_GetCitiesByCountry jcsJobContext.setCompletionStrategy(CompletionStrategyType.External);
    I am not able to find any information from the API documentation on the method setCompletionStrategy, so I'm not able to figure what type of variable am i passing, so that i can initialize it. Please shed some light on it.
    Also there is no path called Scripting > Built-In Web Services
    I have only Scripting>Published Web Services
    Thanks
    Nanda

  • 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.

  • Asynchronous BPEL Process called from an empty BPEL process getting lost.

    Hi
    I have an empty BPEL process calling an asynchronous BPEL process. The empty process is triggered by a read file activity. It finishes successfully and even calls the asynchronous process. There is no error thrown but the called asynchronous process does not show up in the dashboard.
    When this asynchronous process is manually run from the console I get the page stating 'Cannot find the specified instance'.
    I am using Jdev 10.1.3.2 and SOA Suit 10.1.3.1.
    Any suggestion as to why this is happening and what is the remedy?
    Buddhadev.

    Check your log as soon as you find that the parent process has found its way into the console. More information on logging can be found here - http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/logging.htm
    Not quite sure why its so, but since 10.1.3, I've observed that the console simply doesn't show errored processes at times. So, checking the log can be a starting point in diagnosing the real issue.
    HTH
    Antony

  • Monitor multiple phone for incoming call

    Hello,
    I want to monitor multiple phone incoming call (retrieve callerID, ...)
    I do that with Tapi, but when you configure TSP, it's only for one phone
    I can install TSP several times, but ... for 40 phones ...
    Are there other solutions ?
    I use CCME

    Yes, you can use packet capture to sniff skinny. It works really well, and transparently across CallManager and CallManager Express. You'll need to perform packet decode which is a bit of work, and connect your server to the appropriate SPAN port, of course.

Maybe you are looking for