Iterate thru the list within xml with soap?

Hello.
Can someone show me how to get the data out from the response message? my WebService on the other end got my request, and i also know that I received the response correctly... when I print the return envelope, it looks like this,
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<Sector_GetAllResponse xmlns="http://schemas.xml.com/SVC">
  <Sector>
   <Symbol>ABCD</Symbol>
   <Industry>NUMBER_ONE</Industry>
  </Sector>
  <Sector>
   <Symbol>EFGH</Symbol>
   <Industry>NUMBER_TWO</Industry>
  </Sector>
</Sector_GetAllResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>And here is my code - I need to know how to parse the message so i can get ABCD is NUMBER_ONE, and EFGH is NUMBER_TWO..etc.. (of course, number of return records might vary)
               MessageFactory factory = MessageFactory.newInstance();
               SOAPMessage message = factory.createMessage();
               SOAPPart part = message.getSOAPPart();
               SOAPEnvelope envelope = (SOAPEnvelope) part.getEnvelope();
               SOAPBody body = envelope.getBody();
               envelope.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
               Name bodyname = envelope.createName(GetAllOperation, "m", SCHEMA);
               SOAPElement bodyElement = body.addBodyElement(bodyname);
               message.saveChanges();
               SOAPConnection conn = SOAPConnectionFactory.newInstance().createConnection();
               SOAPMessage response = conn.call(message, GetAllServiceCall);
                        // how to parse response. so i can get the ABCD and EFGH, with their NUMBER_ONE and NUMBER_TWO industry?Thanks.
T
Edited by: adidas79 on Dec 14, 2007 6:15 AM

Surya -
Look the the various JSPs in the framework directories. For example the
window.jsp and page.jsp should give you pointers on how to get started with
this.
Regards,
Kunal
"Surya" <[email protected]> wrote in message
news:[email protected]..
Hi Friends,
I have a task at had which is to iterate the books and pages in my
portal and display details about each one of them
like their definitionLabel,Title,Theme and so on other properties.CanAnyone
Tell me of a Way or if possible give me the code snippet which can Help me
to achieve my task .
With Regards,
Surya,
Bangalore

