-
Web Service Problem
Im trying to use a weather web service in flash mx2004, but for some reason I cant get the service wsdl to load. Here's the code I'm using.
Code:
import mx.services.*;
var weatherService = new WebService("http://live.capescience.com/wsdl/GlobalWeather.wsdl");
weatherService.onLoad = function() {
trace("loaded");
};
stop();
Note that this code works if I use this wsdl for stock quotes:
http://www.xmethods.net/sd/StockQuoteService.wsdl
Also, the weather web service wsdl seems to work fine when I input it in the web-services panel in flash. I dont understand why it doesn't work when I publish the above code!
I found the service here:
http://www.capescience.com/webservic...er/index.shtml
I hope someone can help!!!
Thanks
Tim.
-
Someone??
Someone must have an idea of what's going on here... ???
-
Ive implemented the onFault callback for the service and it returns the fault code:
WSDL.MultiplePorts
The human readable (faultstring) is:
There are multiple possible ports in the WSDL file; please specify a service name and port name!
So I suppose my question is: How do I specify a service name and port name????
Hope someone can help...
-
Wuhoo
I can load the wsdl now... As usual its down to ***SHIITTY*** flash help only telling you half the story. You have to get onto google and somehow find this page at macromedia:
http://www.macromedia.com/devnet/mx/...rvices_03.html
The answer is to use the *** UNDOCUMENTED *** in the help webService._portName property.
Thanks for a pain in the ass macromedia!
Tim.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|