# Communicating with a XML web service

**URL:** https://forum.kirupa.com/t/communicating-with-a-xml-web-service/282074
**Category:** flash
**Created:** [February 17, 2009, 10:10am UTC](https://forum.kirupa.com/t/communicating-with-a-xml-web-service/282074 "2009-02-17T10:10:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lilleypants](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@lilleypants](https://forum.kirupa.com/u/lilleypants)
#### Post date: [February 17, 2009, 10:10am UTC](https://forum.kirupa.com/t/communicating-with-a-xml-web-service/282074/1 "2009-02-17T10:10:06Z")

</div>

I am a complete newbie with web services and etc and I need to connect to a web service and call back xml data and all I get so far is undefined ☹

My code looks like the following:

```auto

import mx.services.WebService;

blackBox_mc._visible = false;

myWebService = new WebService("http://link_to_webservice");
result2_txt.text = myWebService;
callback2 = myWebService.GetWeather("1234");

callback2.onResult = function(result)
{
  blackBox_mc._visible = true;
}

```

The result to be pulled back is xml data like following:

```auto
<WeatherInfoData xmlns="http://address/WeatherInfoData.xsd">
  <course>
    <weather>Katy Test V2</weather>
  </course>
</WeatherInfoData> 

```

Is there anything wrong with my web services call? At the moment when it connects I just want a box to turn on and then later on find a way of splitting up the xml data and producing results.

Any help would be great as I am running in circles reading books and tutorials! :yoda:
