Linking to XML Data

First thing is to create an .xml file. The file needs to display information with tags and then become coded in Flash to be displayed properly as you call them. After the .xml is created you then create a flash file and import to stage a xml connector to “connect” the xml file information to display it’s contents. You need a data list to display a “list of data” to choose from to display the .xml file message created in Dream Weaver. Last the information that will be displayed needs to have a dynamic text box to be displayed in. The data needs to be triggered so that the xml connector knows to connect to the .xml source file and display it’s contents.

Xml example

Basically with a WSDL it’s source is from the internet so in Flash you have to use a different connector. One that is called the web service connector, it just makes sense. In the component inspector I entered in a URL source. This particular one was from a site that had information that was updated constantly to show weather in the cities of the US. So by putting in a source URL it retrieves this information and then displays it after the click of a button. For my WSDL example I wanted two text areas, one for the min Celsius temperature and one for the max. I needed to create a text input filed as well for the city names. After that I needed to connect them to the web service connector. In the component inspector I bounded the fields from the bindings I added. Then in order for the web connector to “behave” I needed to trigger it.

WSDL Download