locked
about xml files RRS feed

  • Question

  • User-86041214 posted

    Hi:

    I have a problem about parameter in webservice.  I hope to develop a webservice for user to input his xml 

    files. But the problem is, how to make that.

    Suggestion the codes like following:

        [WebMethod]
            public DataSet HandleXMLData(File xmldoc)
            {
               ......
               return ds;
            }

    is that possible to pass the parameter with its type is FILE?

    or it should be string xmldoc.Thanks.

    Tuesday, January 1, 2013 8:29 PM

Answers

  • User-1662538993 posted

    You can have string input and then your user will insert xml document as a string.

    For xml document check this article -

    http://www.iamraghuveer.com/2012/01/aspnet-web-service-receiving-xml-as.html

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 2, 2013 9:03 AM

All replies

  • User1648350404 posted

    Check following:

    http://forums.asp.net/t/1192079.aspx

    Wednesday, January 2, 2013 12:37 AM
  • User-1662538993 posted

    You can have string input and then your user will insert xml document as a string.

    For xml document check this article -

    http://www.iamraghuveer.com/2012/01/aspnet-web-service-receiving-xml-as.html

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 2, 2013 9:03 AM