Solved

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

Posted on 2007-04-02
8
168 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
Comment Utility
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
Comment Utility
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
Comment Utility
... 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
Comment Utility
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 8

Author Comment

by:wildbrookmedia
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Glad to hear that you've got it working...  :)

CyanBlue
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

762 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

12 Experts available now in Live!

Get 1:1 Help Now