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. ASP.NET
  4. Share session between soap clients

Share session between soap clients

Scheduled Pinned Locked Moved ASP.NET
csharpwcfdockerxml
4 Posts 2 Posters 1 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.
  • V Offline
    V Offline
    Vozzie2
    wrote on last edited by
    #1

    How to share a session between 2 soap clients? The soap clients are generated by VS2008 in a VB.Net Windows Froms project by making a reference. The 2 clients make requests to the same "Project" but different "WebService" classes. I don't find a way to add a cookie container or sortlike to share the session. Dim service1 As New ServiceReference1.Service1SoapClient(bhp, New ServiceModel.EndpointAddress("http://localhost/TheWebService/Service1.asmx")) Dim service2 As New ServiceReference2.Service2SoapClient(bhp, New ServiceModel.EndpointAddress("http://localhost/TheWebService/Service2.asmx"))

    It feels good to learn and achieve

    Y 1 Reply Last reply
    0
    • V Vozzie2

      How to share a session between 2 soap clients? The soap clients are generated by VS2008 in a VB.Net Windows Froms project by making a reference. The 2 clients make requests to the same "Project" but different "WebService" classes. I don't find a way to add a cookie container or sortlike to share the session. Dim service1 As New ServiceReference1.Service1SoapClient(bhp, New ServiceModel.EndpointAddress("http://localhost/TheWebService/Service1.asmx")) Dim service2 As New ServiceReference2.Service2SoapClient(bhp, New ServiceModel.EndpointAddress("http://localhost/TheWebService/Service2.asmx"))

      It feels good to learn and achieve

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      Is there anything useful for your in this CP article? Sharing Session Across Applications[^]

      Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

      V 1 Reply Last reply
      0
      • Y Yusuf

        Is there anything useful for your in this CP article? Sharing Session Across Applications[^]

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

        V Offline
        V Offline
        Vozzie2
        wrote on last edited by
        #3

        Hy, thanks but i'm afraid it's not... I guess the problem resides on the client side(SOAP Client) and not on the server. I use a BasicHttpBinding class and need to set the property "AllowCookies" to true for the client to remember the session id. Now when i want to share that session/cookie between 2 SOAP Clients, they call a different "WebService Class" in the same "WebService Project" (ASP.NET VS2008). I still did not figure out how to do this, so i made a "work around"... Not so clean but now the PHB is happy... I posted this problem earlier (VS2008 SOAP Client - losing Session problem[^]).

        It feels good to learn and achieve

        V 1 Reply Last reply
        0
        • V Vozzie2

          Hy, thanks but i'm afraid it's not... I guess the problem resides on the client side(SOAP Client) and not on the server. I use a BasicHttpBinding class and need to set the property "AllowCookies" to true for the client to remember the session id. Now when i want to share that session/cookie between 2 SOAP Clients, they call a different "WebService Class" in the same "WebService Project" (ASP.NET VS2008). I still did not figure out how to do this, so i made a "work around"... Not so clean but now the PHB is happy... I posted this problem earlier (VS2008 SOAP Client - losing Session problem[^]).

          It feels good to learn and achieve

          V Offline
          V Offline
          Vozzie2
          wrote on last edited by
          #4

          To be a little more specific, it is not a HttpApplication but a Windows Forms Application calling the web service. Maybe i better posted it in another message board. But because i am not sure the problem resides on the Client side, and it's includes ASP.NET, i posted it here.

          It feels good to learn and achieve

          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