Re: Updating a web service and it's wsdl file -
07-08-2003
, 08:15 AM
Come modification to my sample:
Public Class Info
Public name As String = "Superman"
Public email As String = "Superman (AT) superman (DOT) com"
End Class
<WebMethod()> Public Function GetInfo() As Info
Dim MyInfo As New Info()
GetInfo = MyInfo
End Function
To expand it, add following class to your project:
Public Class MoreInfo
Inherits Info
Public sex As String = "male"
End Class
and change the web method to:
<WebMethod()> Public Function GetInfo() As MoreInfo
Dim MyInfo As New MoreInfo()
GetInfo = MyInfo
End Function
The "old" client will be able to work with this.
Luke
(This posting is provided "AS IS", with no warranties, and confers no
rights.) |