Andrew, if you're just adding an attribute, you don't need to add it to the BeginFoo method as well -- your extension attribute will still be initialized even if it's just on the sync method. alex
-----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Hopper Sent: Friday, October 17, 2003 11:17 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] SoapExtensionImporter and asynchronous invocation I am attempting to write an importer for a SOAP extension so that my users can just use WSDL.exe or VS.NET's 'Add Web Reference' feature and have the necessary client-side SOAP extension attributes generated for them when the tool generates the client-side proxy. I've implemented the ImportMethod method of the SoapExtensionImporter class, but it seems that I only have access to the code being generated for the synchronous method. Does anyone know if there's any way to inject code for the BeginXXX method from inside this method? Thanks! Andy Hopper =================================== This list is hosted by DevelopMentor(r) http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorŪ http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com