gordonb
11 years agoOccasional Contributor
Duplicate username token with TestRunner
When the project is run through the GUI (Project View > TestSuites tab > Select Environment > Run), the username token is correctly sent.
When the project is run using TestRunner with -EDefault, the username token is correctly sent.
When the project is run using TestRunner with -EENV, the request has a duplicate <wsse:UsernameToken>
When the project is run using TestRunner with -EDefault, the username token is correctly sent.
When the project is run using TestRunner with -EENV, the request has a duplicate <wsse:UsernameToken>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.blahblah.com/">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-2">
<wsse:Username>blahblah</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">blahblah</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">blahblah</wsse:Nonce>
<wsu:Created>2013-11-25T16:09:41.267Z</wsu:Created>
</wsse:UsernameToken>
<wsse:UsernameToken wsu:Id="UsernameToken-1">
<wsse:Username>blahblah</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">blahblah</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>