RE: [flexcoders] Re: Flex newbie: issues with HTTPServices and my URL

2006-06-22 Thread Tracy Spratt










Yes, use a result handler function and
either trace, alert, or step-through and inspect the result object.  The first
thing to look for is is the handler actually getting called.

 

Here is an exapmple from another post:

.
resultFormat="e4x" />

import mx.rpc.events.ResultEvent;
Private function onResult(oEvent:ResultEvent):void
{
var xmlResult:XML = XML(oEvent.result);
trace(oEvent.result.toXMLString())
myDataGrid.dataProvider = xmlResult; //same reference as you use in
the binding _expression_
}

 

Tracy









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bill Dawson
Sent: Thursday, June 22, 2006
12:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex
newbie: issues with HTTPServices and my URL



 







I'm binding. I have a status label that I'm passing
success/error
messages to, but didn't have sucess passing the HTTPService response. It
kept showing up blank, like my data-bound DataGrid.

Any suggestions for a quick and dirty debug? Can I throw the HTTPService
response to an alret box or something? (I'm a Flash guy, this is my
first Flex-perimentation.)

--- In [EMAIL PROTECTED]ups.com,
"Tracy Spratt"
<[EMAIL PROTECTED]> wrote:
>
> Are you using a result handler function or binding?
>
>
>
> Binding is hard to debug, but a result handler makes things much
easier.
>
>
>
> Tracy
>






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: Flex newbie: issues with HTTPServices and my URL

2006-06-22 Thread Bill Dawson
I'm binding.  I have a status label that I'm passing success/error
messages to, but didn't have sucess passing the HTTPService response. It
kept showing up blank, like my data-bound DataGrid.

Any suggestions for a quick and dirty debug? Can I throw the HTTPService
response to an alret box or something? (I'm a Flash guy, this is my
first Flex-perimentation.)


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Are you using a result handler function or binding?
>
>
>
> Binding is hard to debug, but a result handler makes things much
easier.
>
>
>
> Tracy
>








 Yahoo! Groups Sponsor ~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: Flex newbie: issues with HTTPServices and my URL

2006-06-21 Thread Tracy Spratt










Are you using a result handler function or
binding?

 

Binding is hard to debug, but a result
handler makes things much easier.

 

Tracy

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bill Dawson
Sent: Wednesday, June 21, 2006
4:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex
newbie: issues with HTTPServices and my URL



 







Thanks, Tracy!

I'm now able to post with parameters successfully to the server - the current
"challenge" is that I don't seem to be handling the server response.
I can confirm that I'm making valid calls to the server, and they are
responding, but my Flex application is not displaying responses.


 I've created a status label, which confirms a
 result from the HTTPService call (and shows errors if it cannot
 communicate to the server.)
 I can point my HTTPService call at an example XML
 response, and it displays correctly. --> When it points to the server,
 it posts correctly, but doesn't display the response at all.
 I created a temporary relay page to confirm that
 posts are being sent correctly, and that responses are being sent
 correctly. (That's where I got the example XML response file.)
 Is there a way to debug the response back from
 the server?


Thanks in advance for any help!

--- In flexcoders@yahoogroups.com, "Tracy Spratt"
<[EMAIL PROTECTED]> wrote:
>
> You know, I send xml by HTTPService all the time, but I always do it in
> AS, and never declaratively. But in general
> 
> Try:
> 
> 
> 
>
<something><system>...</system></something>
> 
> 
> 
> 






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: Flex newbie: issues with HTTPServices and my URL

2006-06-21 Thread Bill Dawson



Thanks, Tracy!I'm now able to post with parameters successfully to the server - the current "challenge" is that I don't seem to be handling the server response. I can confirm that I'm making valid calls to the server, and they are responding, but my Flex application is not displaying responses.I've created a status label, which confirms a result from the
HTTPService call (and shows errors if it cannot communicate to the
server.)I can point my HTTPService call at an example XML response, and it displays correctly. --> When it points to the server, it posts correctly, but doesn't display the response at all.I created a temporary relay page to confirm that posts are being sent correctly, and that responses are being sent correctly. (That's where I got the example XML response file.)Is there a way to debug the response back from the server?Thanks in advance for any help!--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:>> You know, I send xml by HTTPService all the time, but I always do it in> AS, and never declaratively.  But in general> > Try:> > >  > ...> > > >  

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Re: Flex newbie: issues with HTTPServices and my URL

2006-06-16 Thread Tracy Spratt










You know, I send xml by HTTPService all
the time, but I always do it in AS, and never declaratively.  But in general

Try:


  <something><system>…</system></something>


 

Tracy

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bill-dawson
Sent: Friday, June 16, 2006 11:50
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex
newbie: issues with HTTPServices and my URL



 







Now Flex is seeing my XML value argument as an
unpaired tag. Flex 
Builder is saying, "Encountered "" at line
5, column 8."

Am I going at this all wrong? The correct post via HTTP is: 

http://www.somewhere.com/api/integrate.aspx?
xml=<system_name>tracking</system_name>job
retrieve

Here's what I attempted within flex:


url="" href="http://www.somewhere.com/api/integrate.aspx">http://www.somewhere.com/api/integrate.aspx">

xml=<system_name>tracking</system_name>
tion>jobretrieve</action></system></something>








__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: Flex newbie: issues with HTTPServices and my URL

2006-06-16 Thread bill-dawson
Now Flex is seeing my XML value argument as an unpaired tag. Flex 
Builder is saying, "Encountered "" at line 5, column 8."

Am I going at this all wrong? The correct post via HTTP is: 

http://www.somewhere.com/api/integrate.aspx?
xml=trackingjob
retrieve

Here's what I attempted within flex:

http://www.somewhere.com/api/integrate.aspx";>

xml=trackingjobretrieve








 Yahoo! Groups Sponsor ~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/