XmlNode in Web Services...

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default XmlNode in Web Services...

    Requirements have made me to come up with a Web Service that accepts XML as
    input.
    Figured out that XmlNode is possible to work with and it works like a gem.

    Now i am thinking of non-.NET clients, would they be able to call this Web
    service and send XML document.
    Is this type supported by the clients such as PERL, Python that need to call
    this Web service?
    If not what is the remedy apart from using WS Attachments?


    [WebMethod]
    public string XMLInputMethod(XmlNode xmlDocument)
    {
    .....
    }

    Thanks,
    Arc


    arc Guest

  2. Similar Questions and Discussions

    1. Error returning an XmlNode from a webservice
      I am using WSE 2.0 and ASP.NET to consume two webservices. The first works fine 100% of the time - the second doesn't. The first has a signature...
    2. HttpPOST fails when using XmlNode
      Can someone explain why HTTP Post fails when implementing this simple webmethod? public XmlNode Echo(XmlNode doc) { return doc; }
    3. Relation between XmlNode and WSDL minoccurs or type
      I have a WSDL-file that looks like the following (Part of it) - <s:complexType name="Persoonslijst"> - <s:sequence> <s:element minOccurs="0"...
    4. Adding an XmlNode parameter to the HelloWorld WebMethod
      I've added an XmlNode as a parameter to the HelloWorld WebMethod. The automaticall generated WSDL would leave one to believe that any well-formed...
    5. XmlNode -> Schema -> Object
      I apologize, this question pertains to WebServices only indirectly. Lets say I have an XmlNode that validates against some schema. I also have a...
  3. #2

    Default Re: XmlNode in Web Services...

    The "input type" on a .NET web service method is just what data type the web
    service will deserialize data into. As long as all of your other clients
    are communicating via SOAP, they will see the XMLNode complex data type in
    the "types" element in the web service's WSDL. And since SOAP is in XML
    anyway, I'm sure an XMLNode will serialize with no problems.


    "arc" <dprivon@hotmail.com> wrote in message
    news:%23Ls98OUqDHA.1960@TK2MSFTNGP12.phx.gbl...
    > Requirements have made me to come up with a Web Service that accepts XML
    as
    > input.
    > Figured out that XmlNode is possible to work with and it works like a gem.
    >
    > Now i am thinking of non-.NET clients, would they be able to call this Web
    > service and send XML document.
    > Is this type supported by the clients such as PERL, Python that need to
    call
    > this Web service?
    > If not what is the remedy apart from using WS Attachments?
    >
    >
    > [WebMethod]
    > public string XMLInputMethod(XmlNode xmlDocument)
    > {
    > ....
    > }
    >
    > Thanks,
    > Arc
    >
    >

    David Shreffler Guest

  4. #3

    Default Re: XmlNode in Web Services...

    Hi,
    > Now i am thinking of non-.NET clients, would they be able to call this Web
    > service and send XML document.
    Sure.
    > Is this type supported by the clients such as PERL, Python that need to
    call
    > this Web service?
    Don't see why not. When you do that, the WSDL generated simply states the
    service can take any valid XML as input (i.e. xsd:any).

    --
    Tomas Restrepo
    [email]tomasr@mvps.org[/email]


    Tomas Restrepo \(MVP\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139