Solved

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

Posted on 2007-04-02
8
192 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

820 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