RE: Parsing WSDL and System.Web.Services.Description

From: Elena Kharitidi (elenak_at_online.microsoft.com)
Date: 09/01/04


Date: Wed, 01 Sep 2004 18:49:08 GMT

I do not believe that this can be done in the general case: in the case of
Document/literal the schema xs:element referenced by the wsdl:part element
describes the wire format, not the implementation details: the AddStrings
can be a method name with two string parameters:

public string AddStrings(string s1, string s2) {..}

or a method taking Strings instance with parameter style bare

public string Add(Strings AddStrings) {..}

public class Strings {
    public string s1;
    public string s2;
}

If you do not care of the actual implementation, and just want to present
user with a sample method signature derived from the given WSDL, you would
have to be able to parse all schema constructs and interpret them one way
or other: attributes, nested groups, element references, and so on.

Thanks,
Elena



Relevant Pages

  • Re: whats the use of MemberwiseClone() ?
    ... - Now the values of myObj1 and myObj2 are references to different ... public class Test: ICloneable ... public string Name ...
    (microsoft.public.dotnet.languages.csharp)
  • XML Inheritance
    ... I have a question regarding how the .Net framework interprets schema ... public string __Address1; ... [XmlIgnore] ...
    (microsoft.public.dotnet.xml)
  • Re: Could not find schema information for the element
    ... I get 5 messages about "could not find schema": ... Could not find schema information for the element 'testsystem'. ... public string DefaultConnectionStringName ...
    (microsoft.public.dotnet.framework.aspnet)
  • XSD.exe and nested attribute group
    ... nest an attributegroup inside another one I miss the nested attribute ... Second Schema: ... public string attributo2; ...
    (microsoft.public.dotnet.xml)
  • Re: Deserializing xs:choice with xs:sequence problem
    ... public string[] Items; ... generated file every time I need to change my schema - a small price to pay. ... Sergey ... >> the first two elements in those sequences, and the rest is just ignored!!! ...
    (microsoft.public.dotnet.xml)