0

I want Placemaker using example

Can't get result Placemaker because No example is made me to confusion.



ttp://developer.yahoo.com/geo/geoplanet/ has example

but

http://developer.yahoo.com/geo/placemaker/ has NO example

I want using Placemaker in Flex help me

by
3 Replies
  • QUOTE (hernardo @ Jun 27 2009, 12:51 PM) <{POST_SNAPBACK}>
    Can't get result Placemaker because No example is made me to confusion.



    ttp://developer.yahoo.com/geo/geoplanet/ has example

    but

    http://developer.yahoo.com/geo/placemaker/ has NO example

    I want using Placemaker in Flex help me



    ----------------------------------------------------------------------------------->


    please help me
    When I written this line to browser

    http://wherein.yahooapis.com/v1/document?d...ntent=Arlington



    <error xml:lang="en">
    <description>405 Method Not Allowed</description>
    <detail>Method not allowed for this URI
    </detail>
    </error>

    I just show this message 7 hour
    No google-god
    No yahoo-god

    give me holy~
    0
  • QUOTE (hernardo @ Jun 27 2009, 12:58 PM) <{POST_SNAPBACK}>
    ----------------------------------------------------------------------------------->


    please help me
    When I written this line to browser

    http://wherein.yahooapis.com/v1/document?d...ntent=Arlington



    <error xml:lang="en">
    <description>405 Method Not Allowed</description>
    <detail>Method not allowed for this URI
    </detail>
    </error>

    I just show this message 7 hour
    No google-god
    No yahoo-god

    give me holy~



    I solved it

    but other problem is

    when use flex to get result


    result is


    <rss version="2.0" xml:lang="en" xmlns="http://wherein.yahooapis.com/v1/schema_rss" xmlns:georss="http://www.georss.org/georss" xmlns:cl="http://wherein.yahooapis.com/v1/cle" xmlns:xml="http://www.w3.org/XML/1998/namespace">
    <channel>
    <title>Yahoo! Content Location Engine</title>
    <link><![CDATA[http://wherein.yahooapis.com]]></link>
    <description>Yahoo! Content Location Engine That Extracts Places from documents</description>
    <ttl>5</ttl>
    <pubDate>Sun, 28 Jun 2009 02:24:42 PDT</pubDate>
    <copyright>Copyright © 2009 Yahoo! Inc. All rights reserved.</copyright>
    <item>


    not contain <?xml 1.0 ......>

    any guy help me.


    flex code

    <mx:HTTPService id="YahooPlaceMaker"
    url="http://wherein.yahooapis.com/v1/document"
    result="ResultGetPlaceMaker(event)"
    fault="FaultGetPlaceMaker(event)"
    method="POST"
    resultFormat="e4x"
    useProxy="false"
    request="xml"
    contentType="application/x-www-form-urlencoded"
    showBusyCursor="true"
    />


    and call httpservice code is


    private function UsingPlaceMaker():void
    {
    var params:Object = new Object();
    //params.inputLanguage ="eu-kr"

    params.documentTitle ="I want Korea";
    params.documentContent ="Korea";//txt1.text;

    //params.autoDisambiguate = false;
    params.outputType = 'rss';
    params.documentType = 'text/plain';
    params.appid ='uQfoNBXV34G9uifKaSWrQcise2hh3pVlK1g8Nr2p.nCIu3NPGmC5h43sIuszUFc-';

    YahooPlaceMaker.send(params);

    }


    why I can't

    <?xml version="1.0" encoding="utf-8"?> <-- this line
    0
  • I think the problem stems from setting resultFormat="e4x" in your mx:HTTPService elememt. E4X does not support parsing of the XML declaration (see https://developer.mozilla.org/en/E4X for known bugs and limitations). Trying setting resultFormat="xml".

    Eddie Babcock
    Y! Geo Technologies

    QUOTE (hernardo @ Jun 28 2009, 01:55 AM) <{POST_SNAPBACK}>
    I solved it

    but other problem is

    when use flex to get result


    result is


    <rss version="2.0" xml:lang="en" xmlns="http://wherein.yahooapis.com/v1/schema_rss" xmlns:georss="http://www.georss.org/georss" xmlns:cl="http://wherein.yahooapis.com/v1/cle" xmlns:xml="http://www.w3.org/XML/1998/namespace">
    <channel>
    <title>Yahoo! Content Location Engine</title>
    <link><![CDATA[http://wherein.yahooapis.com]]></link>
    <description>Yahoo! Content Location Engine That Extracts Places from documents</description>
    <ttl>5</ttl>
    <pubDate>Sun, 28 Jun 2009 02:24:42 PDT</pubDate>
    <copyright>Copyright © 2009 Yahoo! Inc. All rights reserved.</copyright>
    <item>


    not contain <?xml 1.0 ......>

    any guy help me.


    flex code

    <mx:HTTPService id="YahooPlaceMaker"
    url="http://wherein.yahooapis.com/v1/document"
    result="ResultGetPlaceMaker(event)"
    fault="FaultGetPlaceMaker(event)"
    method="POST"
    resultFormat="e4x"
    useProxy="false"
    request="xml"
    contentType="application/x-www-form-urlencoded"
    showBusyCursor="true"
    />


    and call httpservice code is


    private function UsingPlaceMaker():void
    {
    var params:Object = new Object();
    //params.inputLanguage ="eu-kr"

    params.documentTitle ="I want Korea";
    params.documentContent ="Korea";//txt1.text;

    //params.autoDisambiguate = false;
    params.outputType = 'rss';
    params.documentType = 'text/plain';
    params.appid ='uQfoNBXV34G9uifKaSWrQcise2hh3pVlK1g8Nr2p.nCIu3NPGmC5h43sIuszUFc-';

    YahooPlaceMaker.send(params);

    }


    why I can't

    <?xml version="1.0" encoding="utf-8"?> <-- this line
    0
This forum is locked.

Recent Posts

in Placemaker General Discussion