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