3 Replies Latest reply on Aug 7, 2009 1:26 PM by Gregory Lafrance

    Is this right:  HTTPService send

    Jerry62712 Level 1

      I have a Flex application.  This must write out a string to the output writer.  As Flex can't do this, I'm going to call a java servlet using HTTPService.  As I don't see any output, I'm not sure how to test this.  Starting at the beginning, here is the code I'm using to call the servlet:

       

           var x:String = buildPhoneResults();
           var sendXML:HTTPService = new HTTPService();
           sendXML.url = "http://10.24.32.75:8080/calc/fos?xml=" + x;
      Alert.show("**Testing** sendXML = '" + sendXML.url + "'");
           sendXML.send();
      
      

      Elsewhere I've outputted the data from buildPhoneResults to a testing Alert box and it looks OK.  Does the above look right?