2 Replies Latest reply on Mar 26, 2008 1:04 AM by kanuwana

    Flex HttpService

      Hi all,

      I am trying to send and object to a servlet from a flex Action Script Class.

      I configured the services-config.xml file as below

      <!-- http -->
      <channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel">
      <endpoint uri=" http://localhost:8080/HttpFlexProject/AuthenticationServlet" class="flex.messaging.endpoints.HTTPEndpoint" />

      My Action Script class has following code

      public function HttpDataBinding(parameters:Object):void {
      //service.url= " http://localhost:8080/HttpFlexProject/AuthenticationServlet";
      service.destination = "my-http";
      service.method = "GET";
      service.addEventListener("result", httpResult);
      service.addEventListener("fault", httpFault);
      service.resultFormat = "text";

      But the servlet doesn't take these "parameters" value there. It says this error.

      [MessagingError message='Destination 'my-http' either does not exist or the destination has no
      channels defined (and the application does not define any default channels)]

      Can somebody help on this

      Best Regards,