Forum: Ruby namespaces

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0126727ade919b3b8bd1e2c6b44d849a?d=identicon&s=25 Raffaele Bello (Guest)
on 2007-07-16 20:04
(Received via mailing list)
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"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header>
<n1:Security xmlns:n1="http://schemas.xmlsoap.org/ws/2002/12/secext/"
env:mustUnderstand="0">
<n1:UsernameToken>
<n1:Password>bupbup</n1:Password>
<n1:Username>blavla</n1:Username>
</n1:UsernameToken>
</n1:Security>
</env:Header>
<env:Body>
<n2:Hello xmlns:n2="urn:ActionWebService"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<name xsi:type="xsd:string">Cicciolina Nmber One</name>
</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/
secext/" env:mustUnderstand="0">
     <wsse:UsernameToken>
           <wsse:Password>bupbup</n1:Password>
           <wsse:Username>blavla</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
This topic is locked and can not be replied to.