How To get Synchronous response over a long duration
Hi
I have scenarion where i have to invoke an interface in XI from a web dynpro application. Invocation can be imlemented by invoking the web service exposed from XI but after the invocation the duration for which the service will execute is not known.. it depends on the volume of data. In some case the duration might be 15 secs while in other cases it might also be be 5 min or greater than that.
My question is will the web dynpro application still keep on waiting for the response for say 6-7 min thus enabling a synchronous call or as i feel it will time out before the response comes in.
If it will time out is there any other mechanism by which it can keep listening for the response and as soon as it is avaliable it dynamically shows the success message on the screen without using any other event(eg without having to click a button which would again go and fetch the response).
Please suggest an optimal approach that can be followed.
regards
Nilesh
Answered on my own:
Just have to use
x_result = http_client->response->get_data( ).
instead of
x_result = http_client->response->to_xstring( ).
Just don't knwo why the filesize is wrong also - but I can work with this image!
Similar Messages
-
How to get the response of a vbscript ran from extended js?
Hi All,
I want to get the result from a vbscript, how to get that in my jsx? This is what I'm doing-
vbscript (this will return me something, i've added just a sample string)
Wscript.Echo "Like this?"
jsx
var a = File("C:\\Users\\Sahil\\AppData\\Roaming\\CreativeWorx\\1.vbs");
var b=a.execute();
Now, variable b returns me true/false; and the output i.e. "Like this?" is alerted! So my question is-
1. How to get the output in a variable?
2. How to avoid the alert
So, I simply wish to get the output from my vbscript and then perform certain functions accordingly, alos, I dont want this to be alerted!
Any help will be highly appreciated!The capitalization is app.doScript and not app.doscript that is if you are trying to get a jsx script to run and access a string from from a vbs script.
When defining the VBscript for multiline scripts the easiest method is to use triple quotes
VBscript = """dim WMI: set WMI = GetObject("winmgmts:\\.\root\cimv2")
dim Nads: set Nads = WMI.ExecQuery("Select * from Win32_NetworkAdapter where physicaladapter=true")
dim nad
for each Nad in Nads
if not isnull(Nad.MACAddress) then Wscript.Echo Nad.description, Nad.MACAddress
next"""
when using the scriptArgs you can either make a loop of them and send the string value of each one something like this
For (n = 0 .........
myArg = "myArg" & n
myStringToPassOver = "Shaddow Fax " & n
app.scriptArgs.SetValue myArg, myStringToPassOver
Next
or probably better to make a long comma or something else separated string and pass it over after the loop
var VBScript = """myArg = ""
For n = 0 To 15
myArg = myArg & "Shaddow Fax " & n & ","
Next
app.scriptArgs.SetValue "myResult", myArg
app.doScript(VBScript, ScriptLanguage.visualBasic);
var myResult = app.scriptArgs.getValue("myResult").replace(/\,$/,"").split(",");
// if neaded use "replace" to remove final "," and "split" to convert into an array
alert(myResult.join("\r")); // alert the array
The above script is a jsx script that runs a vbs
If you want a vbs script to run and access a string from from a jsx script then you would use xxx.DoScript see the sample from the manual below.
Set myInDesign = CreateObject("InDesign.Application")
myJavaScript = "alert(""First argument: "" + arguments[0] + ""\rSecond argument: "" +
arguments[1]);"
myInDesign.DoScript myJavaScript, idScriptLanguage.idJavascript, Array("Hello from
DoScript", "Your message here.")
myVBScript = "msgbox arguments(1), vbOKOnly, ""First argument: "" & arguments(0)"
myInDesign.DoScript myVBScript, idScriptLanguage.idVisualBasic, Array("Hello from
DoScript", "Your message here.")
P.s.Please mark the question as answered, thanks -
How to get more control over DVR recordings
Looking for some advice on how to make sure the DVR records (and keeps) the episodes I want.
An example:
I want to record a series that is still producing new episodes, but is also in repeats in syndication. For example, Big Bang Theory. This has new episodes each week on CBS, but has about twenty or so repeats each day on TBS.
Due to the high number of repeats, any new episodes pretty quickly get overwritten by the repeats. So is there a way to record both first-run and repeat episodes, but prevent the first-runs from getting overwritten before I can watch them?GRubinstein1 wrote:
I have no idea if the format has recently been changed or what the issue is, but when I try to get more control over my DVR recordings, I can't. What I mean by that is that I cannot alter "First-Run and Repeats" to "First-Run Only," I cannot specify the specific channel to record on, I cannot say how many episodes I want it to keep, etc. Here is a step-by-step guide of what I do and what the problem is:
I press the "menu" button on the remote. I scroll down to DVR. I select the option of "manage series recordings." I select one of my shows. I'll use "Masters of Sex" as my example. I select "Masters of Sex." It's at this point where I get a problem. When I select "Masters of Sex," the only option I get is to cancel the series. No option to only record first-runs. No option to keep only 3 episodes instead of 5. No option to change it so it saves until I manually record it. Nothing. I've tried not selecting "Masters of Sex" and instead using the right arrow button to scrol over to the settings of the show. But nothing happens when I do that. It doesn't give me access to these options. This is incredibly frustrating because not only do the shows delete automatically at a certain point, but it records EVERY SINGLE AIRING OF EVERY SINGLE SHOW I RECORD. This means I have to go through several times a day to the "Scheduled Recordings" section and delete scheduled recordings of shows I have already seen. It's absolutely ridiculous, particularly for cable shows, which air episodes frequently throughout the week. Please help me if you can.
Put simply, I cannot change the settings on how I record each show.
Try the Box's Menu/customer support/tops support tools/Fix Fios TV option. (exact working may be different on your box) -
JMS to WebService - how to get the response?!
Well i am receiving data from JMS-CC and sending it to WebService. But there is no response?! Do i have to use the Synch/Asynch bridge because we are on SP12?!
And if i want to get the response to SOAP-Sender-CC - how do the URL has to look like and how do i implement the URL in the sending WSDL?!
br
Message was edited by:
Carsten Heinrichyou can try to use async-sync bridge
http://help.sap.com/saphelp_nw70/helpdata/en/45/20d251c20a0732e10000000a155369/frameset.htm
Florin -
How to get query response time from ST03 via a script ?
Hello People,
I am trying to get average query response time for BW queries with a script (for monitoring/historisation).
I know that this data can be found manually in ST03n in the "BI workload'.
However, I don't know how to get this stat from a script.
My idea is to run a SQL query to get this information, here is the state of my query :
select count(*) from sapbw.rsddstat_olap
where calday = 20140401
and (eventid = 3100 or eventid = 3010)
and steptp = 'BEX3'
The problem is that this query is not returning the same number of navigations as the number shown in ST03n.
Can you help me to set the correct filters to get the same number of navigation as in ST03n ?
Regards.Hi Experts,
Do you have ideas for this SQL query ?
Regards. -
How to get Query response Time?
II am on BI 7.0. I ran some queries using RSRT command. I want to find how much time the queries took.
I went to
st03 -> expert mode -> BI system load-> select today / week/month according to the query runtime day
I do not see any Info Providers. Query was on a cube so why no Info Providers.
Does something have to turned on InfoPorvider to show.
When I look in RSDDSTAT_OLAP table, I do see many rows but cannot make any sense. Is there some documentation on how to get total query time from this table?
Is there any other way to get query response time?
Thanks a lot.HI,
why not use RSRT ? You can add database statistics option in "Execut & Debug" and you get all the runtime metrics of your query
In transaction RSRT, enter the query name and press u2018Execute +Debugu2019.
Selecting u2018Display Statistics Datau2019 .
After executing the query will return a list of the measured metrics.
The event id / text describes the steps (duration in seconds):
"OLAP: Read data" gives the SQL statements repsonse time (ok - because the SAP
application server acts as an Oracle client a little network traffic from the db server is included,
but as far as you not transferring zillions of rows it can be ignored)
But it gives you much more (i.e. if the OLAP cache gets used or not )...
In the "Aggreagate statistcs" you get all the infoproviders involved in that query.
bye
yk -
How to get the Response Code when a URL is launched from Web Dynpro
Hello Experts,
I have a Web Dynpro Application in which in one of its views i have an IFrame UI element in which i will show a resource stored somewhere ..
But before showing it i want to check if the resource actually exists. For this i have to check the HTTP Response code from Web Dynpro Application without setting it in the Iframe..
I am using the following code to get the Response Code:
try{
URL url = new URL("Some Url");
HttpURLConnection.setFollowRedirects(false);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.connect();
wdComponentAPI.getMessageManager().reportSuccess("Response code ="+connection.getResponseCode());
}catch(Exception e){
wdComponentAPI.getMessageManager().reportSuccess("Exception");
Now the Problem is whatever response Code occurs 403 (for No Proper Authorization), 404 (for Resource not found) etc..
i always get Response Code= 500 (which is for Internal Server Error) shown in the messgae i have printed.
Please let me know the correct way of getting the Response Code from Web Dynpro.
Also my resource is lying on a SAP Portal 6.4
Best Regards
Sundeep
Edited by: Sundeep Sethi on Feb 18, 2008 9:07 AM
Edited by: Sundeep Sethi on Feb 18, 2008 10:23 AMHi,
Check this code from /thread/5242768 [original link is broken] if it works.
try{
URL myurl = new URL("http://calendar.google.com");
URLConnection connection = myurl.openConnection();
if(connection instanceof HttpURLConnection) {
HttpURLConnection httpConnection = (HttpURLConnection) connection;
HttpURLConnection.setFollowRedirects(true);
httpConnection.setRequestMethod("HEAD");
httpConnection.connect();
System.out.println("Response = "+httpConnection.getResponseCode());
catch(Exception e) {
// print exception
Regards,
Harini S -
How to get a response from the support group ?
I`ve been trying to get help to actually download Adobe elements.
When I put in my details for purchase - the system says "system error". I phoned the support group and was told that the charge on my card had gone through and they were waiting for a response from me.
I queried "what response"and since then - nothing !
Not happy.... and this has now been going on two days and multiple entries to customer care....
I`m open to ideas - either I can download it, or cancel the transaction.Many thanks - yes I tried that and I`m getting no response to any of the customer care queries I put in.
They took 5 hours to respond to the "chat" by which time I`d gone to do something else.
I`ll keep trying them.
Thanks for your help. -
How to get a response from Adobe Support
Greetings
I purchased an upgrade to Photoshop Elements 6.0 for Mac from the Adobe website on August 1st, and the serial number that was sent to me does not work. I have a registered copy of PSE 3.0, so I assume that an upgrade should be possible, but when I try to enter the serial number, I get a "serial number is not valid" error. I have worked through the various FAQs, to no effect. So on August 6th I lodged a support case, using the online form. 10 days have now elapsed, with no response from Adobe: the status of the case is "Open - Pending Adobe Response". Does anyone have any suggestions on how I might either get the issued serial number to work, or induce Adobe to acknowledge the problem?
rgds
MelodieBarbara,
As an "Expert" you should be able to answer this. I downloaded the trial version of PE6, determined that I could use it, uninstalled it, and bought a new copy from our local dealer (like to buy local). Tried to installed that no less than five times and have never been able to do so. Most of the time the support files will install but the actual app fails to install. One time the install appeared to work, but clicking on the icon or the actual program in Applications resulted in nothing, nada, no response at all. Uninstalled after each attempt. Reinstalled the trial copy and tried to enter the actual serial number off the bought package, but we all know that will NEVER work. (Good joke, Adobe) Uninstalled the trial yet again. Have done restarts, made sure all other program were closed, emptied the trash, made a cup of tea, left the office, did everytihing I can think of to try and coax this ridulous piece of software to properly install. I know it works because the trial version worked fine (before it expired).
I thought, well Adobe Support should be able to clear this up. Perhaps if I could ever actually get someone on the phone that might be the case, although many, many web discussion seem to suggest that would not happen. I have spent over four hours this week listening to the same three songs on the support line and NEVER ONCE had a live person pick up the phone.
How do I get this abomination to work properly? The helpful tips that might be contained on this page do no good if one can not install and run the program.
Jeff -
How to Get DataBase response back to DB adapter
Hi ,
I have a requirment as below.
1)I have configured a database adapter for updating a record in table using the pure SQL option .Once the record is updated sucessfully I need to get response from Database as Zero records updated or 1 row updated.
How can I get that database response back to my Database adpter. I have to implement this at OSB .
Awaiting for a Response ASAP.
Regards
VikramHi,
As insert on DB is a one way operation. You can check when you created the DB adapter , with pure SQL statement the XSD was not having any return element created in it.
In OSB you will need to use publish action for pushing data into the DB as service callout will not work.
One more thing you can do, use route node to insert data through BS , this will ultimately make sure that error is returned back (when insert fails) .
Thanks,
Durga
- It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts). -
How to get GML data in LAT/LONG format rather than LONG/LAT format
I want to generate GML from my spatial data but sdo_util.to_Gmlgeometry extracts data in LONG/LAT format where as I need it in LAT/LONG format.
Is there an easy way to extract data in LAT/LONG format otehr than parsing the gml and then switching the Lat and long.Hi,
I think it would have to do how you store your geometries, you might need a transformation before, notice the srsName from the resulting query:
SELECT TO_CHAR(SDO_UTIL.TO_GMLGEOMETRY(MDSYS.SDO_GEOMETRY(2001, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1), MDSYS.SDO_ORDINATE_ARRAY(170.5,-43.5))))
from dual
-- Result:
<gml:Point srsName="SDO:8307" xmlns:gml="http://www.opengis.net/gml"><gml:coordinates decimal="." cs="," ts=" ">170.5,-43.5 </gml:coordinates></gml:Point>
So without a transformation I would say it would be hard to get:
http://trac.osgeo.org/gdal/wiki/rfc20_srs_axes
If I come across a simple solution (without some fancy manipulation of the ordinates on a custom function/package) I will post it.
Cheers -
How to get the bytes of a long?
Hi,
I need an 8-byte number for my application. First I create an int and then cast it to long. After that this long number must be represented by 8 bytes, or 64 bits, in memory. As far as I know the leading zeros in its binary representation are present, even though they mean nothing. However, I need to get those 8 bytes and put them in a byte array. And I need all 8 bytes, no matter what their values are. Can anyone tell me what the easiest way to that is? Thanks.legriv wrote:
Thanks for the info about the negative values. One quick question though - is this final masking for printing only or do I need to mask the byte before I put it in the array? Because later this array will be used to reconstruct the number (for a SecretKey if you remember my last posting) and I'm not sure whether the right number will be produced.As I'm pretty sure I said in your thread concerning the DH generation of a SecretKey, an integer is too small to be used as DES key. You will only have at most 2^32 keys using a key based on an int and I can crack that in about 5 minutes even with my slow old dog of a computer.
I don't understand why you could only produce an int using the DH key exchange. There is nothing in the algorithm that restricts one to an int. In fact, because of overflow problems I would have thought it much more difficult to use an int than a BigInteger.
Edit: On second thoughts, using your approach there are only 2^28 keys since the DES key ignores the least significant bit of the 8 bytes of the key! My old Apple II could break that in 5 minutes!
Edited by: sabre150 on Oct 31, 2007 10:59 AM -
How to get exact date using to_date
Hi all
how to get exact date over there
select TO_DATE(TRUNC(PLLA.CREATION_DATE),'DD-MON-YYYY'),TRUNC(PLLA.CREATION_DATE),round(PLLA.CREATION_DATE),
TO_DATE(round(PLLA.CREATION_DATE),'DD-MON-YYYY'),TO_DATE(PLLA.CREATION_DATE,'DD-MON-YYYY'),PLLA.CREATION_DATE,
TO_DATE(TRUNC(PLLA.CREATION_DATE)),TO_DATE(round(PLLA.CREATION_DATE))
from po_line_locations_all plla.
In one of the plsql program i want to compare the creation date with given date where as creation date is in Timestamp formatHi,
Use trunc or to_char with masking like 'dd/mm/yyyy' format. If this does not solve your problem then do post your sample input and sample output. As I am unable to make out what is your actual problem.
Regards -
My link preview has disappeared from the bottom left of the page (it no longer pops up when I hover over a link.) Thoughts on how to get it back? I really LIKE having it!
It is possible that the screen is too high and that the scroll bar and the find bar and add-on bar fall off at the bottom.
If that works then close Firefox (File > Exit/Quit) to save that setting.
See also:
* http://kb.mozillazine.org/Resizing_oversize_window
If the above didn't help then see:
* http://kb.mozillazine.org/Corrupt_localstore.rdf -
HT1338 Free Mountain Lion request, how long does it take to get a response??
Submitted my free request for software update to mountain lion yesterday, how long does it take to get a response, and where can I go to verify my request was received?/
I called them after waiting 12 hours and they said up to 72 hours and there was no place to check things in the meantime.
Their communication on this one is surprisingly bad, but apparently they have it under control. Time will tell. (It's now been about 36 hours for me with no code or confirmation email.)
Maybe you are looking for
-
Hello all - I have a desktop and laptop on a home network with a router, hooked up to DSL service. HP 6310xi all-in-one. The network is working but I cannot print from either computer. I have an ethernet cable that was marked "printer to router" w
-
IC webclient existing service ticket display
Hi, I need to display the number of open service tickets for selected product for current business partner and alongwith this, to show details of first open service ticket. I have managed to meet the first requirement but have no clue about how to di
-
Content Query Web Part Fields Documentation?
Hello community, I have a question about content query web part. I want to use it to display information from a custom large list with more than just the title and description columns that the default allows. For example, I have a list with 50k items
-
Finding the base tables of a database view
Hi I have a database view like VIQMEL, VIQMSM .So how can i find the what are the base tables for these views. pls let me know kumar
-
In Java 3.x I could use Firefox to remote into my company PC and do work. When I upgraded to version 4 it isn't working. I get to where the process is connecting to the gateway and it freezes. I see the Java app begin to run, get a message it's tryin