How to read response from WebService call

Hi,
I am consuming webservices in ABAP. I got proxy classes created. Port is also created.
I am calling classes generated by proxy in ABAP. Classes creates few structure by system. when i make a call to service, I am not getting importing values in veariables declared. Trace file (in SOAMANAGER ) shows call successful & XML file shows the correct response values, but are not appearing in program variables. I declared variables of same type generated by system.
My question is, am I missing any step.configuration? or how to read the variables?
Thanks in advance.
Sunil

You coud create a procedure like this:
CREATE OR REPLACE PROCEDURE soap_env_pr (p_soap_env IN VARCHAR2)
IS
   v_start     NUMBER;
   v_end       NUMBER;
   v_message   VARCHAR2 (400);
   v_length    NUMBER;
BEGIN
   v_start := INSTR (p_soap_env, '<ns0:Ok>');
   v_length := LENGTH ('<ns0:Ok>');
   v_end := INSTR (p_soap_env, '</ns0:Ok>');
   v_message :=
          SUBSTR (p_soap_env, v_start + v_length, v_end - v_start - v_length);
   HTP.prn ('Ok: ' || v_message);
   v_start := INSTR (p_soap_env, '<ns0:SessionNumber>');
   v_length := LENGTH ('<ns0:SessionNumber>');
   v_end := INSTR (p_soap_env, '</ns0:SessionNumber>');
   v_message :=
          SUBSTR (p_soap_env, v_start + v_length, v_end - v_start - v_length);
   HTP.prn ('SessionNumber: ' || v_message);
   v_start := INSTR (p_soap_env, '<ns0:ErrorMessage>');
   v_length := LENGTH ('v_length');
   v_end := INSTR (p_soap_env, '</ns0:ErrorMessage/>');
   v_message :=
          SUBSTR (p_soap_env, v_start + v_length, v_end - v_start - v_length);
   HTP.prn ('ErrorMessage: ' || v_message);
