axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruchith Fernando" <ruchith.ferna...@gmail.com>
Subject Re: [Axis2] Interop with dotNet (WCF) userrname token
Date Sun, 25 Mar 2007 10:40:27 GMT
Hi,

There are nonce and created elements in the request created by your
java client. Are you using a plain text password? Also are you using
Rampart or WSS4J to add the security header?

Thanks,
Ruchith

On 3/17/07, Ayman Yasin <yasin@elm.com.sa> wrote:
>
>
>
>
> Hi all,
>
>
>
> I am trying to write a client to a dot net service written in WCF. Here is an example
of a soup request generated by a working dot net client:
>
>
>
> <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>
> <s:Header>
>
> <a:Action s:mustUnderstand="1">GetResidentDetailsByIqamaNumber</a:Action>
>
> <a:MessageID>urn:uuid:91f458c9-b135-485b-91c0-d073baf87576</a:MessageID>
>
> <a:ReplyTo>
>
> <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
>
> </a:ReplyTo>
>
> <a:To s:mustUnderstand="1">https://somemachine/MuqeemIDK.Host/Resident.svc</a:To>
>
> <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
>
> <u:Timestamp u:Id="_0">
>
> <u:Created>2007-03-12T14:09:03.319Z</u:Created>
>
> <u:Expires>2007-03-12T14:14:03.319Z</u:Expires>
>
> </u:Timestamp>
>
> <o:UsernameToken u:Id="uuid-e8a3bcbe-9f7b-484a-9815-a357528f72af-1">
>
> <o:Username>blabla</o:Username>
>
> <o:Password>blabla</o:Password>
>
> </o:UsernameToken>
>
> </o:Security>
>
> </s:Header>
>
> <s:Body>
>
> <GetResidentDetailsByIqamaNumberRequest xmlns="http://www.elm.com.sa/MuqeemIDK/2006/12">
>
> <IqamaNumber>2554545445</IqamaNumber>
>
> </GetResidentDetailsByIqamaNumberRequest>
>
> </s:Body>
>
> </s:Envelope>
>
>
>
> The client I wrote with Axis2 gives AxisFault: An Error occurred when verifying security
for the message. A sample soap request generated by my axis client follows:
>
>
>
> <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
>
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header><wsse:Security
>
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
>
> soapenv:mustUnderstand="true"> <wsu:Timestamp xmlns:wsu="http://docs.oasis-
>
> open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-19330907">
>
> <wsu:Created>2007-03-17T08:29:21.890Z</wsu:Created><wsu:Expires>
>
> 2007-03-17T08:34:21.890Z</wsu:Expires> </wsu:Timestamp><wsse:UsernameToken
>
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
>
> wsu:Id="UsernameToken-31564808"><wsse:Username><!--Removed--></wsse:Username><wsse:Password>
>
> <!--Removed--></wsse:Password><wsse:Nonce> <!--Removed--></wsse:Nonce><wsu:Created>
>
> 2007-03-17T08:29:21.875Z</wsu:Created></wsse:UsernameToken></wsse:Security><wsa:To>
>
> https://somemachine/MuqeemIDK.Host/Resident.svc</wsa:To><wsa:ReplyTo><wsa:Address>
>
> http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>
>
> urn:uuid:EF475894BC15FFD4451174120161626</wsa:MessageID><wsa:Action>
>
> GetResidentDetailsByIqamaNumber</wsa:Action></soapenv:Header> <soapenv:Body>
>
> <ns2:GetResidentDetailsByIqamaNumberRequest
>
> xmlns:ns2="http://MuqeemIDK.ServiceContracts/2006/12"><IqamaNumber
>
> xmlns="http://MuqeemIDK.ServiceContracts/2006/12">2041043791</IqamaNumber>
>
> </ns2:GetResidentDetailsByIqamaNumberRequest></soapenv:Body>
>
>
>
> I would appreciate it if somebody looked at those two requests and told me what is missing
in the axis message.
>
>
>
> Thank you
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>



-- 
www.ruchith.org
www.wso2.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message