[wsf-c-dev] [jira] Created: (WSFC-179) echo_blocking_dual sample
fails when username token is set.
Dushshantha Chandradasa (JIRA)
jira at wso2.org
Thu Nov 29 21:59:06 PST 2007
echo_blocking_dual sample fails when username token is set.
-----------------------------------------------------------
Key: WSFC-179
URL: http://wso2.org/jira/browse/WSFC-179
Project: WSO2 WSF/C
Issue Type: Bug
Components: Apache Rampart/C (Security)
Affects Versions: Current (nightly)
Environment: Windows
Reporter: Dushshantha Chandradasa
echo_blocking_dual sample fails when username token is set.
request message :
==============
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>http://localhost:9090/axis2/services/ut_echo</wsa:To>
<wsa:Action>http://example.com/ws/2004/09/policy/Test/EchoRequest</wsa:Action>
<wsa:ReplyTo>
<wsa:Address>http://localhost:6060/axis2/services/__ANONYMOUS_SERVICE__/__OPERATION_OUT_IN__</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>f57e2824-c8e4-4ccf-9cd9-c6417633f024</wsa:MessageID>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2007-11-30T05:55:29.859Z</wsu:Created>
<wsu:Expires>2007-11-30T06:00:29.859Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>Alice</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">CvlEmAPPailxEJygkTEH/ZAQEEU=</wsse:Password>
<wsse:Nonce>FxmdP4xhxf38gGB6zDNbSpllF4LKynMO</wsse:Nonce>
<wsu:Created>2007-11-30T05:55:30.125Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/services/echo">
<text>Hello World!</text>
</ns1:echoString>
</soapenv:Body></soapenv:Envelope
response from the service in the second channel:
======================================
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>http://localhost:6060/axis2/services/__ANONYMOUS_SERVICE__/__OPERATION_OUT_IN__</wsa:To>
<wsa:Action>http://example.com/ws/2004/09/policy/Test/EchoRequest</wsa:Action>
<wsa:From>
<wsa:Address>http://localhost:9090/axis2/services/ut_echo</wsa:Address>
</wsa:From>
<wsa:MessageID>29833b86-fb3e-4d74-953c-83dd76865e85</wsa:MessageID>
<wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">f57e2824-c8e4-4ccf-9cd9-c6417633f024</wsa:RelatesTo>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2007-11-30T05:55:30.171Z</wsu:Created>
<wsu:Expires>2007-11-30T06:00:30.171Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ns1:RecievedNode xmlns:ns1="http://ws.apache.org/axis2/rampart/samples">
<LocalName>echoString</LocalName>
</ns1:RecievedNode>
</soapenv:Body></soapenv:Envelope>
response for the above message from client side:
======================================
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soapenv:Sender</soapenv:Value>
<soapenv:Subcode>
<soapenv:Value>wsse:FailedCheck</soapenv:Value>
</soapenv:Subcode>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">Username token required. Cannot find in the security header</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail>
<wsse:ProblemSecurityHeader xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">wsse:InvalidSecurity</wsse:ProblemSecurityHeader>
</soapenv:Detail>
</soapenv:Fault>
</soapenv:Body></soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Wsf-c-dev
mailing list