T
Tom_B
Trying to send a dataset as the return information in a Web Service. For example: client contacts web service with an ID and then WS returns dataset for that ID. Was trying to return as the string of a function call. Understand how to serialize the dataset into XML. Cannot figure out how to put into a streamwriter, textwriter, etc. and return with the function. Thanks
<WebMethod()>
Public Function VenueData(ByVal VenueID As Integer) As Strin
SqlConnection1.Open(
SqlDataAdapterVenue.Fill(DataSetVenues
SqlDataAdapterEvents.Fill(DataSetVenues
SqlDataAdapterPerformances.Fill(DataSetVenues
SqlConnection1.Close(
Dim XmlDataSerializer As New XmlSerializer(GetType(DataSetVenues)
Dim StreamWriter As ?????
XmlDataSerializer.Serialize(StreamWriter, XmlDataSerializer
Return ?????
StreamWriter.Close(
End Function
<WebMethod()>
Public Function VenueData(ByVal VenueID As Integer) As Strin
SqlConnection1.Open(
SqlDataAdapterVenue.Fill(DataSetVenues
SqlDataAdapterEvents.Fill(DataSetVenues
SqlDataAdapterPerformances.Fill(DataSetVenues
SqlConnection1.Close(
Dim XmlDataSerializer As New XmlSerializer(GetType(DataSetVenues)
Dim StreamWriter As ?????
XmlDataSerializer.Serialize(StreamWriter, XmlDataSerializer
Return ?????
StreamWriter.Close(
End Function