The MASM Forum

Specialised Projects => Assembler/Compiler Technology => Topic started by: ankitasharma123 on September 17, 2013, 04:02:49 PM

Title: ServiceDescriptionImporter class
Post by: ankitasharma123 on September 17, 2013, 04:02:49 PM
I am using the ServiceDescriptionImporter class to generate a web services proxy at runtime.

I pass WSDL to the class, and have it generate the proxy assembly. The WSDL contains schemas for complex data types.

How do I retrieve the schema for the complex types from the compiled assembly?

This is getting pretty deep, I know. I hope someone can help me here.
Title: Re: ServiceDescriptionImporter class
Post by: dedndave on September 17, 2013, 06:23:53 PM
maybe this will help a little....

when you go to the MSDN page...
http://msdn.microsoft.com/en-us/library/system.web.services.description.servicedescriptionimporter.aspx (http://msdn.microsoft.com/en-us/library/system.web.services.description.servicedescriptionimporter.aspx)

in the Syntax section, there are 4 tabs - select the C++ tab
now - under Properties, you will find Schemas

again, wth the tabs, under C++
Code: [Select]
// Report on the service descriptions.
Console::WriteLine( "Importing {0} service descriptions with {1} associated schemas.", importer->ServiceDescriptions->Count, importer->Schemas->Count );

and if you tab back to C#
http://msdn.microsoft.com/en-us/library/system.web.services.description.servicedescriptionimporter.schemas.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-2 (http://msdn.microsoft.com/en-us/library/system.web.services.description.servicedescriptionimporter.schemas.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-2)

Code: [Select]
// Report on the service descriptions.
Console.WriteLine("Importing {0} service descriptions with {1} associated schemas.",
                  importer.ServiceDescriptions.Count, importer.Schemas.Count);

it's odd how they have the web page set up - lol
Title: Re: ServiceDescriptionImporter class
Post by: dedndave on September 17, 2013, 06:58:50 PM
http://masm32.com/board/index.php?topic=2198 (http://masm32.com/board/index.php?topic=2198)