well when i rethink about this ,,,, it is pretty simple to detect such
changes even if you do not have anny control of the server side
retrieve the wsdl store it and compare it ,,, if the wsdl is changed the
webservice is changed simple ....
working example
Imports System.Net
Public Class Form1
Private url As String =
"http://www.nohausystems.nl/kenteken/kenteken.asmx?wsdl"
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
'create the reference file when a new version is released by the ws
department
GetReferenceFile(url)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
' call this method to check if nothing changed to the webservice
MsgBox(WsRefChanged(url).ToString)
'if it returns true you know a change has taken place since your last call
to GetReferenceFile(url)
End Sub
Private Sub GetReferenceFile(ByVal url As String)
'call this method to create a reference file
Dim Myweb As New WebClient
Dim response As String = Myweb.DownloadString(url)
Dim myWriteStream As New System.IO.StreamWriter("ws.ref")
myWriteStream.Write(response)
myWriteStream.Close()
End Sub
Private Function WsRefChanged(ByVal url As String) As Boolean
Dim myStream As New System.IO.StreamReader("ws.ref"), Myweb As New WebClient
Dim WsRef As String = myStream.ReadToEnd
myStream.Close()
Dim response As String = Myweb.DownloadString(url)
Return Not String.Equals(WsRef, response)
End Function
End Class
regards and a happy new year to all who read this thread
Michel Posseth [MCP]
"Sara" <sa**********@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
In my project webservice is done by other department, some times they
are adding overloaded methods and not informing us. though its a
communication gap, i want to know as soon as they done with the web
services changes.
i have compiled my proxy and having it with me
how can create a version number for that do you mean shared assembly