Similar Messages

  • Any option to get the list of Invoice with respect to Sales Area

    Dear All,
    Is there any option to check the list of Invoices with respect to the Sales area.
    Because, in VF05, we are getting the list either for a Payer or a Material.
    I want to see the list of Invoices for a Sales area. I mean, it should be similar to VA05, where we can get the list of Sales Orders even without providing the Customer and Material information.
    Reagrds,
    Mullairaja

    HI
    Use the T code VF05N and select the option Bill documents in Fi
    Here you can get the list of invoices
    Try with MC+2
    regards
    Prashanth
    Edited by: Prashanth@SD on Nov 11, 2010 9:44 AM

  • TC for the List of PO with GRR and PR

    Dear all,
    What is the TC for the List of PO with GRR ?
    How to see pending list of purchase requisitions ?
    Pl' tell related tables also for ABAP ?
    Thanks.

    Transaction code to view PO list, you can see it in ME2M,ME2L
    Transaction code to view PR list ME5A
    Full MM Transaction Codes Flow with table
    Purchase Requisition ME51N (Table - EBAN) RFQ to Vendor - ME41 (EKPO, EKKO) Raising Quotation - ME47 (EKPO, EKKP) Comparison of Price - ME49 (EKPO, EKKO) Creation of PO - ME21N (EKPO, EKKO, EKBE, EKPN, EKKN, EKPV) Goods Receipt - MIGO (MSEG) Invoice (Bill PAssing) - MIRO (BSEG) Goods Issue - MIGO (MSEG) Physical Inventory - MI01( Create doc) (ISEG)
    MI04 (Enter Count) (ISEG)
    MI07 (Post) (ISEG)
    Regardsv
    venkadesh
    reward if helpful

  • Report to show the list of Equipment with Attachment.

    Hi Experts,
    i have attached a file in Equipment Master IE02. Any report can show the list of equipment with attachments?
    Please advise.
    Thank You
    Best Regards

    If you are using IE02, then i think you are using object services - I have never seen a way to view these in an equipment list.  You can only view these while looking at the equipment.   If you use DMS (tcode CV01N) these will show on IE07 as well as in the notification or work order when you use this equipment.

  • Any report or Table to see the list of orders  with errors  in SAP CRM?

    Hello All,
    Can anyone help me in getting  a table or report  to find the list of orders with errors in SAP CRM?.
    Let me know if you need any additional information.Thanks in advance.
    Cheers
    Sreedhar
    Edited by: sreedharhazari2 on May 26, 2010 11:59 AM

    Hello Chait,
    I got the solution  by this report CRM_ORDER_CHECK_STATUS.
    Anyhow thanks very much for your inputs.
    Cheers
    Sreedhar
    Edited by: sreedharhazari2 on May 30, 2010 8:48 AM

  • How to know the the list of tables with no rows inside a schema?

    with reference to
    http://www.ss64.com/orad/USER_TABLES.html
    How to know the the list of tables with no rows inside a schema?
    I try this select table_name from user_tables where num_rows=0;
    I can found one table that is empty.
    So what's the query to return list of tables in a schema which has no rows?
    thanks

    You can do that only if your have collected the stats properly. Otherwise its going to show you wrong information.
    Check this out...
    SQL> drop table t
      2  /
    Table dropped.
    SQL> create table t
      2  as
      3  select level no from dual connect by level <=100
      4  /
    Table created.
    SQL> select table_name,num_rows from user_tables where table_name = 'T'
      2  /
    TABLE_NAME                       NUM_ROWS
    T
    SQL> begin
      2      dbms_stats.gather_table_stats(user,'T');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> select table_name,num_rows from user_tables where table_name = 'T'
      2  /
    TABLE_NAME                       NUM_ROWS
    T                                     100
    SQL>Thanks,
    Karthick.

  • When I use Thunderbird with Yahoo Groups, Google groups, and other email lists, I don't get a copy of my own emails back from the list (I do with Mail.app)...?

    When I use Thunderbird with Yahoo Groups, Google groups, and other email lists, I don't get a copy of my own emails back from the list. I *do* when I use Mail, so it seems like a Thunderbird thing. I'd really like to see my own emails come back to me in the conversation so that I know where my remarks fall in the discussion; it's very disorienting when you can't tell if your email has arrived at the list, or not. I can't seem to find the setting, and I've searched thru your help topics, etc., to no avail. Thanks.

    It's both gmail and mac.com email accounts, and it's all email lists -- including some privately hosted on servers, that are not Google groups, not Yahoo groups.
    I'm not sure what you mean by "saving a copy of your messages yourself" in Mail -- if I email to the lists with Mail on my laptop or iPad, I can see it on my desktop computer too, right in line with other email messages in the thread, after the list resends the message I've submitted. It's only Thunderbird that this "invisible posts" behavior happens, and it didn't use to happen this way. I used to get my emails posting right in the thread.

  • Report for the list of meterials with  sales text .

    dear all,
    can any body help me in code for  list of meterials with sales text as discription.
    thanks &rgds
    vamsee krishna yadav

    Hi Vamsee
    The table for material related Sales data is MVKE.
    If you want to display materials then you may write a select query on MVKE, selecting Sales Organization and Distributuion Channel.
    the concatenate mat number (with the leading zeros), Sales Org and Dist Channel into what will be the 'Name'
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    id = '0001'
    language = <language>
    NAME = 'Name'
    object = 'MVKE'
    TABLES
    lines = li_lines.
    Now read the li_lines table for the Sales Text.
    Thanks
    Pushpraj

  • JSF How to iterate over the list of a panelForm's child elements.

    Hi all
    My users have asked me to create a "clear all" button that initializes all input values of a search form's fields to null.
    To do this I created a managed bean and added the following code
    public String ClearFieldsBtn_action()
    String[] fieldIDs = {
    "Material",
    "Description",
    "Length",
    "Width",
    "Thickness",
    for (int i = 0; i < fieldIDs.length; i++ )
    try {       
    AttributeBinding attr = (AttributeBinding)getBindings().getControlBinding(fieldIDs);
    attr.setInputValue( null);
    } catch (Exception e) {
    System.out.println(e.toString());
    return null;
    I wonder if there any other more elegant way to iterate over the fields contained inside the JSF panelForm that contains all these "Material", "Description", etc fields and thus be able to easily transport the same functionality in more that one page?
    Thanks in advance
    Thanassis

    Thanassis,
    I use some code like this (where "target" is a variable in the managed bean representing the parent component - the panelForm in your case):
        List children;
        int  i, cnt;
        children = target.getChildren();
        cnt = target.getChildCount();
        for (i=0; i< cnt; i++)
          // do whatever you need here, such as clearing fields
        }This doesn't operate on the model, just on the UI components themselves. I do use something like this in a superclass backing bean for when I need to iterate over a bunch of UI components.
    John

  • Tcode to view the list of orders with reason for rejection

    Hi friends,
    Can any one tell the T.code or report to view the  list of sales orders or Scheduling agreements with Reason for Rejection updated.
    Kindly help.
    Regards,
    K.Vivek

    Hi Vivek,
    Use Tcode VA05 i.e. List of Sales Order. In this Tcode you can enter sales document type, sales area and other related data. After execution, from layout you can select Reason for Rejection from the list.
    This way you can filter all the sales documents including Scheduling agreements by using sales document types.
    Hope this will help you.
    regards,
    Sagar Wagh

  • Looking for a bapi that gets the list of customers with a credit limit

    Hello SAP gurus
    I want to know if there is a standard bapi that I can use to find all customers with a credit limit of $10000 and that have exceeded this limit.
    Any response/feedback will be highly appreciated.
    Tks
    Ram

    Thanks J@Y,
    I had read that discussion about the tables with the info. However, I have an external program that is integrated to SAP sytem (using webservices). The external program when needed has to retrieve the list of customers who have exceeded certain credit limit. So I was wondering if there is any standard BAPI which I can use. Or do I need to write my own BAPI using the tables info that you have indicated.
    Tks
    Ram

  • SQVI to display the list of vendors with the email address

    Hi can any one please provide me the steps for SQVI to get the list of the vendors(LFA1) with the Email address ( ADR6 )

    go to t-code sqvi> enter ztest or any cutom name>create>enter title>enter comments
    -->slect table join asa a data source and hit enter..
    -->press shiftF1 and enter table name LFA1 and again press shiftF1 and enter table ADR6..and hit
    enter
    now you will get the table relation ship between the LFA1 and  ADR6 ..
    next go to se16 and get the value for the vendor and pass the value to adr6 ..
    Prabhu

  • Can we get the list of words with hyphenation breaking used in English:US dictionary?

    Hi,
    I require list of words with hyphenation breaking used in English:US dictionary. I have reviewed in InDesign supporting files in my local folder but I couldn't get. Can anybody assist?
    regards
    Masthan

    InDesign uses Proximity dictionaries for most languages to verify spelling and to hyphenate words. You can add words to each dictionary to customize it. You can assign different languages to text, and InDesign uses the appropriate dictionary to handle spelling and hyphenation.
    There are possible breakpoints the dictionary will consider and then show up in the InDesign , if you want to know between which two syllables Indesign’s dictionary prefers to hyphenate, and what other possible breakpoints the dictionary will consider.
    Choose Edit > Spelling > User Dictionary.
    In the Language menu, choose a language. Each language contains at least one dictionary. If you want the word to be added to all languages, choose All Languages.
    In the Target menu, choose the dictionary where you want to store the word. The Target menu lets you store the changes in an external user dictionary or in any open document.
    In the Dictionary List menu, choose Added Words.
    In the Word box, type or edit the word to be added to the word list.
    Click Hyphenate to see the word’s default hyphenation. Tildes (~) indicate possible hyphenation points.
    If you don’t like the hyphenation points, follow these guidelines to indicate your preferred hyphenation of the word:
    Type one tilde (~) to indicate the best possible hyphenation points, or the only acceptable hyphenation point, in the word.
    Type two tildes (~~) to indicate your second choice.
    Type three tildes (~~~) to indicate a poor but acceptable hyphenation point.
    If you want the word never to be hyphenated, type a tilde before its first letter.If you need to include an actual tilde in a word, type a backslash before the tilde (\~).
    Click Add, and then click Done. The word is added to the currently selected Dictionary List.
    Note: Remember that hyphenation points interact with the hyphenation settings in your documents. As a result, the word might not break where you expect it to. Control these settings by choosing Hyphenation in the Paragraph panel menu.
    By default, hyphenation and spelling exceptions are located in user dictionary files stored outside the document on the computer where InDesign is installed (dictionary file names end with a .clam or .not extension). However, you can also store exception lists inside any InDesign document. In addition, you can store word lists in an external user dictionary, in the document, or in both. The location of existing dictionaries appears in the Dictionary preferences.

  • How to find out the list of workflows with active event linkage?

    Hi All,
    I want to find out the list of workflows whoe event linkage is activated in the system.
    Through SWU0, we can get a list of workflows attached to a particular event of a business object.
    Thanks,
    Sivagami

    Hi,
    Thanx for ur reply..
    I got the list from the table...
    thanks,
    sivagami

  • I purchased a movie from itunes on my ipad but it doesn't show up in my library.  It shows up in my history of purchases when I open that page but it is not noted in the list of purchases with all my other purchases.  Any idea why?

    I purchased a movie from itunes on my regular ipad but it doesn't show up in my library.  I am able to view it via my movies icon on the Ipad I used when purchasing it but it does not show up in my purchases listing to download to my ipad mini.  Also if I access my itunes account it does not show up in the history of purchases listing like all my other purchases but it does show up when i open that page at the very top; separate form the list.  I've tried everything to get it to show up so I can download/view it on my ipad mini.  

    Hi adtsalmon,
    You can only watch the movie on the device you rented it on. Here's a snippet from the Apple Support site (italics mine):
    If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library. You can move the movie between devices as many times as you wish during the rental period, but the movie can only exist on one device at a time.
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.
    Here's the link to the Movie Rentals FAQs site FYI:
    http://support.apple.com/kb/HT1657
    Hope this helps!
    Cheers,
    GB

Maybe you are looking for