Osvaldo,

Thank you for your post. Unfortunately, your suggestion only works 
when invoking HTTPService, not WebService. In other words, those 
proxy samples (php, asp, jsp, etc) I've downloaded from Adobe 
(http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16520) 
cannot handle a WebService call. I was getting either Runtime 
errors, or errors sending HTTPRequest. It all made sense to me after 
reading this article: 
http://www.adobe.com/devnet/flash/articles/flmxpro_webservices_05.htm
l. If you read the WHOLE article, it'll tell you what other pieces 
you need to write a generic Flex proxy script (nusoap.php, 
Serializer.as, etc) to invoke a webservice from a domain with no 
crossdomain.xml.

I'll post my notes once I get my webservice running.
Regards,
Roman


--- In [email protected], "Osvaldo Aufiero" <[EMAIL PROTECTED]> 
wrote:
>
> Roman, have you read
> 
http://livedocs.adobe.com/flex/201/langref/mx/rpc/http/mxml/HTTPServi
ce.html?
> (that link explains the difference between setting useProxy to 
true or to
> false)
> 
> I had the same situation and I solved it using a proxy.php 
(downloaded from
> Adobe) with the final url (the one without crossdomain.xml) 
hardcoded in it.
> 
> While instanciating the HTTPService I set the url to the proxy.php 
location.
> 
> 
> It works great that way
> 
> Hope it helps
> 
> Osvaldo
> 
> On 3/23/07, Peter Farland <[EMAIL PROTECTED]> wrote:
> >
> >  If you set useProxy="true" WebService will generated an
> > HTTPRequestMessage as it is expecting to communicate with the FDS
> > ProxyService which runs on a messaging backbone. The format of 
the message
> > depends on the ChannelSet assigned to the WebService (or the 
defaults set
> > for the DefaultHTTPS destination for secure URLs in services-
config.xml).
> > Instead of trying to deserialize an HTTPRequestMessage I think 
you should
> > leave useProxy="false" (the default, btw) and just set the URL 
to your own
> > custom proxy.
> >
> >  ------------------------------
> > *From:* [email protected] 
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *rzilist
> > *Sent:* Friday, March 23, 2007 4:46 PM
> > *To:* [email protected]
> > *Subject:* [flexcoders] How to use Proxy script with Flex 
WebService?
> >
> >  Hi folks,
> > I'm consuming a webservice from secured domain which with no
> > crossdomain.xml file at server root. To get around the "Security 
error
> > accessing url" message, and as the only feasible solution, I 
wrote a
> > proxy script in .NET and uploaded to the IIS server hosting the 
swf.
> > Now, when I try to use the proxy script specifying 
useProxy="true" I
> > get an error saying "File Not Found". How would I go about 
invoking
> > my proxy script? I've tried the same way I do with Webservice, 
but all
> > in vain. Please help.
> > Thanks,
> > Roman
> >
> > 
> >
>


Reply via email to