Any way to simulate Waiting

I have a class that uses two Httpservices. One of the services retrieves a url from a local xml. The second one uses that url as it’s url property. How can i have the second httpservice wait for the first http service to result in case it’s called before the first one is able to initialize?