UsernameTokenAndPasswordTextSoapHeader - Invalid namespaces
Closed this issue · 1 comments
gravity00 commented
When using the header UsernameTokenAndPasswordTextSoapHeader
some namespaces not correct after serialization (at least Timestamp and contained elements).
Example:
<q1:Envelope xmlns:q1="http://schemas.xmlsoap.org/soap/envelope/">
<q1:Header>
<q1:Security d1p1:mustUnderstand="1" xmlns:d1p1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:d2p1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<q1:Timestamp d2p1:Id="_TS2865e12ee8a84c848e8324a1ff002591">
<Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2016-05-27T14:19:57.2224185Z</Created>
<Expires xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2016-05-27T14:34:57.2224185Z</Expires>
</q1:Timestamp>
<q1:UsernameToken d2p1:Id="_UT2865e12ee8a84c848e8324a1ff002591" xmlns:d2p1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<q1:Username>some-user</q1:Username>
<q1:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">some-password</q1:Password>
</q1:UsernameToken>
</q1:Security>
</q1:Header>
<q1:Body>
<q1:IsAlive xmlns:q1="http://service.company.com" />
</q1:Body>
</q1:Envelope>