XLINQ
-
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?
-
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?
You'll get more of a response if you put "URGENT - plz help" in your subject line...
-
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?
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.
-
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?
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.