Author Topic: ServiceDescriptionImporter class  (Read 6392 times)

ankitasharma123

  • Guest
ServiceDescriptionImporter class
« 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.

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: ServiceDescriptionImporter class
« Reply #1 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

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

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

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: ServiceDescriptionImporter class
« Reply #2 on: September 17, 2013, 06:58:50 PM »