Capturing the Output of a webservice on an APEX form
Hi,
I have created an application that calls a Webservice (BPEL process). The application has a single form that takes in a single field (ReviewDate) and calls the Webservice. The Webservice does its thing and returns a mesage "The review date has been accepted".How do I capture this message in my form? I have the placeholders for input and output parameters but the output is not returned to the form. What do I need to do capture this message?
Also, please note that the webservice does its thing successfully. I only need to capture the output of the webservice in my form.
Thanks
Vijay
You can set the MIME content type as .doc and try to open the Page.
res.setContentType("application/vnd.ms-excel"); to generate the Page output as Excel
res.setContentType("application/vnd.ms-word"); to generate the Page output as MS Word doc
Hope this helps..
Similar Messages
-
How to capture the output of another program into a File/String
I needed to capture the output of a dos program in an String/file I tried doing Runtime.getRuntime.exec("ipconfig /all >tmp.txt");
but still I am unable to capture the output frm the program which I would like to capture in a file or String.Can anyone helpWhen you use the Runtime.exec() method, it returns a Process object, that process object has access to the streams; stdout, stdin, and stderr of the application you just executed. what you'll want to monitor is the stdout or stderr streams using the
p.getInputStream() or p.getErrorStream(), where p = the process object returned via the Runtime.exe() method. -
Capturing the output of a os command line
I need to capture the output of a os command line executed from one java program and I don't know how can do it.
For example:
Runtime.getRuntime().exec("hostid");Your suggestion worked very well, just in case that this could interest somebody, this is the complete solution
Thanks for your help
import java.io.*;
public class HostID
public static void main(String args[]){
try{
InputStream in = (Runtime.getRuntime().exec("hostid")).getInputStream();
byte[] arreglo= new byte[200];
int cantidad = in.read(arreglo);
System.out.println(new String(arreglo,0,cantidad));
} catch (IOException ioe){System.out.println(ioe.getMessage());}
} -
Capturing the output of a jsp page and save that output in a WORD .doc file
Hi,
This is Naveen. I got stuck up with a problem/doubt. URGENT ! URGENT !
My doubt is how to capture the output of a jsp page(the content is dynamic generated) and save that output to a MS-Word doc file.
I know that therez an option of using Servlets Filters, but this concept is supported by Servlet 2.3 spec. and not earlier. And we are working on previous spec. and our web-servers also supports the prev. version and not the 2.3 version.
If incase, therez a third-party utility for free usage, suggestions are appreciated.
Hope most of them came across this kind of functional requirement. If anyone of them succeeded in this, please express ur bitter experience if any, faced during the coding.
Thanks in Advance for help.
NaveenYou can set the MIME content type as .doc and try to open the Page.
res.setContentType("application/vnd.ms-excel"); to generate the Page output as Excel
res.setContentType("application/vnd.ms-word"); to generate the Page output as MS Word doc
Hope this helps.. -
Capturing the output from jsp selvlet
Hi,
I have a requirement where I need to capture the output of the JSP generated servlet
, and do something with it before it get's to the client side.
Has someone done something like this before.Any ideas, suggestions .
Thanx,
Tajdar
You can set the MIME content type as .doc and try to open the Page.
res.setContentType("application/vnd.ms-excel"); to generate the Page output as Excel
res.setContentType("application/vnd.ms-word"); to generate the Page output as MS Word doc
Hope this helps.. -
Hi all ,
I Wish You A Happy New Year!!!!!!!!
I am trying to capture the output of a java program into a file i.e,when I run the java program at command prompt and get the output, the output must be automatically captured into a file is this possible using java code
Please help me
Thanks,
raghuAnd Mac OS/X is a unix variant, so it works there too.
You can also redirect standard output in Java itself by using System.setOut, but once you're altering the Java code, I'd suggest refactoring the code so that it doesn't send all its output to standard output necessarily. -
Capturing the output of a javax.sound.midi.Synthesizer
Hallo,
since i can�t convert a MIDI-Sequence to a WAV-File directly, i want to play back the Sequence and capture the sound somewhere "between" the sound-generating synthesizer and the speakers. As far as i understand, i have to obtain a TargetDataLine from an output mixer, so i can read the sound data, since ports aren�t implemented yet. My problem is: How can i obtain such a TargetDataLine?
With something like
info = new DataLine.Info(TargetDataLine.class, format);
line = (TargetDataLine)AudioSystem.getLine(info);
i get a line to capture microphone input.
i managed to get a mixer that is opened and started, when the synthesizer is opened, but that mixer only provides com.sun.media.sound.MixerSourceLines.
Any help will be greatly appreciated.Not a reply, I'm afraid.
I want to combine Midi output with audio output, which is exactly the same question as this thread. The whole thrust of Java sound is to 'unify' Midi and Audio, and yet I've fallen at the first hurdle.
This thread was opened in Nov last year, yet is still unanswered. Is this right? -
Capturing the output of a JSP page as HTML
Hi,
Can anyone tell me if this is possible. I have a JSP page that contains
information about an order that was just entered (Essentially a
confirmation page). What I want to do is somehow intercept the output
stream inside the JSP page and write it to a file, as plain html, which
I
will later attach to an email and send to someone.
Thanks,
Jordi
Jordi Pinyol Essi Projects
Ingeniero de Desarrollo
[email protected] t +34 977 221 182
http://www.essiprojects.com f +34 977 230 170You won't be able to "intercept" the output since it is the JSP page itself that is doing the writing.
Will the file that you write the output to reside on the client side or the server side? It sounds like you want to receive the HTML output not as something to view on the browser, but a file you can save and send and use later. If this is the case, one technique that might work is to take advantage of the servlet name mapping feature that is available for registered JSP pages.
Assuming your JSP pages are registered, you would map your JSP page like:
<servlet>
<servlet-name>confirmation</servlet-name>
<jsp-file>confirmation.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>confirmation</servlet-name>
<url-pattern>/confirmation.out</url-pattern>
</servlet-mapping>
What happens is that a request for the URL /NASApp/myapp/confirmation.out gets mapped to the confirmation.jsp JSP page. If you set your MIME type correctly in the JSP page, the HTML output from the JSP page is not properly recognized by the browser causing it to prompt you to save the file.
I have used this technique to generated CSV files from a JSP page. The browser is completely fooled.
JC
Jordi Pi?ol wrote:
>
Hi,
Can anyone tell me if this is possible. I have a JSP page that contains
information about an order that was just entered (Essentially a
confirmation page). What I want to do is somehow intercept the output
stream inside the JSP page and write it to a file, as plain html, which
I
will later attach to an email and send to someone.
Thanks,
Jordi
Jordi Pinyol Essi Projects
Ingeniero de Desarrollo
[email protected] t +34 977 221 182
http://www.essiprojects.com f +34 977 230 170 -
Capture the output of ExceptionDescribe
I have some C++ code which calls Java code through the Invocation API:
jType type = env->SomeJNICall();
if ( type == NULL || env->ExceptionOccurred() )
env->ExceptionDescribe();Instead of spitting out the exception description to stdout (or stderr?) is there a way of capturing the text and putting it into a std::string or copying it into a memory location pointed to by a char *?
Thanks!I believe the API can be used to return the actual exception. With that, you can get its class, and with its class you can call methods of the exception object. (All, of course, via JNI.)
-
Is there any way to capture the output of a trnsaction
Hi EXPERTS,
i TRIED TO CAPTURE O/P OF TRANSACTION IW3M USING SUBMIT,
IT WASNT SUCCESSFUL
pLEASE SUGGEST ME SOME OTHER WAY TO DO.Hi,
Did you check spool requests -> SP02.Could you elaborate on how you came to the conclusion that it wasnt sucessfull? -
Need to capture the output of parseEscapedXML() function in a variable
Hi All,
In my BPEL process, I am fetching the XML data from the database which is stored in a CLOB column, using the database adapter. As it is in a string type I am using parseEscapedXML() function to get the XML data out.
I have done the following:
Imported the XSD to the project. Created a variable of element type and in the type explorer , navigated to 'Project Schema Files' -> My .XSD file -> complex XML element. But when I use this variable in any of my process activities, I get the following compilation error:
Error(58):
[Error ORABPEL-10010]: unresolved element
[Description]: in line 58 of "<bpel procedure path>", XML element "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}OutboundPaymentInstruction" of variable "Variable_2" is not defined.
[Potential fix]: Make sure the XML element "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}OutboundPaymentInstruction" is defined in one of WSDLs that are referenced by the deployment descriptor.
Which WSDL file is the error referring to (I use empty BPEL process as the template)
Could anyone please let me know how do I create a variable which is of my XSD type and use the variable for further transformation.
Thanks a lot.
Regards,
PradPrad,
Did you get this resolved? I am having the same issue and can not get it to work.
Thanks
Troy
Message was edited by:
user641994 -
Unable to Capture ALV output in an Internal Table, after CALL TRANSACTION
Dear all,
My requirement is to run multiple materials in T-code CK86_99 but as we know CK86_99 is only adequate to one material at a time.
So, I want to capture the Output of the T-code in my Internal table with respect to all the Material Numbers I use in the Select-Options of my Z Program.
Below is the Code I developed so far, but the Class
cl_salv_bs_runtime_info=>get_data_ref(
IMPORTING r_data = lf_ref ).
is not capturing the Ouput...
Please have a look and enlighten me how it could be solved.
TABLES : mara.
DATA : BEGIN OF wa_mara,
matnr TYPE mara-matnr,
END OF wa_mara.
DATA: it_bdcdata TYPE TABLE OF bdcdata,
wa_it_bdcdata LIKE LINE OF it_bdcdata,
it_mara LIKE TABLE OF wa_mara.
* BELNR(10).
FIELD-SYMBOLS:<fs_tab> TYPE ANY TABLE,
<fs_line> TYPE any.
DATA:lf_ref TYPE REF TO data,
lf_ref1 TYPE REF TO data.
SELECT-OPTIONS so_matnr FOR mara-matnr.
PARAMETERS p_werks LIKE t001w-werks.
*BELNR = 'Z92'. " Give Document Number here
SELECT matnr FROM mara INTO TABLE it_mara WHERE matnr IN so_matnr.
DATA opt TYPE ctu_params.
LOOP AT it_mara INTO wa_mara.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-program = 'SAPMKKB0'.
wa_it_bdcdata-dynpro = '0300'.
wa_it_bdcdata-dynbegin = 'X'.
APPEND wa_it_bdcdata TO it_bdcdata.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'BDC_CURSOR'.
wa_it_bdcdata-fval = 'KKB0-MATNR'.
APPEND wa_it_bdcdata TO it_bdcdata.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'KKB0-MATNR'.
wa_it_bdcdata-fval = wa_mara-matnr.
APPEND wa_it_bdcdata TO it_bdcdata.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'BDC_CURSOR'.
wa_it_bdcdata-fval = 'KKB0-WERKS'.
APPEND wa_it_bdcdata TO it_bdcdata.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'KKB0-WERKS'.
wa_it_bdcdata-fval = p_werks.
APPEND wa_it_bdcdata TO it_bdcdata.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'BDC_OKCODE'.
wa_it_bdcdata-fval = 'OSNY'."'ONLI'."=CRET'.
APPEND wa_it_bdcdata TO it_bdcdata.
* CLEAR wa_it_bdcdata.
* wa_it_bdcdata-program = 'SAPLKKRSOO'.
* wa_it_bdcdata-dynpro = '0100'.
* wa_it_bdcdata-dynbegin = 'X'.
* APPEND wa_it_bdcdata TO it_bdcdata.
* CLEAR wa_it_bdcdata.
* wa_it_bdcdata-fnam = 'BDC_OKCODE'.
* wa_it_bdcdata-fval = 'BACK'."=CRET'.
* APPEND wa_it_bdcdata TO it_bdcdata.
* CLEAR wa_it_bdcdata.
* wa_it_bdcdata-program = 'SAPMKKB0'.
* wa_it_bdcdata-dynpro = '0300'.
* wa_it_bdcdata-dynbegin = 'X'.
* APPEND wa_it_bdcdata TO it_bdcdata.
* CLEAR wa_it_bdcdata.
* wa_it_bdcdata-fnam = 'BDC_OKCODE'.
* wa_it_bdcdata-fval = 'EXIT'."=CRET'.
* APPEND wa_it_bdcdata TO it_bdcdata.
opt-dismode = 'N'.
cl_salv_bs_runtime_info=>set(
EXPORTING display = abap_false
metadata = abap_true
data = abap_true ).
CALL TRANSACTION 'CK86_99' USING it_bdcdata OPTIONS FROM opt.
TRY.
cl_salv_bs_runtime_info=>get_data_ref(
IMPORTING r_data = lf_ref ).
ASSIGN lf_ref->* TO <fs_tab>.
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE 'Unable to retrieve ALV data' TYPE 'E'.
ENDTRY.
cl_salv_bs_runtime_info=>clear_all( ).
IF <fs_tab> IS ASSIGNED.
CREATE DATA lf_ref1 LIKE LINE OF <fs_tab>.
ASSIGN lf_ref1->* TO <fs_line>.
ENDIF.
*LOOP AT <FS_TAB> ASSIGNING <FS_LINE>.
*ENDLOOP.Hi Abhay,
If you go to Transaction code SE93, enter the tcode "CK86_99" and click display, you may see the default value for transaction is "KKBB" and the screen field for P_SCREEN = 0300, P_TCODE = ck86_99.
You may need to copy the transaction code "KKBB" and go to SE93 again, enter the tcode for "KKBB" then click display, now you may see the program name is "RKKB1000".
Hope this answer your question.
Thanks
Hock Lin -
How to capture graphical outputs from other programs
Does anyone know how we capture the graphical outputs from the other programs and show them
on the swing?
I'd like to use a java program to run gnuplot, capture the outputs, and show them using swing.Depends on what you mean by "graphic outputs".
Taking a quick glance at the gnuplot homepage, it looks as if you can output to PNG files, so just run the app, and load the png file. -
How would you capture the stdout of Runtime.getRuntime().exec())?
Say you wanted to execute PKZIP25.exe from java using Runtime.getRuntime().exec(). How would you capture the output of PKZIP25 (the console IO) in a file so you could check the results?
Thanks
Bill BlalockThanks.
Could you explain a little more?
The program I am calling seems to be executing, as far as Java is concerned, but nothing happens. I imagine I have made mistakes in calling it but can't see the output to the console.
Should I use Runtime.getRuntime().exec() or Runtime.exec() for something like this?
I appreciate the help!
Bill B. -
Capturing trace() output
Does anyone know if there's a way to capture the output of
trace()? I'm trying to display trace statements in my application
for debugging purposes. I know I can use the debugging console in
Flex Builder or view the log files directly, but this approach has
its advantages for our situation. Any suggestions would be
appreciated. Thanks.Would a sql based solution (not from the OLAP worksheet tool/utility) work for you?
DECLARE
a_out varchar2(2000);
BEGIN
a_out := '';
dbms_aw.aw_attach(name=>'USER1.AW1',forwrite=>false);
dbms_aw.run(cmd=>'dsc DIM1', output=>a_out);
dbms_output.put_line('AW cmd output (object DIM1): '|| a_out);
dbms_aw.aw_detach(name=>'BIA_RTL_OLAP.PSLSINV');
END;
**************
Maybe you are looking for
-
Hi All, If you come across the printing is not working, or cancelling automatically or disappear from spooler, for Microsoft applications, then here is the workaround. Create a new user account and login to to the computer, and you should be able to
-
What can i do for accessibility setting restore
i have changed setting in accessiblility now my phone working in only sepack. so what can i do for same
-
Field Render in Pal 25i changes the look of or removes effects
Hi I have experienced on several occasions (mostly with Trapcode shine) a problem where the effect (rays) is rendered incorrectly or not at at all. I can get around this by rendering at 50 frames per sec and then re-importing and re-rendering to 25 f
-
Is there a solution to my problem Forgot My Apple and Vmtaat two and asked to email and Baspurd
Is there a solution to my problem Forgot My Apple and Vmtaat two and asked to email and Baspurd
-
Maximum Length of Query String
Hello all, I am getting the (in)famous null pointer exception inside my Webaction. I am appending certain parameters to my Action object in Javascript, so that they are avaialble in my webaction. Here there is no way that a certain value can come nul