END;and call it like this:
BEGIN
   soap_env_pr
      ('<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/>
<env:Body>
* <invokeScenarioResponse xmlns:ns0="xmlns.oracle.com/odi/OdiInvoke/" xmlns="xmlns.oracle.com/odi/OdiInvoke/">*
* <ns0:Ok>true</ns0:Ok>*
* <ns0:SessionNumber>2223201</ns0:SessionNumber>*
* <ns0:ErrorMessage/>*
* </invokeScenarioResponse>*
</env:Body>
</env:Envelope>'
END;That would give you this output:
Ok: true
SessionNumber: 2223201
ErrorMessage:Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------

Similar Messages

  • How to display response from webservice in second view?

    Hello,
    I would like to develop an application which should do a webservice request from one view and displays the result on another view. How can I do this? Is there an example how to do this?
    Thanks in advance.
    Kind regards,
    Carsten

    Hi Carsten,
    let view VA be the requesting view, VB the view to display the response and RCC a custom controller which is used for actually performing the request and "owns" the Web Service model, then you need the following:
    1. VA has a context node with attributes mapped to the request-attributes of the model. If necessary, some UI elements may be bound to these request attributes. For triggering a request, there's an additional button.
    2. VB has a context node mapped to the response/result node of the WS model. There could be a table bound to the node in case of multiple possible results.
    3. RCC imports the Web Service model and acts as the service controller (you can use Apply template->Service controller to achieve that) and provides a method "executeXXX" to call the Web Service.
    If the button in VA is pressed, executeXXX is invoked, the service is called using the current contents of the request attributes of the model, results are stored in the response/result node. Invalidating the node will display the result(s) in VB.
    Hope that helps.
    Regards
    Stefan

  • Hi, I am using USB 8476s to communicat​e to a slave unit in LIN network using LabVIEW7.1​. Can anyone tell me how i can send a header file plus 1 byte of data to the slave in a LIN network. or how do i use ldf file. i want to read responses from the slave

    Hi,   I am using USB 8476s to communicate to a slave unit in LIN network. Can anyone tell me how i can send a header frame plus 1 byte of data to the slave in a LIN network. or how do I communictae with slave using LabVIEW7.1.
    I want to read responses from the slave. When i tried with labview exapmle programs or even using MAX also, while doing some switching action in my slave, i am getting response as Device inactive with timestamp but there is no data format. 
    And I have Lin Description File. Can you suggest me how to use ldf file.
    I am at customer place and It would be great help from you if you can suggest me at the earliest. Thank you

    you may use the LDF Starter Kit to use LDF informations in your application
    http://joule.ni.com/nidu/cds/view/p/id/665/lang/en

  • How to read data from an internal table into a real table?

    Hello experts,
    I'm relatively new to ABAP and I'm trying to figure out how to read data from an internal table into a table that I created.  I'm trying to use the RRW3_GET_QUERY_VIEW_DATA function module to read data from a multiprovider.  I'm trying to read data from the e_cell_data and e_axis_data tables into a table that I've already created.  Please see code below.
    TABLES MULTITAB.
    DATA:
      query_name TYPE RSZCOMPID,
      s_cubename TYPE RSINFOPROV,
      t_cell_data TYPE RRWS_T_CELL,
      t_axis_data TYPE RRWS_THX_AXIS_DATA,
      t_axis_info TYPE RRWS_THX_AXIS_INFO,
      wa_t_cell_data like line of t_cell_data,
      wa_t_axis_data like line of t_axis_data,
      w_corp_tab like line of t_cell_data.
    s_cubename = 'CORP_MPO1'.
    query_name = 'Z_corp_test'.
        CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
           EXPORTING
             i_infoprovider           = s_cubename
             i_query                  = query_name
            i_t_parameter            = query_string_tab
           IMPORTING
             e_cell_data              = t_cell_data
             e_axis_data              = t_axis_data
             e_axis_info              = t_axis_info.
    If anyone has any information to help me, I would greatly appreciate it.  Thanks.

    Hi,
    <li>Once you call the function module RRW3_GET_QUERY_VIEW_DATA, lets say data is available in the corresponding tables e_cell_data e_axis_data which you have mentioned.
    <li>Modify your internal table defined for other purpose, with data from e_cell_data e_axis_data like below.
    LOOP AT t_cell_data INTO wa_t_cell_data.
      "Get the required data from t_cell_data.
      MOVE-CORRESPONDING wa_t_cell_data TO it_ur_tab.
      "Modify your internal table wih data
      MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
    ENDLOOP.
    LOOP AT t_axis_data INTO wa_t_axis_data.
      "Get the required data from t_cell_data.
      MOVE-CORRESPONDING wa_t_axis_data TO it_ur_tab.
      "Modify your internal table wih data
      MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
    ENDLOOP.
    Thanks
    Venkat.O

  • How  to get  response from such a  function

    How  to get  response from such a  function (in MODULE USER_COMMAND_0010 INPUT I get "ODGOVOR" 'X'
    FUNCTION Z_SEENKRAT.
    ""Local Interface:
    *"  EXPORTING
    *"     REFERENCE(ODGOVOR) TYPE  MSEG-KZEAR
    DATA ok_code LIKE sy-ucomm.
    DATA: test like mseg-kzear.
    BREAK-POINT.
    call screen 10.
    test = ODGOVOR.
    ENDFUNCTION.
    *&      Module  CLEAR_OK_CODE  OUTPUT
          text
    MODULE clear_ok_code OUTPUT.
      CLEAR ok_code.
    ENDMODULE.                 " CLEAR_OK_CODE  OUTPUT
    *&      Module  USER_COMMAND_0010  INPUT
          text
    MODULE USER_COMMAND_0010 INPUT.
    DATA odgovor LIKE mseg-KZEAR.
    CASE ok_code.
        WHEN 'DA'.
        ODGOVOR = 'X'.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0010  INPUT

    Hi,
    You need to declare the ODGOVOR variable in the TOP include, then you will get the value
    Regards
    Sudheer

  • Response from webservice needs to send as Mail content

    Hello,
    i have to configure a scenario as given below
               IDOC --> JDBC --> WebService and response from WebService to SMTPmail receiver.
    now i got strucked at Webservice response. after i got the response from WebService(SOAP), i need to send the both Request and response to Mail Receiver. So Please let me know how to capture request and response both to my SMTPmail adapter(as content or attachment).let me know the steps to proceed for SMTPmail Receiver
    Regards,SARAN

    Hi Raj,
    Thanks for teh reply.
    i have already configured teh above mentioned scenario.but i am not able to get Request and response.
    Could you pelase provide teh steps how to configure BPM in this scenario..(as ia m not handson with BPM)
    Reagrds,Saran

  • Read responses from a form

    How do I read responses from a completed PDF form?
    I used adobe acrobat pro extended 9 to create a form. Was confused at the end as all the methods for publishing the form and collecting responses were more involved than I wanted.  I selected the email option.
    As a test I made a copy of the blank form.  Then completed it, saved the resulting document.  How do I read the responses from a completed PDF form document?
    I want to manually distrubute the PDF form document. Then manually receive the completed form document back. ( copy it to an "in box" folder ). Then use a program of some sorts ( the adobe SDK? ) to automatically pull the response data out of the completed form.
    thanks,

    Thanks a lot.   I understand better now. I opened the completed PDF with acrobat and the response data was automatically associated with the original document.
    Very nice.

  • No response from WebService

    Hi, well i read file and want to send data to WS while getting info back, that data is transmitted. But because it should be synchronous i don't get any response from WS.
    What might be wrong?! even if the WS would answer, there should be an entry in Monitor!?
    br

    Ur sender is file which could not be sync. If u want to get the response from webservice, then u need to configure Async-Sync bridge using BPM.
    Regrads,
    Prateek

  • [Urgent] How to read files from different directories?

    I am new to Java Programming, I would like to know how to read files from directories other than the current one? (example as follows)
    ProjectDirectory
    |--MainDirectory
    |--MainProgram.java
    |--SupplementDirectory
    |--SupplementProgram.java
    |--Pictures
    |--Image.gif
    What should I write in the MainProgram.java so that I can use the supplementProgram.java from MainProgram and read the Image.gif file from the MainProgram.java?
    Thanks

    Run through the I/O tutorial here. It should get you up to speed on this sort of thing...

  • How to read data from a CLUSTER STRUCTURE not cluster table.

    Hi,
    how to read data from a CLUSTER STRUCTURE not cluster table.
    regards,
    Usha.

    Hello,
    A structre doesnt contain data.. so u cannot read from it. U need to find out table of that structure and read data from it.
    Regards,
    Mansi.

  • How to read data from a file that was formatted by excel?

    Hi everyone, I'm familiar with java.io and the ability to read from files, can anyone tell me how to read data from a file that was formatted by excel? Or at least give me some web references so that I can learn about it?

    http://jakarta.apache.org/poi/hssf/index.html
    HSSF stands for Horrible Spreadsheet Format, but it still works!

  • How to read data from a router by using labview

    I am a  beginner labview. How to read data from a router by using labview ? 

    What kind of data are you trying to read?
    Does the router behave like a webserver that you log into?  If so, search the forums for threads discussing HTML.

  • How to read data from a connected modem

    any one can help me? how to read data from a connected modem. The modem received real-time data from other server. The data is in text format. I can see this text when I used hyperterminal for dial up and the data is accumulated such as:
    @aa1235678
    @bb2135647
    @cc5214367
    since it is real-time data, I want to read one line each time instantly when it arrives.

    You need to use the Java Communications API. (http://java.sun.com/products/javacomm/index.html)

  • How to read data from a zipped MS Access file?

    How to read data from a zipped MS Access file?

    RPJ,
    You do not need to use the Close Zip File.vi when you unzip a folder.  This VI is used when you are creating a zip folder.
    As for examples, I found a couple of ActiveX based MS Access examples.  These programs look to be pretty basic.  For more in depth example I would search Microsoft Developers Network
    http://zone.ni.com/devzone/cda/epd/p/id/2188
    http://zone.ni.com/devzone/cda/epd/p/id/1694
    Regards,
    Jon S.
    National Instruments
    LabVIEW R&D

  • How to read HyperLinks from pdf file??

    hi developer's,
    I am in PDF processing... I am having doubt in that Processing.
    How to read Hyperlinks from PDF file?
    I can able to set the hyperlink.. But i cant able to get the hyperlinks..
    The following example program will set the hyperlink to the PDF file using lowagie API..
    import com.lowagie.text.Anchor;
    import com.lowagie.text.Chunk;
    import com.lowagie.text.Document;
    import com.lowagie.text.DocumentException;
    import com.lowagie.text.Paragraph;
    import com.lowagie.text.html.HtmlWriter;
    import com.lowagie.text.pdf.PdfReader;
    import com.lowagie.text.pdf.PdfWriter;
    public class Argu1 {
         public static void main(String[] args) {
              Document document = new Document();
              try {
                   PdfWriter pdf = PdfWriter.getInstance(document,
                             new FileOutputStream("PageLink.pdf"));
    PdfReader pdf_read=new                
                   document.open();
                   document.add(new Paragraph("Hi Everbody....!"));
                   Anchor pdfRef = new Anchor("Click Me");
                   pdfRef.setReference("www.java2s.com");
                   Anchor rtfRef = new Anchor("Touch Me");
                   rtfRef.setReference("www.sun.com");
                   System.out.println(rtfRef.reference());
                   document.add(pdfRef);
                   document.add(Chunk.NEWLINE);
                   document.add(rtfRef);
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              document.close();
    Help me how to read the Hyperlinks from the PDF file using java ...
    Thanks in advance,
    With Regards,
    J.Imran

    Instead of cross-posting unformatted code you could have taken a look at the API, because there you might have come across a method named getLinks...Even though it's not documented, I really suspect that it will return the Hyperlinks on a given page.

Maybe you are looking for

  • Calling report from form in Web environment

    Hi, We are in the process of migrating our C/S appication (developed in Developer2k) to intranet using OAS. My question : a) Is there any other way to call report from a form other than web.show_document? b) When a report is called from the report se

  • How to connect to SAP DB2 server in Biztalk 2013

    I have Biztalk 2013 server installed.I have installed all the adapters installed during the instllation wizard. But I am not able to find the Db2 adapter in consume adapter metadata option. Can someone suggest what i am missing ot how to consume it ?

  • Macbook pro retina samsung panel, lg panel, which one is better?

    macbook pro retina samsung panel, lg panel, which one is better?

  • ORA-00314: log 1 of thread 1, expected sequence# 416 doesn't match 413

    Hi, SQL> startup ORACLE instance started. Total System Global Area 289406976 bytes Fixed Size 1248576 bytes Variable Size 117441216 bytes Database Buffers 163577856 bytes Redo Buffers 7139328 bytes Database mounted. ORA-00314: log 1 of thread 1, expe

  • How does the follwoing query work?

    Want to know how does the follwoign query work?? For every row in flsp the subquery is going to get executed or is it just one time execution of the subquery?? UPDATE flsp SET (DURATION, sdr, inr) = (SELECT SUM (tot_charges), SUM (tot_charges_sdr), S