Trouble accessing dynamic XML from API with a CFC

Please see my example at
http://67.199.18.39/test.html
and view source (to big to post here). I am returning XML from a
dynamic call to an API through a ColdFusion CFC.
Search for something generic like Dog. Click Go. I display
the XML for you to view. I have tried many different XMLList
dataproviders but can't get anything to work.
Can someone point out the "errors" of my ways?
Thanks.

Turns out it was a namespace issue. I found the answer from a
Bruce Phillips tutorial at
http://www.brucephillips.name/blog/index.cfm/2006/12/5/Processing-XML-in-Flex-20-Using-The -For-Each-Statement-And-The-Descendent-Accessor--Operator
I had to add:
private namespace yahooNS = "urn:yahoo:prods";
use namespace yahooNS;

Similar Messages

  • HT204406 Why am I having trouble accessing complete audiobooks from the cloud.

    Why am I having trouble accessing complete audiobooks from the cloud.

    Audiobooks are currently a one-time only download from the store, so you will need to sync them to the iPad from your computer's iTunes if you want them in its Music app

  • Dynamic menus from database with URL parameters

    Hello!
    I'm trying to build a set of dynamic menus that would be based on data from the database. I need to have a menu item for every database row, and all the items point to the same page, but each with its own parameter in the item's URL. The URLs in the menus would look like ".../form.jspx?recordID=xx", where xx is read from the database.
    Right now, I can display the menu, everything works fine, but the problem is in the PageMap section of Databindings.cpx - ADF needs to have every URL mapped to a page definition. So even if I have "form.jspx" mapped to "form_PageDef", I have to explicitly tell the server that "form.jspx?recordID=xx" is also mapped to "form_PageDef" by putting this into Databindings.cpx.
    Of course, if I have to manually enter page mappings for all the record IDs that appear in the menu, it's not really a "dynamic menu" anymore. Does anyone know of a way to avoid this problem?
    Can I somehow change Databindings.cpx programmatically? Can I change page mappings dynamically? Help, please? I'm very grateful for any and all info.

    Hi Vex,
    I'm not sure whether you'll find a solution as "Dynamic" as you are describing with dynamic entries via the DataBindings.cpx. Menu's work quite differently in JSF (See section 19.2 on dynamic menus in the developers guide). You may need to get the solution halfway.
    1) Drive the menu contents / structure from the database via some backing bean. The sample application that comes with JDeveloper has a fixed menu structure via exposed beans. You'd have to adapt this to be driven off of a managed bean. This takes a bit of work, but it can be accomplished. You'll need to loop through your database records via the Iterator to build the content of your menuModel
    2) Let JDeveloper create the entries in DataBindings.cpx to map the pageDef.xml file to each jspx file. (Manual). The pageDef.xml file gets interpreted during the initContext phase of the ADF Lifecycle, and the DataBindings.cpx tells this phase where to look to create the runtime version of the pageDef.xml (See developer's guide 13.2.3).
    3) Manually setup your faces-config with the right outcomes.
    4) have the database return the outcomes and viewIds, among other values.
    5) do the appropriate thing in your JSPX to make use of this menu module backing bean.
    In this case, you'll control the content and structure of the menu via the DB. However, you'd have to make sure the data in your DB matches the definitions of the jspx viewid's and outcomes.
    However, there is a quite a bit of work involved to do this. I.e. db design, backing bean for menu module, disciplined co-ordination between DB and JSF, etc...
    I hope this helps.
    Kenton

  • Accessing ext3 partitions from Windows with FS Driver

    Hi everyone,
    I have a slight probem. I'm dual-booting ArchLinux and Windows. Here is my partition scheme:
    /dev/sda1 (NTFS) Lenovo Recovery partition
    /dev/sda2 (NTFS) Windows
    /dev/sda3 (ext2) /boot
    /dev/sda5 (JFS) /
    /dev/sda6 (JFS) /home
    /dev/sda7 (ext3) [documents] partition mounted on /media/data
    /dev/sda8 (swap) swap
    Everything works fine on the Linux side (of course).
    The problem is that I use http://www.fs-driver.org/ to access my documents (/dev/sda7) from Windows.
    This worked fine (I was using Kubuntu) but now I had to format the disk in order to install ArchLinux and FS Driver would not recognize the "documents" partition.
    I think it might be because the partition is not PRIMARY but LOGICAL. Is there a way to fix this without reformatting everything (just formatting /dev/sda7 is fine with me) ?
    Thank you in advance
    Last edited by yms (2009-09-11 14:08:17)

    Hi, I just stumbled across this one and thought I'd throw in my two cents....
    Something I've found about windows is that it's -very- picky about partition sizes.
    For  instance, on a new system of mine, I did dual booting windows/Linux from partitions on the same hard drive.
    The windows partition was first.  After creating my Linux partitions, windows would no longer boot, said the partition table was corrupt.
    (All partitions were primary)
    The solution?  I created my Linux partitions using windows tools (which wasted around 10Gigs of hard drive space) and finished them off with linux tools.
    Everything worked fine then.
    Bottom line, Linux can use partition sizes that (some?) windows will refuse to use.
    You should be able to simply remove the last 2 partitions (sda7 and sda8).  Any partitioner should work (gparted, cfdisk, windows logical disk manager).  Don't forget to move your documents.  If you do this from your installed Linux system, don't forget to disable your swap space or you won't be able to remove that partition.
    ...might also need to unmount /dev/sda7 to use cfdisk... I think gparted does this automatically but don't quote me on that one...
    Then you can recreate the last two partitions using windows.  Then use Linux to set their types, format them, and restore your documents.
    Just to simplify things with the swap space, it's probably easier to use a live distro than your installed Linux.
    If your fstab uses UUID's, don't forget to update as formatting will assign new UUID's to the partitions.
    ... should solve at least half the problem.
    laters,
    b

  • Dynamic xml from php script throws error: #1088 or #1085

    Hi,
    I'm importing xml formatted data from mysql via php script:
    [code]
    <?php
    require_once('require.php');
    $result = mysql_query("SELECT * FROM `songs`");
    if($result)
        header ("Content-Type: text/xml");
        echo"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
        echo"<songComments>\n";
        while ($row = mysql_fetch_array($result))
            echo"<testimonial>\n";
            echo"<songComment>" . $row['title'] . "</songComment>\n";
            echo"</testimonial>\n";
        echo"</songComments>\n";
    ?>
    [/code]
    In one of my flash projects it's working just fine. But in the new one that I just sterted not anymore. And i have no idea why. I get this errors:
    TypeError: Error #1085: The element type "songComments\n" must be terminated by the matching end-tag "</songComments\n>".
    or:
    TypeError: Error #1088: The markup in the document following the root element must be well-formed.
    When I output that php into txt file and loaded in flash everything is fine, but not from php script directly.
    Could it have something to do with that I'm testing that mysql locally on my computer using WAMP ? Previous project got all data from mysql from server.

    Ho could I trace what flash sees?
    var url:URLLoader = new URLLoader();
    url.addEventListener(Event.COMPLETE, xmlLoaded);
    url.load(new URLRequest("getDataFromDB.php"));
    private function xmlLoaded(event:Event):void {
                myXML = new XML(event.target.data);
                trace(myXML);
    I  got rid of that \n everywhere or move them around  and it's still the same error 1088 or 1085

  • Having trouble opening a doc from 2001 with 9.5

    Hi,
    My 9.5 won't support opening a doc from 2001... any suggestions?

    You can try using an older version of Reader, but you'll have to uninstall 9.5 first... or
    Download a 30 day trial of Acrobat Pro and open, then save the document, with compatibility for newer versions.

  • Having trouble accessing the print from Facebook on my Photosmart 7510..

    When I first set up my 7510, I had setup the Print from Facebook option. A few days later I tried to use the feature and was prompted to enter the code again on facebook.com/device. When I try to do this, Facebook does not accept the code. I just resets the form and asks for the code again, and the printer isn't able to print from it. Is there anything I can do to reset this get it to work?

    Hi Rob. 
    Another option is to print your Facebook photos with HP Photo Creations. Select Prints, then Add Photos from Online Library. Here's a quick walkthrough. The images are from an older version of the software, but the idea is the same:
    https://www.facebook.com/HP.Photo.Creations/app_4949752878
    Hope this helps,
    RocketLife
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

  • Dynamic read from table  with DBMS_SQL Block

    Hi,
    In the orcale8 Application developer's Guide is this example:
    -- To select everything from this table and move it into four PL/SQL tables, you could use the following simple program:
    c number;
    d number;
    n_tab dbms_sql.Number_Table;
    d_tab1 dbms_sql.Date_Table;
    v_tab dbms_sql.Varchar2_Table;
    d_tab2 dbms_sql.Date_Table;
    indx number := 10;
    begin
    c := dbms_sql.open_cursor;
    dbms_sql.parse(c, 'select * from multi_tab order by 1', EXEC_sql.V7);
    dbms_sql.define_array(c, 1, n_tab, 5, indx);
    dbms_sql.define_array(c, 2, d_tab1, 5, indx);
    dbms_sql.define_array(c, 3, v_tab, 5, indx);
    dbms_sql.define_array(c, 4, d_tab2, 5, indx);
    d := dbms_sql.execute(c);
    loop
    d := dbms_sql.fetch_rows(c);
    dbms_sql.column_value(c, 1, n_tab);
    dbms_sql.column_value(c, 2, d_tab1);
    dbms_sql.column_value(c, 3, v_tab);
    dbms_sql.column_value(c, 4, d_tab2);
    exit when d != 5;
    end loop;
    dbms_sql.close_cursor(c);
    Here the four tables can be used for anything at all. One usage might be to use BIND_ARRAY to move the rows to another table by using a query such as 'INSERT into SOME_T values(:a, :b, :c, :d);
    exception when others then
    if dbms_sql.is_open(c) then
    dbms_sql.close_cursor(c);
    end if;
    raise;
    at the second 'dbms_sql.define_array' comes an ORA-0600 error.
    What's wrong ?

    Some solutions posted here : {message:id=9689485}

  • Accessing Request Parameters from ActionRequest with form/multipart

    Hi,
    I have a weblogic producer portlet which has form enctype="multipart/form-data". Now although I have correctly set the action according to JSR 168 standards like:
    <form name="Checkin" method="POST" enctype="multipart/form-data"
    action='<abcportlet:createURI><abcportlet:URIAction value="active.document.doUpdate"/></abcportlet:createURI>'>
    but in my processAction method, I am not able to retrive the action parameter. Infact actionRequest's getParameter returned null.
    On further investigation, I found that this is occurring due to enctype and some solutions suggested to use commons file upload. I have used the commons upload and retrieve the parameters but am not able to retrieve the action parameters that is embedded in wsrp-interactionState.
    Is there any way of how I can get hold of the portlet action parameter?
    Thanks,
    Ansuman
    Edited by: anshuman.roy on Dec 11, 2008 10:18 AM

    Hello Ansuman,
    Unfortunately, you have found a bug in WLP's implementation of the JSR168 form decoding- there is no way for you to get the form parameters and the action parameters at the same time. We already have a fix for the next version of WLP- if you open a support case to get a patch issued, please refer to CL (not CR) 1169718. If you would like for me to open a change request for you, which might speed up the support process, please let me know what version of WLP you are using.
    Kevin

  • Trouble printing custom sizes from pages with my HP photosmart printer

    I am having a problem printing a custom size to my HP photosmart printer. Any advice would be helpful!
    Thanks

    Hi Jerry,
       I am trying to print invitations. I have all of the correct measurements typed in, but it keeps telling me that there is a paper size mismatch. Is there some sort of conversion? This is frustrating as all get out. Thanks.
    B

  • Accessing JAXR registry from within web service

    Hi I'm having trouble accessing the registry from within a web service running in the tomcat server.
    The service should register with the registry at startup, but in the logs from the tomcat server I can see that a JAXRException is thrown:
    javax.xml.registry.JAXRException: Unable to create ConnectionFactory: Provider com.sun.xml.registry.common.ConnectionFactoryImpl not found
         at javax.xml.registry.ConnectionFactory.newInstance(Unknown Source)
    If I run the program from outside the tomcat server as a standalone program, it registers perfectly.
    I believe the problem is that it is missing one or more jars.
    I have tried to put the jaxr-jars under shared/libs but that hasn't solved the problem.
    Has anyone an idea of what I'm doing wrong?
    Help is greatly appreciated!
    / Bo

    Hi swatdba
    I know that the build file states alle the packages that I need, and as I said, if I run my program like the regular JAXR examples, it works fine.
    The thing is, the JAXR examples are not web services on their own. They are merely Java programs that access the registry.
    In my case I am building a web service that should run in the tomcat server. When it initialises, it should register with the register, and also be able to search for other web services.
    I thought this would be possible per default, ie. the jars that the web service needs should already be available in the tomcat server, but it doesn't work. I have tried to put the jars that I've found in the build script in the folder C:\jwsdp-1.3\shared\lib, which according to the tomcat manual should be used to put jars that you want to share between your web services.

  • XML from Final Cut Pro 7.0.2

    I have one single text clip in the FCP sequence to test this XML transfer. The text is centered. When imported into Premiere 6, the text is a different font and is up on the upper left corner.
    I have a credit sequence that I need to get into After Effects from FCP. For some reason, Premiere is not translation correctly. Few weeks ago, I was trying to import XML from FCP with some video clips and they would be in the wrong time. I've a feeling the Premiere isn't working as it should be. I just reinstalled Premiere a few days ago and the issue is a problem. I did try another FCP XML export from from another system and version and Premiere is not translating text properly. There's no plugins or trasitions, just basic text or video.
    What can I do get this working?

    My experience with XMLs from FCP is that text in particular doesn't work correctly. To the point where we've had numerous system crashes and have pinpointed it as being due to text imported from an XML. Markers brought in the same way are also very problematic. We've been deleting any text before XMLing any sequences, and then recreating the text within Premiere or After Effects.

  • Cannot Access Dimension Library from Workspace - Hyp 9.3.1

    Dear All,
    I've got error message when trying to access dimension library from workspace with information :
    (0)null
    (org.apache.axis.AxisFault)
    below is the more detail :
    Trace: com.hyperion.awb.web.common.BaseService.openSession(BaseService.java:112)
    com.hyperion.awb.web.common.BaseAction.checkWebSession(BaseAction.java:64)
    com.hyperion.bpm.web.common.BaseAction.execute(BaseAction.java:65)
    org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
    Exception org.apache.axis.AxisFault rethrown
    Anybody can give me a clue?...
    Many thanks in advance
    Lucky

    Has this ever worked? If so, restart your EPMA web service and the EPMA process manager service.
    If this has never worked, can you goto http://EPMAMACHINE:19091/awb
    where EPMAMACHINE is the ip address or name and see if you get the login prompt. If the login prompt here is working and you can login properly then I suggest you re-deploy workspace and the web server configuration from the config tool.
    Regards,
    -John

  • Import books.xml from bookstore

    How to import books.xml from distribuitor with request via htpp ?

    I received from adobe XMLSigningSerializer.php working but using admin passorword , is this a secure role ?
    My distribuidor need my sha1 password ?
    // SHA1 of my server password returning raw byte - Working with admin password
    $serverPassword = hash("sha1",$myadminpass,true);
    // Dont work , secure role ?
    //$serverPassword = hash("sha1",$secretKey,true);
    //$serverPassword=base64_decode($secretKey);
    $expiration = date("c", mktime() + 3600);
    $nonce = base64_encode(mt_rand(20000000,30000000000));
    function signNode( $xmlDoc, $xmlNodeToBeSigned, $secretKey )
        $serializer = new XMLSigningSerializer( false );
        $signingSerialization = $serializer->serialize($xmlNodeToBeSigned);
        $hmacData = base64_encode( hash_hmac("sha1", $signingSerialization, $secretKey, true ) );
        $hmacNode = $xmlDoc->createElementNS($ADEPT_NS, "hmac", $hmacData );
        $xmlNodeToBeSigned->appendChild( $hmacNode );
    // XML request
    $request ='<request action="get" auth="builtin" xmlns="http://ns.adobe.com/adept">';
    $request .="<nonce>". $nonce ."</nonce>";
    $request .="<expiration>". $expiration ."</expiration>";
    $request .="<distributor>".$distribuidor."</distributor>";
    $request .="</request>";
    // Load the XML request info DOM because the Adobe seralizer need a xml object.
    $xmlObjectPackage = new DOMDocument('1.0', 'UTF-8');
    $xmlObjectPackage->formatOutput = true;
    $xmlObjectPackage->loadXML($request);
    $packageNodes = $xmlObjectPackage->getElementsByTagName('request');
    foreach ($packageNodes as $packageNode) {
        signNode( $xmlObjectPackage, $packageNode, $serverPassword );
    //echo $xmlObjectPackage->saveXML();die();
        $c = curl_init($requestURL);
        curl_setopt($c, CURLOPT_RETURNTRANSFER,     true);
        curl_setopt($c, CURLOPT_POST,                 true);
        curl_setopt($c, CURLOPT_POSTFIELDS, $xmlObjectPackage->saveXML());
        curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-type: application/vnd.adobe.adept+xml'));
        // Get Response
        echo curl_exec($c);
        curl_close($c);

  • Accessing a method from within another method

    I am having trouble accessing a method from inside a method in the same class.
    here is my code:
    public String getAns(int ans){
    answer = ans;
    ranswer = number1 * number2;
    if(answer != ranswer){
    return "No. Please try again";
    }else{
    return "Very good!";
    genQues();
    when i run this i get an Unreachable code error pertaining to genQues();
    is this allowed in Java and is there a more practical way to go about this?
    Thank you in advance

    next time use the correct code tags to post your code.
    Think of your problem like this though.
    You write
    if( something )
    then return some value;
    else
    then return some other value.
    The returns end the method here, returning the value.
    So, if the method ended at one of these 2 statements, how do you think it'll reach genQues(); ?
    Hope this helps.

Maybe you are looking for

  • BI Publisher vs PeopleSoft XML Publisher & Error with Templates

    Hello All, I am completely new to this so please bear with me. 1.) What is the difference between Oracle BI Publisher and PeopleSoft XML Publisher? 2.) I am working with PeopleSoft XML publisher and I had to make a change ontop of a bundle. I needed

  • IMovie playback on external monitor via FireWire?

    this seems like a pretty obvious question, but is it possible to play back an iMovie timeline on an external monitor/TV? i'm connecting my Titanium laptop to a Sony DV camera via FireWire, then directly from the camera to my TV via mini-jack/RCA cabl

  • How to increase SGA size in Oracle 9i release  9.0.1.1.1

    Hi, We have Oracle 2000 server on a intel machine (2.8GHz processor and 2 GB RAM). Virtual memory is :- 3GB. We have a Oracle 9.0.1.1.1 running on this machine. What are the parameters that I need to set to increase the SGA size. We want a large SGA

  • Need advice about AIrport Extreme/ Bluetooth Upgrade!!!!

    Okay, so when I bought my first Mac I didn't opt for wireless. Now I see I want it. So I have a late model 2.0 Dual Core PowerPC G5. There are two different cards I see. One, I cannot find ANYWHERE for less than $250.00. Then I see there is another c

  • TS3989 cannot see photos in PC after enabled photo stream

    Hi, I have a question regarding photo stream and I am wondering if anyone can offer any help. I already set up an account in iCloud and I have wifi at home, on my iphone I went to the Settings>iCloud>Photos> I turned "My Photo Stream" on, then on my