RE: [flexcoders] SOAP WebService faultString problem
H Pete, I'm not using the proxy, just a PHP5 SOAP server on an Apache2 server and Flex 2.0 Beta 1 on the client side. What file do you want me to send you? Regards, Jan L. Nauta -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland Sent: Friday, March 03, 2006 17:11 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] SOAP WebService faultString problem Are you using the proxy? I think we changed for Beta 2 to return the entire status line from the HTTP error (as it's likely you're running into a 404)... But please submit a test case (or at the very least email me your file) if you want us to check your particular situation. Thanks, Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jan L. Nauta Sent: Friday, March 03, 2006 3:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SOAP WebService faultString problem Hi, [Flex 2.0 Beta 1] I'm not getting the faultString when a fault occurs in my SOAP WebService: fault=Alert.show(event.fault.faultstring, 'SOAP Fault'); shows only 'HTTP Request Error'. I found some info about this with google that states that this doesn't work with most browsers, but it should (only) work with Internet Explorer. I've tried with Internet Explorer 6, FireFox 1.5 and Opera 8.5. None works. What am I doing wrong? I'm testing with PHP5.1 on an Apache 2.0 using a WSDL based soap server. Regards, Jan L. Nauta B.T.W. in Opera you sometimes have to refresh the page to get your Flex application to run. Is this a known problem? -- 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 -- 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 -- 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/
[flexcoders] SOAP WebService faultString problem
Hi, [Flex 2.0 Beta 1] I'm not getting the faultString when a fault occurs in my SOAP WebService: fault=Alert.show(event.fault.faultstring, 'SOAP Fault'); shows only 'HTTP Request Error'. I found some info about this with google that states that this doesn't work with most browsers, but it should (only) work with Internet Explorer. I've tried with Internet Explorer 6, FireFox 1.5 and Opera 8.5. None works. What am I doing wrong? I'm testing with PHP5.1 on an Apache 2.0 using a WSDL based soap server. Regards, Jan L. Nauta B.T.W. in Opera you sometimes have to refresh the page to get your Flex application to run. Is this a known problem? -- 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] xml files embedded in swf?
Hi Abdul, Ok, so this is intended behaviour. But then the xml file shouldn't be copied into the bin (output) directory, as it's already embedded in the swf file? The fact that it _was_ copied into the bin directory led me to believe that it wasn't embeded in the first place. Regards, and thanks for the quick replies! Jan L. Nauta -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Tuesday, February 28, 2006 00:20 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] xml files embedded in swf? Hi Jan, This is not a strange behaviour. mx:Model /, mx:XML / etc are compiler tags, which means content inside them (or linked) would be compiled in the SWF. It is well documented and it has been the same in Flex 1.5 as well. You use @Embed (..), mx:XML /, mx:Model / when you want to compile the assets with-in the final SWFs. As Harish said, if you want to load content/assets on runtime, you should consider other available APIs/tags, f.ex. mx:HTTPService /, mx:Image / without @Embed in source attribute, mx:Loader / etc Does that make sense? -abdul On 2/27/06, Jan L. Nauta [EMAIL PROTECTED] wrote: Hi Harish, Is there a reason for this strange behaviour? Normally I have to add @embed explicitely... Also what is the limitation on the size of the xml embeded in the swf? Regards, Jan L. Nauta -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Harish Sivaramakrishnan Sent: Monday, February 27, 2006 15:05 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] xml files embedded in swf? Hi mx:XML tag always embeds the xml at compile time, hence there is also a limitation to the size of the xml that you can load on to the swf. In order to read an xml data at run time you could use mx:HTTPService id=serv url=my_xml resultFormat=xml result=foo()/ You could write ur logic in function foo() and use the loaded xml data. Hope this helps, Harish. Flex-QA Adobe India. --- Jan L. Nauta [EMAIL PROTECTED] wrote: - Hi, (Flex 2.0 Beta 1) I noticed that xml files are always embedded in the generated .swf file??? mx:XML id=my_xml source= my.xml format=e4x/ I thought it would work like images, so unless you embed it explicit it would be an external resource. The xml file even got copied to the bin directory, but the swf still uses it's 'internal' version... Regards, Jan L. Nauta -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 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. - __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- 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 -- 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 http://groups.yahoo.com/group/flexcoders/ -- 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 http
[flexcoders] xml files embedded in swf?
Hi, (Flex 2.0 Beta 1) I noticed that xml files are always embedded in the generated .swf file??? mx:XML id=my_xml source=my.xml format=e4x/ I thought it would work like images, so unless you embed it explicit it would be an external resource. The xml file even got copied to the bin directory, but the swf still uses it's 'internal' version... Regards, Jan L. Nauta -- 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] xml files embedded in swf?
Hi Harish, Is there a reason for this strange behaviour? Normally I have to add @embed explicitely... Also what is the limitation on the size of the xml embeded in the swf? Regards, Jan L. Nauta -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Harish Sivaramakrishnan Sent: Monday, February 27, 2006 15:05 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] xml files embedded in swf? Hi mx:XML tag always embeds the xml at compile time, hence there is also a limitation to the size of the xml that you can load on to the swf. In order to read an xml data at run time you could use mx:HTTPService id=serv url=my_xml resultFormat=xml result=foo()/ You could write ur logic in function foo() and use the loaded xml data. Hope this helps, Harish. Flex-QA Adobe India. --- Jan L. Nauta [EMAIL PROTECTED] wrote: - Hi, (Flex 2.0 Beta 1) I noticed that xml files are always embedded in the generated .swf file??? mx:XML id=my_xml source=my.xml format=e4x/ I thought it would work like images, so unless you embed it explicit it would be an external resource. The xml file even got copied to the bin directory, but the swf still uses it's 'internal' version... Regards, Jan L. Nauta -- 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. - __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- 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 -- 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/
[flexcoders] Access components from other modules
Hi, I have a mx:XML component in the 'application' mxml file that I want to access from another mxml file, how do I do that? The other mxml is a form that's part of a viewstack in the 'application' mxml file: Main.mxml: mx:Application ... ... mx:XML id=my_xml .../ mx:ViewStack id=pages TestPage id=test_page label=Test/ /mx:ViewStack /mx:Application TestPage.mxml: mx:Form ... ... mx:Label text={my_xml}/ ... /mx:Form Regards, Jan L. Nauta -- 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] WebService: SOAP and PHP5 on Apache
Hi Matt, I've found the problem! It appears that the PHP5 WSDL parser is a little more flexible than the FLEX one :) The port binding (inside the service tag) was missing a namespace id (tns). The PHP5 client didn't have a problem with that. After I added the namespace id, everything worked fine in PHP5 _and_ FLEX. Regards, Jan L. Nauta -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Friday, January 27, 2006 08:26 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] WebService: SOAP and PHP5 on Apache I'll forward this testcase on internally. Unfortunately I'm not sure if we have any PHP servers set up right now for testing, but I'll see if I can get it into the 2.0 testcases. Not a short-term help I know but we're pretty headsdown on getting the beta out the door. If someone else knows what's going on please feel free to jump in. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jan L. Nauta Sent: Thursday, January 26, 2006 5:13 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] WebService: SOAP and PHP5 on Apache Hi Matt, The WSDL and the server are part of a PHP SOAP example: http://www.zend.com/php5/articles/php5-SOAP.php I've used server1.php and tested with client3.php, that worked. Then tried to point a Flex 2 mx:WebService to the url, but no luck... Regards, Jan L. Nauta -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Thursday, January 26, 2006 05:10 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] WebService: SOAP and PHP5 on Apache Might be a bug in our parser. I don't know much about PHP web services, do you control whether it's RPC style or doc-lit? If you can try RPC style. Otherwise we'll need to see the WSDL to see if we can reproduce. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jan L. Nauta Sent: Monday, January 23, 2006 5:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] WebService: SOAP and PHP5 on Apache Hi, I'm trying to get a simple mx:WebService to work in Flex 2.0. The WebService is written in PHP5 and runs on Apache, nothing fancy, only a single function is exported for test purposes. I can access the server from php (i.e. a client script can communicate with a server script using SOAP), but all I get from Flash is Error: The WSDL parser has no registered document for the namespace ''. 1) my Flex app _can_ communicate with other SOAP servers, tested with the restaurant example. 2) my SOAP server _can_ communicate with a PHP soap client. What is going wrong here? Any clues are greatly appreciated. Regards, Jan L. Nauta -- 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 -- 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 -- 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 -- 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 -- 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] WebService: SOAP and PHP5 on Apache
Hi Matt, The WSDL and the server are part of a PHP SOAP example: http://www.zend.com/php5/articles/php5-SOAP.php I've used server1.php and tested with client3.php, that worked. Then tried to point a Flex 2 mx:WebService to the url, but no luck... Regards, Jan L. Nauta -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Thursday, January 26, 2006 05:10 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] WebService: SOAP and PHP5 on Apache Might be a bug in our parser. I don't know much about PHP web services, do you control whether it's RPC style or doc-lit? If you can try RPC style. Otherwise we'll need to see the WSDL to see if we can reproduce. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jan L. Nauta Sent: Monday, January 23, 2006 5:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] WebService: SOAP and PHP5 on Apache Hi, I'm trying to get a simple mx:WebService to work in Flex 2.0. The WebService is written in PHP5 and runs on Apache, nothing fancy, only a single function is exported for test purposes. I can access the server from php (i.e. a client script can communicate with a server script using SOAP), but all I get from Flash is Error: The WSDL parser has no registered document for the namespace ''. 1) my Flex app _can_ communicate with other SOAP servers, tested with the restaurant example. 2) my SOAP server _can_ communicate with a PHP soap client. What is going wrong here? Any clues are greatly appreciated. Regards, Jan L. Nauta -- 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 -- 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 -- 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/
[flexcoders] WebService: SOAP and PHP5 on Apache
Hi, I'm trying to get a simple mx:WebService to work in Flex 2.0. The WebService is written in PHP5 and runs on Apache, nothing fancy, only a single function is exported for test purposes. I can access the server from php (i.e. a client script can communicate with a server script using SOAP), but all I get from Flash is Error: The WSDL parser has no registered document for the namespace ''. 1) my Flex app _can_ communicate with other SOAP servers, tested with the restaurant example. 2) my SOAP server _can_ communicate with a PHP soap client. What is going wrong here? Any clues are greatly appreciated. Regards, Jan L. Nauta -- 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/
[flexcoders] Image with (per-pixel) alpha-channel
Hi, I'm starting with Flex and want to display an image with an alpha mask. So I've got a 32-bit .PNG with alpha channel, but I can't get it to display correctly. Flash seems to use the alpha channel in the image to dither the image, i.e. yes/no select which pixel are to be displayed instead of smoothly blending the image with the background. Any idea's how to get the image to show correctly? This is for Flex 2.0 alpha 1, and simply using the mx:Image tag. Regards, Jan L. Nauta -- 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/