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. The Lounge
  3. XLINQ

XLINQ

Scheduled Pinned Locked Moved The Lounge
xmlwcfcomquestion
4 Posts 4 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.
  • G Offline
    G Offline
    GChannon
    wrote on last edited by
    #1

    Hi, Recive the following XML message as a response to a request, I need to check if the element <SessionID></SessionID> exists for some reason the following code doesn't work, could it be something todo with the namespace? XElement xElement = <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> env:Body <dis:LoginResponse xmlns:dis="http://www.sap.com/SBO/DIS"> <SessionID>9E711364-938D-58CB-9A8F-75AC3A0E955C</SessionID> </dis:LoginResponse> </env:Body> </env:Envelope> This doesn't find the SessionID element xElement.Elements("SessionID") Any ideas?

    F P T 3 Replies Last reply
    0
    • G GChannon

      Hi, Recive the following XML message as a response to a request, I need to check if the element <SessionID></SessionID> exists for some reason the following code doesn't work, could it be something todo with the namespace? XElement xElement = <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> env:Body <dis:LoginResponse xmlns:dis="http://www.sap.com/SBO/DIS"> <SessionID>9E711364-938D-58CB-9A8F-75AC3A0E955C</SessionID> </dis:LoginResponse> </env:Body> </env:Envelope> This doesn't find the SessionID element xElement.Elements("SessionID") Any ideas?

      F Offline
      F Offline
      Fred_Smith
      wrote on last edited by
      #2

      You'll get more of a response if you put "URGENT - plz help" in your subject line...

      1 Reply Last reply
      0
      • G GChannon

        Hi, Recive the following XML message as a response to a request, I need to check if the element <SessionID></SessionID> exists for some reason the following code doesn't work, could it be something todo with the namespace? XElement xElement = <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> env:Body <dis:LoginResponse xmlns:dis="http://www.sap.com/SBO/DIS"> <SessionID>9E711364-938D-58CB-9A8F-75AC3A0E955C</SessionID> </dis:LoginResponse> </env:Body> </env:Envelope> This doesn't find the SessionID element xElement.Elements("SessionID") Any ideas?

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Actually, your problem is that 9E711364-938D-58CB-9A8F-75AC3A0E955C is the GUID of the beast. Incanting this causes Satan to rise from the bottomless pit and exit through the parallel port of any computer connected to the internet at the point where this is incanted. As a result of this, all responsible computer software companies have blocks in their software to prevent this from being uttered. Of course, Chris has the blocks in place in the appropriate forums to prevent the GUID from being incanted but you have circumvented his holy protection systems by posting this in the Lounge. You must have known what you were doing you minion you. Curse you for your unholy workings.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        1 Reply Last reply
        0
        • G GChannon

          Hi, Recive the following XML message as a response to a request, I need to check if the element <SessionID></SessionID> exists for some reason the following code doesn't work, could it be something todo with the namespace? XElement xElement = <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> env:Body <dis:LoginResponse xmlns:dis="http://www.sap.com/SBO/DIS"> <SessionID>9E711364-938D-58CB-9A8F-75AC3A0E955C</SessionID> </dis:LoginResponse> </env:Body> </env:Envelope> This doesn't find the SessionID element xElement.Elements("SessionID") Any ideas?

          T Offline
          T Offline
          Tom Delany
          wrote on last edited by
          #4

          Posting Guidelines: The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. Do not post programming questions (use the programming forums for that) and please don't post ads.

          WE ARE DYSLEXIC OF BORG. Refutance is systile. Your a$$ will be laminated.

          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