Hi,
  Actually I am not very sure about what I need. The other party is using .Net 
and I couldn't get any more information then we require WS-security and 
Ws-Adressing.

What I learnt so far..
I need to first call an Authentication service with a user name and password as 
the message body and I get back a response as  below

<AuthenticateUserResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns="http://schemas.ZZZZ.com/NGX/1/0/XAuthentication/1/0/";>
         <userId>66f38c0f-74cb-427d-91c4-f4cabdeb921d</userId>
         
<securityToken>VILLfdssM027/jJb+iaYGg+M82bLdH1CkcT0yr3rkh0iAAAAAAAAADQane0Wa3xNsxEkWxbSZ38=</securityToken>
         <domainId>7dcb8254-2cdb-4d33-bbfe-325bfa26981a</domainId>
         <created>2008-09-12T16:46:55.3196737-04:00</created>
         <expires>2008-09-12T17:16:55.3196737-04:00</expires>
</AuthenticateUserResponse>

 Then I need to use the userid and security token in the subsequent calls and 
embed them in the wsse header details as  below

      <wsu:Timestamp 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 wsu:Id="Timestamp-172be5bd-07e8-42e3-b4a8-07c13b9f7013">
         <wsu:Created>2008-09-12T12:30:09Z</wsu:Created>
         <wsu:Expires>2008-09-12T12:30:39Z</wsu:Expires>
      </wsu:Timestamp>

      <wsse:Security 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>
         <wsse:BinarySecurityToken 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 ValueType="NGX-SecurityToken-Value" 
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";
 
wsu:Id="SecurityToken-66f38c0f-74cb-427d-91c4-f4cabdeb921d">VILLfdssM027/jJb+iaYGg+M82bLdH1CkcT0yr3rkh0iAAAAAAAAADQane0Wa3xNsxEkWxbSZ38=</wsse:BinarySecurityToken>
      </wsse:Security>

Could anyone give me some hint about how to achieve this ?

Thanks a lot

Reply via email to