# Namespaces

**URL:** <https://www.ruby-forum.com/t/namespaces/109554>\
**Category:** Ruby\
**Created:** [July 16, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/namespaces/109554 "2007-07-16T20:04:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raffaele\_Bello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9e5f3/32.png) [@Raffaele\_Bello](https://www.ruby-forum.com/u/Raffaele_Bello)\
**Post date:** [July 16, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/namespaces/109554/1 "2007-07-16T20:04:50Z")

</div>

Hi I’m trying to implement web services with Ruby using WS-Security.  
I added to the header the Username and Password and the webservices  
receive the following:

\<?xml version="1.0" encoding="utf-8" ?\>

\<env:Envelope xmlns:xsd=“[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)”  
xmlns:env=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)”  
xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”\>  
env:Header  
\<n1:Security xmlns:n1=“[Web Services Security Policy Language (WS-SecurityPolicy)](http://schemas.xmlsoap.org/ws/2002/12/secext/)”  
env:mustUnderstand=“0”\>  
n1:UsernameToken  
n1:Passwordbupbup\</n1:Password\>  
n1:Usernameblavla\</n1:Username\>  
\</n1:UsernameToken\>  
\</n1:Security\>  
\</env:Header\>  
env:Body  
\<n2:Hello xmlns:n2=“urn:ActionWebService”  
env:encodingStyle=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)”\>  
Cicciolina Nmber One  
\</n2:Hello\>  
\</env:Body\>  
\</env:Envelope\>

Is not bad but checking the WS-Security specifications is suppose I  
should have something like:

\<wsse:Security xmlns:wsse=“[http://schemas.xmlsoap.org/ws/2002/12/](http://schemas.xmlsoap.org/ws/2002/12/)  
secext/” env:mustUnderstand=“0”\>  
wsse:UsernameToken  
wsse:Passwordbupbup\</n1:Password\>  
wsse:Usernameblavla\</n1:Username\>  
\</wsse:UsernameToken\>  
\</wsse:Security\>

But I don’t know how to set the namespaces to don’t use the default  
n1 😕

Any suggestion?

Thanks

Raffaele
