1 Reply Latest reply on Aug 9, 2007 3:02 PM by ntsiii

    access webservice through actionscript use request

    jessicalj
      i want to write the webservice in the actionscript,and use the request object to send the operation's parameters, the request is in the xml structure.and my code like this, but i find these is some mistake in the request:
      var ws:WebService = new WebService();
      ws.wsdl = " http://weblogs.macromedia.com/mxna/webservices/mxna2.cfc?wsdl";
      ws.useProxy = false;
      ws.getMostPopularPosts.addEventListener("result", doResultHandler);
      ws.getMostPopularPosts.request =<request><daysBack>30</daysBack><limit>5</limit></request>;
      ws.addEventListener("fault",faultHandler);
      ws.getMostPopularPosts();
      ws.loadWSDL();
      ws.getMostPopularPosts.send();