Solved

File needed on server to allow flash to contact web service?

Posted on 2007-04-02
8
179 Views
Last Modified: 2010-04-03
I have a web service that I am calling from an external domain and I was curious what kind of file I need to put on the server to allow it to make the calls.  I read somewhere that I need a file on the server to do this but cant remember what one or what needs to be in it.

I would love to use flash remoting but in reading most of the examples I saw, it seemed that you needed a proper WSDL file and the service I am calling just returns xml and doesn't have a WSDL.
0
Comment
Question by:wildbrookmedia
  • 4
  • 4
8 Comments
 
LVL 37

Accepted Solution

by:
CyanBlue earned 175 total points
ID: 18838544
You basically need a crossdomain.xml file on your server so that the SWF files in other domain can call...
Check these links out...

http://www.crossdomainxml.org/

CyanBlue
0
 
LVL 8

Author Comment

by:wildbrookmedia
ID: 18839617
Our server guy is out today so I will have to wait till tomorrow to get one of these on the server...
0
 
LVL 8

Author Comment

by:wildbrookmedia
ID: 18839624
... and is it true that you need a WSDL to implement flash remoting as opposed to just consuming the XML?
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 18840300
Um...  I am not 100% sure what you are asking there, but you don't need the Flash Remoting to consume the WSDL...  You can utilize the WebServiceConnector component to do so...

CyanBlue
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 8

Author Comment

by:wildbrookmedia
ID: 18840386
http://www.flashmagazine.com/923.htm

The site above talks about Flash Remoting as an alternative to consuming the xml returned by a web service directly.  The web service I am calling doesnt have a WSDL but simply returns XML so I didnt think flash remoting was an option for me nor was using any of the WebService classes...  Can I use flash remoting or the web service components without a WSDL?  (hopefully more clear?)
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 18840718
What I am trying to say is...
You can simply use XML.load() function to load the XML data from the server without using the Flash Remoting or WebServiceConnector component...
You can however use those if you choose to/required to...  Those can be convinient for some cases, but that's not the only one you can use to load the XML data out of the server...  But there are circumstances when you have to use, but I don't think that applies to your case and I think that's beyond the scope of your question...

So, to answer your question again, yes, you can use those to load the XML data from the server, but it is not always necessary to do so...

I suggest you check out the XML object in Flash to learn more about it and see if you can use that one instead...  ;)

CyanBlue
0
 
LVL 8

Author Comment

by:wildbrookmedia
ID: 18844380
thanks for answering the off topic question.  We put a cross domain file on the server and got the movie to work so thanks for that too!  :)
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 18844466
Glad to hear that you've got it working...  :)

CyanBlue
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Pushing Adobe Flash Player Fails with Error %%2 1 476
Adobe Flash Free Transform Tool 2 128
Adobe Flash player - Microsoft Edge 9 156
black magic design 1 120
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now