I am looking for suggestions to improve performance of my visual basic code.
I am using Visual Studio 2008 to create a Visual Basic application that requests and receives data from a server, using the SOAP interface. The payload is XML data.
I've created a "Service Reference" to handle these communications using the "Add Service Reference" dialogue, specifying my WSDL file in the "Address:" field.
Visual Studio successfully generates a vb file that contains the definitions for the interface, in particular the function "serviceHandler".
To initiate a transaction I code:
Dim SoapData As New WebService.DelegateClient
Dim Reply As Xml.XmlElement
Reply = SoapData.serviceHandler(....)
The "Reply" variable is successfully populated with nodes describing the XML tags and contents.
It is desired to place the XML payload into a string variable. This is done like so:
Dim MyString As String = Reply.InnerText
View Complete Post