Loading ...
Sorry, an error occurred while loading the content.

Re: YUI - Web Service

Expand Messages
  • tssha
    ... Yes. Note: the RSS example at http://developer.yahoo.com/yui/examples/connection/ makes use of a proxy. ... I recommend setDefaultPostHeader(false)
    Message 1 of 2 , Jul 3, 2007
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, Olivier Anguenot
      <olivier.anguenot@...> wrote:
      >
      > Hi,
      >
      > Is-it possible with the Connection Manager class to call a Web Service
      > using the asyncRequest ?

      Yes. Note: the RSS example at
      http://developer.yahoo.com/yui/examples/connection/ makes use of a proxy.

      <snip>

      > YAHOO.util.Connect._use_default_post_header = false;

      I recommend setDefaultPostHeader(false) instead of modifying the
      member value directly, so you're not impacted by changes during a
      version increment.

      > YAHOO.util.Connect.initHeader( 'Content-Type', 'text/xml', false );
      > var ajaxCall = YAHOO.util.Connect.asyncRequest( 'POST', targetUrl,
      > callback, message);

      This example:
      http://developer.yahoo.com/yui/examples/connection/weather.html ,
      demonstrates some basic XML document traversal in the callback.

      Regards,
      Thomas
    Your message has been successfully submitted and would be delivered to recipients shortly.