How to check webservers OK responce in case of Web service
-
Hi All, I am building a desktop application in VB.NEt which consumes web-service. I am using proxy classes of the provided WSDl files. I am calling web-service asynchronously. The signature of the web-call is as follows Public Function BeginRequest(ByVal Request1 As Request, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Public Sub EndRequest(ByVal asyncResult As System.IAsyncResult) The generator of web-service are saying if we receive web-server's OK responce the call is successful. But how to check the web server's OK responce? Could anyone help me out?
Every thing will come to you if you have faith.
-
Hi All, I am building a desktop application in VB.NEt which consumes web-service. I am using proxy classes of the provided WSDl files. I am calling web-service asynchronously. The signature of the web-call is as follows Public Function BeginRequest(ByVal Request1 As Request, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Public Sub EndRequest(ByVal asyncResult As System.IAsyncResult) The generator of web-service are saying if we receive web-server's OK responce the call is successful. But how to check the web server's OK responce? Could anyone help me out?
Every thing will come to you if you have faith.
You should analyze response's HTTP header status code; it should be 200 (OK). See here: http://www.seoconsultants.com/tools/headers.asp
------------------------- Don't worry, be happy :o)
-
You should analyze response's HTTP header status code; it should be 200 (OK). See here: http://www.seoconsultants.com/tools/headers.asp
------------------------- Don't worry, be happy :o)
But I am not using this in ASP.NET page like aspx etc. I am calling web service using proxy class, build from WSDl file. I do not which object or property to be used for getting HTTP header details. As far as I know there is no such property/object avaialble in the proxy class.
Every thing will come to you if you have faith.