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. Maintaining session for Web Services between SOAP requests

Maintaining session for Web Services between SOAP requests

Scheduled Pinned Locked Moved ASP.NET
wcfxmltutorialquestion
3 Posts 3 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.
  • S Offline
    S Offline
    Sumit Domyan
    wrote on last edited by
    #1

    Hi All I am sending a receiving data using SOAP Envelope. Now i want to maintain session between my SOAP requests. How to maintain session for Web Services between SOAP requests? Thanks Sumit Domyan

    J 1 Reply Last reply
    0
    • S Sumit Domyan

      Hi All I am sending a receiving data using SOAP Envelope. Now i want to maintain session between my SOAP requests. How to maintain session for Web Services between SOAP requests? Thanks Sumit Domyan

      J Offline
      J Offline
      Javier Lozano
      wrote on last edited by
      #2

      Check out this documentation page[^] on MSDN. It deals with enabling ASP.NET Session state to a web service. ~Javier Lozano

      D 1 Reply Last reply
      0
      • J Javier Lozano

        Check out this documentation page[^] on MSDN. It deals with enabling ASP.NET Session state to a web service. ~Javier Lozano

        D Offline
        D Offline
        domyansumit
        wrote on last edited by
        #3

        I am also trying to implement it using SOAP Header, but not getting success. Might be i am not sending the proper SOAP Header. My SOAP Envelope looks like

        <soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
        xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
        xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        soap:Header
        <BeginSession xmlns="http://analec.com/TestWebService/MyService" mustUnderstand="1"></BeginSession>
        wsa:Actionhttp://analec.com/TestWebService/MyService/IncrementSessionCounterX</wsa:Action>
        wsa:MessageIDuuid:42816f56-d9e5-4dfc-8606-7fd788338d31</wsa:MessageID>
        wsa:ReplyTo
        wsa:Addresshttp://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
        </wsa:ReplyTo>
        wsa:Tohttp://localhost/TestWebService/MyService.asmx</wsa:To>
        wsse:Security
        <wsu:Timestamp wsu:Id="Timestamp-4378beed-f9ec-4cb3-982d-490dabd47f36">
        wsu:Created2005-06-21T12:55:14Z</wsu:Created>
        wsu:Expires2005-06-21T13:00:14Z</wsu:Expires>
        </wsu:Timestamp>
        </wsse:Security>
        </soap:Header>
        soap:Body
        <IncrementSessionCounterX xmlns="http://analec.com/TestWebService/MyService"></IncrementSessionCounterX>
        </soap:Body>
        </soap:Envelope>

        Everything is working fine, i am getting the response envelope back, but there is no header in the response envelope. Is there anything wrong with SOAP Header? Thanks Sumit

        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