Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my soap message.

CSS
<pre lang="xml">&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope&quot;&gt;
- &lt;SOAP-ENV:Header&gt;
- &lt;Delivery&gt;
  &lt;Src&gt;/AA/BB/CC&lt;/Src&gt;
  &lt;Dest&gt;/AA/BB/CC/DD&lt;/Dest&gt;
  &lt;Reply /&gt;
  &lt;/Delivery&gt;
  &lt;MTXMLMsg MsgType=&quot;REPLY&quot; /&gt;
  &lt;/SOAP-ENV:Header&gt;
- &lt;SOAP-ENV:Body&gt;
- &lt;Response&gt;
- &lt;Results xmlns=&quot;http://xacml.aa.web.com&quot;&gt;
- &lt;Result&gt;
  &lt;Decision&gt;Permit&lt;/Decision&gt;
- &lt;Status&gt;
  &lt;StatusCode Value=&quot;urn:oasis:names:tc:xacml:1.0:status:ok&quot; /&gt;
  &lt;/Status&gt;
- &lt;Obligations&gt;
- &lt;Obligation FulfillOn=&quot;Deny&quot; ObligationId=&quot;PutInCache&quot;&gt;
  &lt;AttributeAssignment AttributeId=&quot;resource&quot; DataType=&quot;http://www.w3.org/2001/XMLSchema#string&quot;&gt;Appgrp:App: grp2&lt;/AttributeAssignment&gt;
  &lt;/Obligation&gt;
- &lt;Obligation FulfillOn=&quot;Deny&quot; ObligationId=&quot;PutInCache&quot;&gt;
  &lt;AttributeAssignment AttributeId=&quot;resource&quot; DataType=&quot;http://www.w3.org/2001/XMLSchema#string&quot;&gt;Appgrp:App: grp1&lt;/AttributeAssignment&gt;
  &lt;/Obligation&gt;
- &lt;Obligation FulfillOn=&quot;Deny&quot; ObligationId=&quot;PutInCache&quot;&gt;
  &lt;AttributeAssignment AttributeId=&quot;resource&quot; DataType=&quot;http://www.w3.org/2001/XMLSchema#string&quot;&gt;Appgrp:App:grp1: subgrp1&lt;/AttributeAssignment&gt;
  &lt;/Obligation&gt;
  &lt;/Obligations&gt;
  &lt;/Results&gt;
  &lt;/Result&gt;
  &lt;/Response&gt;
  &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;</pre>




I need AttributeAssignment values (Appgrp:App: grp2,Appgrp:App: grp1,Appgrp:App:grp1: subgrp1) as array using xdocument in c#.
Posted
Comments
José Amílcar Casimiro 26-May-15 10:30am    
So, what is the problem?
gggustafson 26-May-15 11:38am    
You have placed the closing tag Result following the closing tag Results. They must be reversed.

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