Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i need to get one attribute out of my incomming request to my WCF Router Service.

the xml body part looks like this :
XML
<s:body>
<getdata xmlns="http://tempuri.org/">
<sc>45f8e09c-cf63-4e6b-8c7e-01e1b746e97d


i need the value of <sc>

do you have any idea how to get to this in a simple way ?

What I have tried:

message.GetBodyAttribute("sc", "http://tempuri.org/")
Posted
Updated 22-Oct-16 22:49pm

1 solution

Hi,
Please check:
this
once you have the message as an XML document in your code you could use descendants, element, ... or whatever
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900