locked
How to Read File XML From WSDL in VB.NET ? RRS feed

  • Question

  • User781962525 posted

    Hai morning guys,

    Can somebody help me, How to Read File XML From WSDL in VB.NET ?

    Because i'm stuck !

    Thanks.

    Monday, November 6, 2017 3:58 AM

Answers

  • User-335504541 posted

    Hi lappel,

    Since you question in your original post has been resolved, It's better to close this thread, for example mark a reply as answer if it’s ok for you, and start a new thread for your new question which could also benefit others who encounter similar issues in this community.

    Thanks for your cooperation.

    Best Regards,

    Billy

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, November 7, 2017 5:23 AM

All replies

  • User-335504541 posted

    Hi lapel,

    For example:

            Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://localhost:8888/GettingStarted/?wsdl")
            Dim response As System.Net.HttpWebResponse = request.GetResponse()
            ' Parse the contents from the response to a stream object
            Dim stream As System.IO.Stream = response.GetResponseStream()
            ' Create a reader for the stream object
            Dim reader As New System.IO.StreamReader(stream)
            ' Read from the stream object using the reader, put the contents in a string
            Dim contents As String = reader.ReadToEnd()
            ' Create a new, empty XML document
            Dim document As New System.Xml.XmlDocument()
    
            ' Load the contents into the XML document
            document.LoadXml(contents)

    Best Regards,

    Billy

    Tuesday, November 7, 2017 3:21 AM
  • User781962525 posted

    OK, 

    oh ya, and how about convert xml file into dataset ? 

    if am read the xml file is same as convert into dataset ? or not ?

    Tuesday, November 7, 2017 3:30 AM
  • User-335504541 posted

    Hi lappel,

    Since you question in your original post has been resolved, It's better to close this thread, for example mark a reply as answer if it’s ok for you, and start a new thread for your new question which could also benefit others who encounter similar issues in this community.

    Thanks for your cooperation.

    Best Regards,

    Billy

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, November 7, 2017 5:23 AM