Professional Web Applications Themes

reading header info - ASP.NET Web Services

i have a very simple web service. this is called from a .net app in this webservice if i wanted to capture the cookies in the header coming from the calling app, how would i do this? thanks. Imports System.Web.Services <System.Web.Services.WebService(Namespace:="urn:Ex ample1")> _ Public Class Example1 Inherits System.Web.Services.WebService<WebMethod()> _ Public Function HelloWorld(ByVal name As String) As String Return "Hello " & name End Function End Class...

  1. #1

    Default reading header info

    i have a very simple web service. this is called from a .net app

    in this webservice if i wanted to capture the cookies in the header coming
    from the calling app, how would i do this?

    thanks.

    Imports System.Web.Services

    <System.Web.Services.WebService(Namespace:="urn:Ex ample1")> _

    Public Class Example1

    Inherits System.Web.Services.WebService<WebMethod()> _

    Public Function HelloWorld(ByVal name As String) As String

    Return "Hello " & name

    End Function

    End Class


    Mark Guest

  2. #2

    Default Re: reading header info


    haven't tried it myself, but wouldn't it be off the WebService Contex
    object

    so..
    WebService ws = new WebService();
    ws.Context.Request.Cookies

    if this doesn't work, post again with your results..

    --
    rvira
    -----------------------------------------------------------------------
    rviray's Profile: http://www.msusenet.com/member.php?userid=421
    View this thread: http://www.msusenet.com/t-187108561

    rviray Guest

Similar Threads

  1. Image in header column (not replacing column header text)
    By hansiman in forum ASP.NET Data Grid Control
    Replies: 3
    Last Post: February 7th, 12:17 AM
  2. Reading ASP.NET Response Header
    By John Saunders in forum ASP.NET General
    Replies: 7
    Last Post: August 9th, 05:26 PM
  3. RDF reading in .NET
    By martin in forum ASP.NET General
    Replies: 1
    Last Post: August 4th, 10:25 AM
  4. reading from CSV
    By Vicky S in forum ASP.NET General
    Replies: 8
    Last Post: July 16th, 12:27 PM
  5. reading header? results from another script
    By noViagraHere in forum PERL Miscellaneous
    Replies: 4
    Last Post: July 7th, 04:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139