473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Web services Change

How could i detect there is a change to web service that has already
accessed

Dec 31 '05 #1
5 989
Well you could verry easy implement a key mechanism ( a guid for
instance ) wich the client app can compare to a previous version it received
from the webservice

regards

Michel Posseth [MCP]
"Sara" <sa**********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
How could i detect there is a change to web service that has already
accessed

Dec 31 '05 #2
Iam not able to get your solution. Please brief me more on this.

Dec 31 '05 #3

Well i asume you have control over the client and the server

so in this case you could provide a versioning mechanism , for instance a
public property that returns a version code ,,( i would use a guid for this
purpose )

a question from my side is why would you need to know if the webservice is a
newer version ??? because if you have problems reciving data from newer
versions someone did not do his job right :-)
a webservice should always hold backwards compatibility through his method
signatures.

in normall language this means that new methods can always be added ( new
names with different parameters ) however old methods may be altered in the
code behind, but the challenge and response signature must always be the
same this ensures that old clients can always connect to a new service
without problems

regards

Michel Posseth [MCP]
"Sara" <sa**********@gmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
Iam not able to get your solution. Please brief me more on this.

Dec 31 '05 #4
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

Dec 31 '05 #5
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

Dec 31 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Niel | last post by:
Hello friends, I think this issue has been posted before but i have not been able to get any solution that is why i am posting it again in detail as to what exactly is happneing in my case. Hope...
1
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
1
by: Avanish Pandey | last post by:
Hello All We have 3 differen services (in 3 different server) Service A,B,C . We want to implement distributed transaction when call methods of B and C from A. Is it possible? if yes then how? ...
6
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows...
2
by: Chakkaradeep | last post by:
hi all, as it was discussed earlier in this forum titled,"Execution of Another Application in Services", i got the answer that Services are not meant for executing another applications, but...
3
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
21
by: EmJayEm | last post by:
Can someone tell me the Disadvantages/Cons of web services? Thanks, EmJ.
7
by: Stu | last post by:
Hi, I have a web service which returns a record set and works well integrated with an asp dot net page. However if I decided to develop a unix app will i be able to read the dataset as it is...
7
by: Matt | last post by:
I have approximately 5 instances on my test server that are identical to my prod server. On the prod server, when I look at the services file, there is a single entry per instance and everything...
5
by: JT | last post by:
Hi, I think I need a "best practices" lesson on web sites and web services. In order to conform to the restraints of my web host, my web services seem to need to be in a subfolder of my web...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.