Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. How to check webservers OK responce in case of Web service

How to check webservers OK responce in case of Web service

Scheduled Pinned Locked Moved Web Development
csharpwcfsysadminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amol Ravatale
    wrote on last edited by
    #1

    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.

    D 1 Reply Last reply
    0
    • A Amol Ravatale

      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.

      D Offline
      D Offline
      Dmitry Khudorozhkov
      wrote on last edited by
      #2

      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)

      A 1 Reply Last reply
      0
      • D Dmitry Khudorozhkov

        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)

        A Offline
        A Offline
        Amol Ravatale
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups