synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dion ye" <dionysus2...@gmail.com>
Subject questions about <head>
Date Wed, 03 Sep 2008 06:46:49 GMT
hi,

  i  meet a  questions about Head Mediator.  i want to add a security
information for outgoing messages , how can i add a Ws-Secuirity node to the
SOAP message as SOAP Head?

 for example : the WS-Security node is :

                  <wsse:Security xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
">
                            <UsernameToken xmlns="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
">
                                      <Username>Administrator</Username>
                                      <Password>Password</Password>
                           </UsernameToken>
                  </wsse:Security>



 and the result is :

<?xml version='1.0' encoding='utf-8'?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">

             <soap:Header>
                       <wsse:Security xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
">
                                 <UsernameToken xmlns="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
">

 <Username>Administrator</Username>
                                            <Password>sa</Password>
                                 </UsernameToken>
                         </wsse:Security>
            </soap:Header>

           <soap:Body>
            ........

           </soap:Body>
</soap:Envelope>



Regards,

Dion

Mime
View raw message