|
In Flex 1.5, I was able to preload/embed
wsdl into the swf by overriding the sendAndLoad method of the native XML object… Take a look at my blog posting here to see
how: https://www.cynergysystems.com/blogs/page/andrewtrice?entry=override_native_object_methods_in I don’t think that this exact syntax
will work in Flex 2 b/c you can no longer modify the prototype of a native
object. In Flex 2, you could try extending the WebService object
like this (although I have no guarantee that this would work… I have not actually
tried it). Use the EmbededWSDL class instead of the WebService class.
You might also need to override the loadWsdl function. package { import
mx.rpc.soap.WebService; public
class EmbededWSDL extends WebService { public
function EmbededWSDL(){ this.wsdl
= "MY WSDL STRING"; super(); } } } Hope that helps! -Andy _____________________________________ Andrew Trice Cynergy Systems, Inc. Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: Kelly, As Matt
observed, I'm using a single AS class (Cairngorm ServiceLocator) for webservice
calls. It's based on Jeff Tapper's DataManager class: http://jeff.mxdj.com/as3datamanagerfix.htm I changed
the logic to get the wsdl, when the application loads, to cut a few seconds off
of the initial data call. It appears that once the wsdl is loaded, the
webservice doesn't request it again for subsequent calls. If all of your
calls are to the same webservice, there would only be one request for the
wsdl. This would address your client's concern about network traffic. -TH -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Re: Embedding WSDL? Andrew Trice
- [flexcoders] Re: Embedding WSDL? Tim Hoff
- RE: [flexcoders] Re: Embedding WSDL? Kelly Birr
- [flexcoders] Re: Embedding WSDL? Tim Hoff
- RE: [flexcoders] Re: Embedding WSDL? Kelly Birr
- RE: [flexcoders] Re: Embedding WSDL? Kelly Birr
- RE: [flexcoders] Re: Embedding WSDL? Peter Farland
- RE: [flexcoders] Re: Embedding WSDL? Matt Chotin
- RE: [flexcoders] Re: Embedding WSDL? Carson Hager
- [flexcoders] Re: Embedding WSDL? Tim Hoff
- RE: [flexcoders] Re: Embedding WSDL? Peter Farland

