PROBLEM: webservice, XmlNode return value, XMLSchema and WSDL

Discussion in 'ASP .Net Web Services' started by g.fiorentini, Sep 10, 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 an XmlSchema.
    2. the web method is like the following:

    ...
    [webmethod]
    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.

    THE PROBLEM::
    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.


    -giacomo-
     
    g.fiorentini, Sep 10, 2003
    #1
    1. Advertising

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.
Similar Threads
  1. Kathy Burke
    Replies:
    0
    Views:
    497
    Kathy Burke
    Jul 24, 2003
  2. asgars
    Replies:
    0
    Views:
    2,807
    asgars
    Jun 16, 2006
  3. Patrick

    Relation between XmlNode and WSDL minoccurs or type

    Patrick, Oct 15, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    202
    Patrick
    Oct 15, 2003
  4. Dominic Messenger

    Error returning an XmlNode from a webservice

    Dominic Messenger, Aug 31, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    137
    Dominic Messenger
    Aug 31, 2004
  5. Archana

    Problem with XmlNode type in wsdl file

    Archana, Mar 1, 2007, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    167
    John Saunders
    Mar 1, 2007
Loading...

Share This Page