Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-03 Thread Daniel Freiman
As I understand it cross-domain files also need site-control and allow-http-request-headers-from tags with the newest version of the player. - Daniel Freiman On Mon, Jun 2, 2008 at 7:15 AM, javed786pk [EMAIL PROTECTED] wrote: J, I already have place crossdomain.xml is my root directory.

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-03 Thread Josh McDonald
Ah... Where can I find a canonical example? -J On Wed, Jun 4, 2008 at 2:00 AM, Daniel Freiman [EMAIL PROTECTED] wrote: As I understand it cross-domain files also need site-control and allow-http-request-headers-from tags with the newest version of the player. - Daniel Freiman On Mon,

RE: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-03 Thread Rick Winscot
, June 03, 2008 12:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Calling a REST webservice from Flex As I understand it cross-domain files also need site-control and allow-http-request-headers-from tags with the newest version of the player. - Daniel Freiman On Mon, Jun 2

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-03 Thread Josh McDonald
Of *Daniel Freiman *Sent:* Tuesday, June 03, 2008 12:00 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Calling a REST webservice from Flex As I understand it cross-domain files also need site-control and allow-http-request-headers-from tags with the newest version

[flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread javed786pk
thanks for quick response. Is there any workaround to make PUT and DELETE Requests or its simply limitations of Flex3? Muhammad Javed --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: You can only make GET and POST requests from Flex. -J On Mon, Jun 2, 2008 at 4:21

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread Josh McDonald
It's a limitation of the browser plugin API unfortunately. You can proxy GET/POST requests via a server that makes the correct requests on your behalf, but that's about it. -J On Mon, Jun 2, 2008 at 4:32 PM, javed786pk [EMAIL PROTECTED] wrote: thanks for quick response. Is there any

[flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread javed786pk
J, I am sorry but i did not understand the proxy part of your response.Can you kindly elaborate it for me a little more? -Muhammad --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: It's a limitation of the browser plugin API unfortunately. You can proxy GET/POST

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread Josh McDonald
Well the idea is you run a proxy on your server, make non-rest calls to it with GET and POST, or Data Services, and the proxy is the one that makes the GET / POST / PUT / DELETE rest calls and then returns the result to your Flex program. I think LCDS / BlazeDS has some stuff in it to help with

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread Gireesh Kumar
As far as I understand REST invocation is same as any HTTP url loading in Flex. You can use the HTTPService from Flex. But I am not sure why you wanted DELETE and PUT methods with REST webservice, you just need only GET/POST. I think Flex 'HttpServer' support only GET/POST. Thanks Gireesh On

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread Josh McDonald
If you're only using GET/POST you're not really doing rest, but I don't wanna kick off a holy war. I don't even like rest :) I don't like SOAP much either, but I do like the idea of schema definition, and I'm still waiting for something nice in between the two ;-) -J On Mon, Jun 2, 2008 at 4:58

[flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread javed786pk
Did anyone try calling a simple SOAP service from Flex3? I will appreciate if some can share the code.My SOAP web service is deployed on my Local IIS server. Do we need any Flex configuration to run the service successfully? -Muhammad --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread Josh McDonald
We use SOAP all the time from flex 3. You won't have a problem because SOAP over http is always GET and POST Look at mx:Webservice for more info. -J On Mon, Jun 2, 2008 at 5:42 PM, javed786pk [EMAIL PROTECTED] wrote: Did anyone try calling a simple SOAP service from Flex3? I will

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread Josh McDonald
If you get a security exception, it usually means you need a crossdomain.xml file in the root directory of your server. Google knows all about this :) On Mon, Jun 2, 2008 at 7:05 PM, javed786pk [EMAIL PROTECTED] wrote: J, Can you Kindly some sample Code(Flex3)that can call the webserivce.

[flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread javed786pk
J, Can you Kindly some sample Code(Flex3)that can call the webserivce. Actually i tried to use the mx:Webservice but i am getting security exceptions . Is there any configuration that needs to be made @ flex side to overcome these security issues? --- In flexcoders@yahoogroups.com, Josh McDonald

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread Josh McDonald
Not much more I can suggest really, besides getting a copy of charles the debugging proxy to see exactly what's going on. What's the exact error you're getting? -J On Mon, Jun 2, 2008 at 9:15 PM, javed786pk [EMAIL PROTECTED] wrote: J, I already have place crossdomain.xml is my root

[flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread javed786pk
J, I already have place crossdomain.xml is my root directory. Here are conents of crossdomain.xml ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain='*' /

[flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread javed786pk
Here is the exact error [RPC Fault faultString=Security error accessing url faultCode=Channel.Security.Error faultDetail=Destination: DefaultHTTP] -Muhammad --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Not much more I can suggest really, besides getting a copy of

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread Josh McDonald
Hmm not sure, the crossdomain thing usually comes as a sandbox violation. I guess I'm not that much use after all :) -J On Mon, Jun 2, 2008 at 10:29 PM, javed786pk [EMAIL PROTECTED] wrote: Here is the exact error [RPC Fault faultString=Security error accessing url

[flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread meteatamel
Yes, BlazeDS (which is an open source project) has Proxy Service that does exactly what you need. It proxies HTTP calls using Apache commons Http Client and it enables you to do HTTP GET, POST, PUT, DELETE. Check out BlazeDS here: http://opensource.adobe.com/wiki/display/blazeds -Mete --- In

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread muhammad javed
meteatamel, Would this open source service(BlazeDS) work with IIS as well? -Javed --- meteatamel [EMAIL PROTECTED] wrote: Yes, BlazeDS (which is an open source project) has Proxy Service that does exactly what you need. It proxies HTTP calls using Apache commons Http Client and it enables

Re: [flexcoders] Re: Calling a REST webservice from Flex

2008-06-02 Thread Josh McDonald
Javed, It's all written in Java I believe. IIS is not a Servlet container, but you can get instructions to use IIS as a Tomcat connector here: http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html -Josh On Tue, Jun 3, 2008 at 1:57 PM, muhammad javed [EMAIL PROTECTED] wrote: