HOW TO? declarate the xml-schema of return values from method call

Discussion in 'ASP .Net Web Services' started by g.fiorentini, Sep 20, 2003.

  1. g.fiorentini

    g.fiorentini Guest

    Is there a way to make the following:

    1. we have a webmethod, that should return an xml document that is valid
    respect our XmlSchema.
    2. the web method should be like the following:

    public XmlNode MyMethod ( ... param-list ...) {
    ... build xml-document that respect the XmlSchema
    ... return xml_doc;

    3. When viewing the generated WSDL , we see only a general return type, not
    the Xml Schema.

    How instruct the .net system, to consider the return value from the
    webmethod-call, as exactly
    compliant or valid, to the giveng XmlSchema ?

    Thanks for any help.

    g.fiorentini, Sep 20, 2003
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page