flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kamcknig <kamck...@gmail.com>
Subject Re: Trying to get simple HTTPService to work
Date Mon, 27 Jul 2015 19:21:27 GMT
The service definitely is working. I've since switched over to just using
URLLoader
On Jul 27, 2015 2:45 PM, "OmPrakash Muppirala [via Apache Flex Users]" <
ml-node+s2333346n10867h31@n4.nabble.com> wrote:

> Is the server working?
> Is the ServiceURLs.SEARCH a valid url string?
>
> It would be better if you shared your BaseService class as well.
>
> Thanks,
> Om
>
> On Sun, Jul 26, 2015 at 7:38 AM, kamcknig <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=10867&i=0>> wrote:
>
> > I feel like this should be pretty darn simple. But I can't seem to get
> it
> > to
> > work. Trying to hit a URL that will return xml. But I'm getting a
> > FaultEvent:
> >
> > faultCode:InvokeFailed faultString:'[MessagingError message='Destination
> > 'null' either does not exist or the destination has no channels defined
> > (and
> > the application does not define any default channels.)']'
> > faultDetail:'Couldn't establish a connection to 'null''
> >
> > I have a class SearchService that extends a BaseService class that
> extends
> > HTTPService. BaseService doesn't do much right now but add some
> listeners
> > for ResultEvent and FaultEvent and call some protected functions.
> >
> > Here is my SearchService class:
> >
> > package foo.bar
> > {
> >         import mx.rpc.events.FaultEvent;
> >         import mx.rpc.events.ResultEvent;
> >         import mx.rpc.http.HTTPService;
> >         import foo.bar.constants.ServiceURLs;
> >         /**
> >          * ...
> >          * @author
> >          */
> >         public class SearchService extends BaseService
> >         {
> >                 public function SearchService(showName:String)
> >                 {
> >                         super();
> >
> >                         this.url = ServiceURLs.SEARCH;
> >                         this.method = "GET";
> >                         this.request = {
> >                                 show:showName
> >                         }
> >                         this.resultFormat =
> HTTPService.RESULT_FORMAT_XML;
> >                         this.showBusyCursor = true;
> >                         this.send();
> >                 }
> >
> >                 override protected function onResult(e:ResultEvent):void
> >                 {
> >                         super.onResult(e);
> >
> >                         trace(SearchService(e.target).lastResult);
> >                 }
> >
> >                 override protected function onFault(e:FaultEvent):void
> >                 {
> >                         super.onFault(e);
> >
> >                         trace(e.fault.message);
> >                 }
> >         }
> > }
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-flex-users.2333346.n4.nabble.com/Trying-to-get-simple-HTTPService-to-work-tp10861.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-flex-users.2333346.n4.nabble.com/Trying-to-get-simple-HTTPService-to-work-tp10861p10867.html
>  To unsubscribe from Trying to get simple HTTPService to work, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=10861&code=a2FtY2tuaWdAZ21haWwuY29tfDEwODYxfC0xNTg3MjQ1NTM4>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Trying-to-get-simple-HTTPService-to-work-tp10861p10868.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message