How to read XML content from IPortalComponentRequest and parse them

Hi ,
I have a portal application.The application has 2 components(Comp1,comp2).
Comp1 is JspDynpage and Comp2 is AbstractPortalComponent.
Comp1- has a iframe element which point to the external url and has a parameter return_url.
retrun_url has a value as url to Comp2(http://ibm0343:50000/irj/servlet/prt/portal/prtroot/NewUrlProj.NewUrlComp)
When an event occurs in the external site,i suppose to receive XML content in return_url(ie Comp2),how can i check using the request if the received content is XML and how do i parse them.
I have already seen blogs from Prakash singh in which it refers a xml fixed location in webserver.

Hi Detlev,
i am reposting this once again as the previous
reply didnt align good.
Thanks for your reply.The scenario is that
My portal application has to communicate with external GIS(Graphical information system)
service provider client application.
They say that i have to use iframe in my portal application.
Here is the snipet of the iframe tags.
<iframe
id="Nedbrowser"
name="Nedbrowser"
width="100%"
height="100%"
frameborder="no"
marginheight="0"
marginwidth="0"
scrolling="no"
style="position:absolute; top:0; left:0; width:800; height:400; z-index:100; visibility:visible"
src="http://nbg.nedg.nl/nbgint/NBG_INT_main.asp?action=CHART&datasource=NBGMV&product=INTERNET&size_x=300&size_y=300&result_frame=Results&
result_url=http://ibm0343:50000/irj/servlet/prt/portal/prtroot/NewUrlProj.NewUrlComp&
default_centre_x=256000&default_centre_y=471000&default_width=0.5">
</iframe>
<iframe
id="Results"
name="Results"
width="100%"
height="100%"
frameborder="no"
marginheight="0"
marginwidth="0"
scrolling="no"
style="position:absolute; top:400; left:0; width:800; height:200; z-index:100; visibility:visible"
src="about:blank">
</iframe>
When my portal application is started, comes the GIS map in the iframe with in my portal application.
When the user clicks in the area of the map,Gis application returns xml data to the return_url.
The reurn_url is my PortalAbstractComponent in which i have to parse the xml and use it for further processing in R3 system.

Similar Messages

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • TS1538 Have a new ipod nano 7, have music on my pld Windows laptop and myGot a new ipod nano 7. Have music on both Windows 7 laptop and mac. How do i pull music from both and put them on my ipod. Thanks

    Got a new ipod nano 7. Have music on both Windows 7 laptop and mac. How do i pull music from both and put them on my ipod. Thanks

    Yes.
    tomfromlong beech wrote:
    "Remember one one level of subfolders is allowed."  Does this mean that you can have as many subfolders as you want, but they can only be one level deep under the main folder?

  • How to read .xml file from embedded .swf(flash output) in captivate

    I have been trying to read .xml file from the .swf (Flash output) that is embedded within the captivate file but no luck yet . Please if anyone got any clue on how get this thing done using Action script 3.0 then let me know. I am using Adobe Captivate 5.5 at present and Flash CS 5.5.
    I am well aware about how to read .xml file through action script 3.0 in flash but when insert the same flash in captivate and publish nothing comes in captivate output. I would higly appreciate if anyone could help me out with that.
    Here is is graphical demonstration of my query :
    Message was edited by: captainmkv

    Hi Captainmkv,
    Does the information in this post cover what you're trying to do: http://forums.adobe.com/message/5081928#5081928
    Tristan,

  • How to retrieve xml file from BLOB and display on browser with css/xslt

    Hi All,
    I am new to xml. I am storing my xml file into BLOB in database. Now in my jsp page I want to retrieve this xml file from BLOB and display in HTML/CSS/XSLT form...
    Pl. guide me.. any docs..?? Logic...??
    Thanks in Advance.
    Sandeep Oza

    Hello Sandeep!
    I'm not familiar with jsp but logic should be as follows:
    -in jsp page instantiate XML parser
    -load specified BLOB into parser
    Now you may traverse the XML tree or you might load XSL file and use transform method to transform XML according to XSL file.
    I have an example where I'm selecting XML straight from relational database and then transform it using XSL into appropriate HTML output, but it's written in PSP.
    You can try http://www.w3schools.com/default.asp for basics on XML, CSS, XSL. It's easy to follow with good examples.
    Regards!
    miki

  • Repeating XML content from db and linked images

    I'm using XML to flow content from a database into an ID CS2 pub. There will be an .ai file associated with each record which will be placed into a tagged inline frame in each repeating element. I would like to store the .ai files in their own directory and have a field in the database that references the path to each specific file for each particular record.
    So...do I simply need to put a placeholder image in the layout and tag the path to the link with the same name as the db field referencing the image path? How do I tag the path to the linked image?
    On a related note, I would also to include a symbol with certain records (there's a field in the db that's a "yes-no" checkbox--if this box is checked for any record, I would like the symbol to appear on the page with that record).
    Hope I'm being clear here.
    Thanks for the help.

    Hello bshannon,
    Thanks for your answer, I tried your suggestion but when I use URLDataSource I get the error message http 500 (in my original post I said that using URLDataSource the mail was sent but without the image... my mistake, I was getting this same error). I traced the error and I found that it is caused by a null pointer exception... let me explain
    This is the code for the jsp that returns the image:
    4        <jsp:useBean id="coverImage" class="com.mqm.struts.getImageAction" scope="session" />
    5       <%
    6           // Desired size of the image to return
    7           int heigth = Integer.parseInt(request.getParameter("heigth"));
    8          int width = Integer.parseInt(request.getParameter("width"));
    9          
    10          // Each item can have up to 6 images (ordered by id), this indicates wich of one we have to return
    11            int imageIndex = Integer.parseInt(request.getParameter("imageIndex"));
    12        byte[] imgData = coverImage.getItemImageAction(request.getParameter("itemId"), request,heigth, width, imageIndex );
    13        response.setContentType("image/jpeg");
    14        OutputStream o = response.getOutputStream();
    15         o.write(imgData);
    16         o.flush();
    17         out.clearBuffer();
    18         o.close();
            %> getImageAction is my DAO class that actually reads the image data from the DB, when I use this 'getImage.jsp' inside any other jsp in the app it works, but when used as described in the first post the request parameter in the line 12 doesn't have the session info, apparently creates a new session or something and since I use information in the session to create the DAO factory I can't connect to the DB and get this error..
    pls tell me if I explained my self or I'm just talking non sense
    regards

  • How to read XML schema from databank to post it in WebService Test

    Hi Guys,
    Does anyone have a solution to read the XML schema from databank (.csv file) and post it in a Web Service test case.
    I mean by using utilities.loadXML, something like that?

    SAXParserFactory spf = SAXParserFactory.newInstance();
    spf.setNamespaceAware(true);
    XMLReader xmlReader = spf.newSAXParser().getXMLReader();
    and set the content handler

  • How to read the content from a External Content Type with out creating External List in Sharepoint 2013?

    Hi,
    I have a requirement to read the External Content Type and storing the Data in a Session Variable. The Reading of the content from External Content Type with out creating a External List.
    Please help I am trying to find the solution, but unable to do that.
    Thanks,
    Pradeep

    Hi,
    Firstly an external content type designed to work with SharePoint list and there is no way to read apart from this.
    If you are looking the solution out of the " Business Connectivity" then find that data source has been exposed through WCF and  Web Service ?
    So you can use REST API and CSOM to consume those data in SharePoint.
    You can also leverage the ADO.NET option if the datasources based on MS technologies.
    Murugesa Pandian| MCPD | MCTS |SharePoint 2010

  • How to read xml reports from external application

    Hi All,
    I want to generate reports from SIEBEL Database and access those reports from external application(like BlackBerry application). I have gone through by some blogs and found that we can access the generated reports from an external application using the URL.
    When I use this URL on browser it gives me the xml file of the report. But I am unable to read this file from the Blackberry application.
    Thanks in advance

    Hi Angha,
    I want to invoke other portal application from my application.
    Portal URL's also get changed from one system to Other. Prototype Portal->Development Portal -> Quality Portal->Production Portal>
    All the above Portal URL will be different.
    I want trigger another application dynamically.
    Thx & Rgds
    AW

  • How to read XML response from a URL in java?

    Hi .
    I need to write a simple function that takes a URL and processes the response which is XML or JSON.
    I tried this code:
    URL l_url = new URL(serviceURL);
    URLConnection urlConnection = l_url.openConnection();
    InputStream inputStream = l_url.openStream();
    DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
    Document inputXML = documentBuilder.parse(inputStream);
    but in line number 3 it throws an error:
    "l_url.openStream() = >Exception occurred in target VM: Server returned HTTP response code: 401 for URL:"
    Please let me know how do I achieve it.
    Thanks and regards,
    Sonal

    Sonal wrote:
    "l_url.openStream() = >Exception occurred in target VM: Server returned HTTP response code: 401 for URL:"
    Please let me know how do I achieve it.you achieve it by fixing your authentication problem (401 is the response code indicating your request was not authorized, which you can easily find out with a simple google search).

  • How to read xml data from jsf,

    Hi
    I would like to know how to read data in an xml so as we can display that data onto the jsf page to the user, say as a data table, or in an output txt box etc...

    This is nothing JSF-special. Just convert XML to objects (DTO's) and then use them in JSF.
    There are several ways to crawl the XML tree. JXPath and DOM4J are popular.

  • How to read XML files from java

    i need a sugession that how to read a xml file using java code
    and i need to parse using some parsers and display attributes and entity seperately
    as a string.......

    import org.dom4j.Document;
    import org.dom4j.DocumentException;
    import org.dom4j.io.SAXReader;
    import java.io.File;
    import java.text.AttributedCharacterIterator.Attribute;
    import java.util.Iterator;
    import java.util.StringTokenizer;
    public class XmlParser
    private String Result="";
    private String Final="";
    private String Delim="";
    public void bar1(Document document) throws DocumentException
    org.dom4j.Element root = document.getRootElement();
    // System.out.println(root.getName());
    bar2(root);
    System.out.println(this.Result);
    process();
    public void bar2(org.dom4j.Element e)
    for(Iterator i = e.elementIterator();i.hasNext();)
    org.dom4j.Element Element = (org.dom4j.Element) i.next();
    Result += Element.getName()+"\t"+Element.getText()+"\n";
    bar2(Element);
    public void process()
    StringTokenizer Tokenizer = new StringTokenizer(this.Result,"\n");
    String element;
    while(Tokenizer.hasMoreTokens())
    element = Tokenizer.nextToken();
    StringTokenizer Tokenizer2 = new StringTokenizer(element,"\t");
    // Do what ever String Process here Example
    this.Final += element.getName();
    this.Final += this.Delim;
    System.out.println(this.Final);
    public static void main(String s[])throws Exception
    Document document = null;
    SAXReader reader = new SAXReader();
    File f1= new File("D:/Rajesh/EDI to XML/EDI.xml");
    document = reader.read(f1);
    Demo obj = new Demo();
    obj.bar1(document);
    i think this will hep full.......

  • How do i expoert files from Outlook and import them into iphone? operate with Mac OSx at home and trying to convert contacts and calendars from work and carrying on iphone. txs

    How do I export calendar and contact files in Outlook and import them into iphone 4. I operate Mac OS X at home and wish to carry my work information with me on my iPhone.

    You do not export anything.
    Instead, sync the content from Outlook to your device via iTunes.
    Try reading the manual, it's included on the device or here.

  • How to get Date value from database and display them in a drop down list?

    Hello.
    In my Customers table, I have a column with Date data type. I want to create a form in JSP, where visitors can filter Customers list by year and month.
    All I know is this piece of SQL that is convert the date to the dd-mm-yyyy format:
    SELECT TO_CHAR(reg_date,'dd-mm-yyyy') from CustomersAny ideas of how this filtering possible? In my effort not to sound like a newbie wanting to be spoonfed, you can provide me link to external notes and resources, I'll really appreciate it.
    Thanks,
    Rightbrainer.

    Hi
    What part is your biggest problem?? I am not experienced in getting data out of a database, but the way to get a variable amount of data to show in a drop down menu, i have just messed around with for some time and heres how i solved it... In my app, what i needed was, a initial empty drop down list, and then using input from a text-field, users could add elements to a Vector that was passed to a JComboBox. Heres how.
    package jcombobox;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Vector;
    import javax.swing.*;
    public class Main extends JApplet implements ActionListener {
        private Vector<SomeClass> list = new Vector<SomeClass>();
        private JComboBox dropDownList = new JComboBox(list);
        private JButton addButton = new JButton("add");
        private JButton remove = new JButton("remove");
        private JTextField input = new JTextField(10);
        private JPanel buttons = new JPanel();
        public Main() {
            addButton.addActionListener(this);
            remove.addActionListener(this);
            input.addActionListener(this);
            buttons.setLayout(new FlowLayout());
            buttons.add(addButton);
            buttons.add(remove);
            add(dropDownList, "North");
            add(input, "Center");
            add(buttons, "South");
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == addButton) {
                list.addElement(new SomeClass(input.getText()));
                input.setText("");
            } else if (e.getSource() == remove) {
                int selected = dropDownList.getSelectedIndex();
                dropDownList.removeItemAt(selected);
        public void init(String[] args) {
            setSize(400,300);
            getContentPane().setLayout(new BorderLayout());
            getContentPane().add(new Main());
    }And that "SomeClass" is show here
    package jcombobox;
    public class SomeClass {
        private String text;
        public SomeClass(String input) {
            text = input;
        public String toString() {
            return text;
    }One of the things i struggled a lot with was to get the dropdown menu to show some usefull result. If the list just contains class references it will show the memory code that points to that class. Thats where the toString cones in handy. But it took me some time to figure that one out, a laugh here is welcome as it should have been obvious :-)
    When the app is as simple as this one, using a <String> vector would have been easier, but this is just to demonstrate how to place classes in a vector and get some usefull info out of it, hope this answered some of your question :-)
    The layout might have been easier to write, than using the toppanel created by the JApplet and then the two additional JPanels, but it was just a small app brewed together in 15 minutes. Please comments on my faults, so that i can learn of it.
    If you need any of the code specified more, please let me know. Ill be glad to,

  • Can Adobe read specific text from Excel and merge them together?

    I have a catalog in PDF format with thousands of part numbers.  I want to be able to click on each part number and be directed to a specific web page.  All web pages will be different.  I know how to do this ONE at a time but that would be too time consuming and not something my company would be willing to do.  I have an Excel spreadsheet with the part numbers listed in one column and the URL's in one and a column of them as hyperlinks already.  Is it possible for Adobe to match the part numbers from both files and merge them together? 
    Thanks!
    Amanda

    The part numbers will all be together but most have alot of dashes and some are very long.   Here are 3 examples.  Alot of them are this size, some much larger but they are all together on one line.
    CV-LED-W
    SDOP-LED-2M
    SIF-232
    Thanks,
    Amanda

Maybe you are looking for

  • Camera Raw in Photoshop Elements 12

    Hello, I read on chip.de that camera raw is freeware if you use a Adobe product. But the camera raw version in my photoshop elements 12 has only very few possibilities compared to the complete version. And there is also no update higher than 8.5. Is

  • 6163 pro-long beep

    hi, Recently I have installed a new harddisk and window ME.After installed the window ME,I found that my computer alway reboot itself once the window come out.Could someone please tell me why does happen and how to solve? After I try to play the bios

  • Access issue relating to external content types

    Hi, I was recently given permissions in the Central Administration to edit external content types. However, when I open Sharepoint Designer and click on External Content types, I am unable to view the existing external content types that was created

  • MVP List #48 (May 29 through June 4)

    The Verizon Community Forums Most Valuable Posting List is where we recognize great work and words happening every day right here on our community. We know the success as a community is based on the continual and lively contributions of our valued me

  • Regarding - Flex Pagination

    hi, In the database, A table consists of more than 200 records.i have to display 10 by 10 records. My question is ,In the datagrid First i have to display the first ten records.When a user scrolls the in the datagrid i need to display the another 10