HighTechTalks DotNet Forums  

Re: Updating a web service and it's wsdl file

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Re: Updating a web service and it's wsdl file in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default 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.)


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.