You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by "Shweta Desai (JIRA)" <ji...@apache.org> on 2007/05/21 22:16:16 UTC

[jira] Created: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
----------------------------------------------------------------------------------------------------------------------------

                 Key: WSS-76
                 URL: https://issues.apache.org/jira/browse/WSS-76
             Project: WSS4J
          Issue Type: Task
         Environment: Servre : .net WSE 3.0
Client AXIS2 1.1.1
            Reporter: Shweta Desai
         Assigned To: Davanum Srinivas
            Priority: Blocker


Hi,

Header Requirement of connectivity is written below.

<wsse:Security soap:mustUnderstand="1">
    <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
          <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
           <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
          <wsse:Username>DMRC</wsse:Username>
           <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
            <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
      </wsse:UsernameToken>
 </wsse:Security>


But What I am able to generate is written below.

<?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
                <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
                <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
                <wsse:Username>adpinc2007r</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
                <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
             </wsse:UsernameToken>
          </wsse:Security>


Differences are here.

1. Time stamp in my heade is differn than requird.
WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
	        if(wsConfig.isPrecisionInMilliSeconds())
	        	wsConfig.setPrecisionInMilliSeconds(false);

I don't know how I can I set this WSSConfig value in header.

2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".

o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);

if I do above way, NONCE_LN over rite the value of CREATED_LN

3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
And requirement is genrate "SecurityToken" inside "UsernameToken".

Your help is very appriciated.

Thanks & Regards,
Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Closed: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai closed WSS-76.
---------------------------

    Resolution: Invalid

> "SecurityToken" inside "UsernameToken"
> --------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>            Assignee: Davanum Srinivas
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by "Werner Dittmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499289 ] 

Werner Dittmann commented on WSS-76:
------------------------------------

First of all: this error report is a bit confusing :-) . What
is the real problem? Is it really a bug? Or is it just a
question "how to do some things"?

What is the "SecurityToken" that the request needs
inside "UsernameToken"? Lokking at the "Header Requirement"
below I see a "SecurityToken" as part of the Id (Identifier),
this is free text and can be freely chosen. The only
requirement here is that the Id is unique inside the request.

Regards,
Werner




> "SecurityToken" inside "UsernameToken"
> --------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Posted by "verify@0spam.com (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498272 ] 

verify@0spam.com commented on WSS-76:
-------------------------------------

ATTENTION!

A message you recently sent to a 0Spam.com user with the subject "[jira] Created: (WSS-76) Not able to Generate head..." was not delivered because they are using the 0Spam.com anti-spam service.  Please click the link below to confirm that this is not spam. When you confirm, this message and all future messages you send will automatically be accepted.

http://www.0spam.com/v.cgi?user=1086966126&verify=965793


========================================
This is an automated message from 0Spam.com.
Please do not reply to this Email.

Looking for a free anti-spam service?
Visit us at http://www.0spam.com to find out more.


> Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Task
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499208 ] 

Shweta Desai commented on WSS-76:
---------------------------------

I am able to set first two things.
But stil Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that. 
And requirement is genrate "SecurityToken" inside "UsernameToken". 

The error I am getting is something like 

org.apache.axis2.AxisFault: The security token could not be authenticated or authorized ---> WSE565: The password provided by the SecurityTokenManager does not match the one on the incoming token.
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
	at gov.ca.edd.FsetServiceStub.SendTransmission(FsetServiceStub.java:186)
	at com.adp.ca.efiling.CA_05182007.main(CA_05182007.java:406)


> Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Re: [jira] Updated: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by Werner Dittmann <We...@t-online.de>.
First of all: this error report is a bit confusing :-) . What
is the real problem? Is it really a bug? Or is it just a
question "how to do some things"?

What is the "SecurityToken" that the request needs
inside "UsernameToken"? Lokking at the "Header Requirement"
below I see a "SecurityToken" as part of the Id (Identifier),
this is free text and can be freely chosen. The only
requirement here is that the Id is unique inside the request.

Regards,
Werner

Shweta Desai (JIRA) wrote:
>      [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Shweta Desai updated WSS-76:
> ----------------------------
> 
>     Summary: "SecurityToken" inside "UsernameToken"  (was: Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN")
> 
>> "SecurityToken" inside "UsernameToken"
>> --------------------------------------
>>
>>                 Key: WSS-76
>>                 URL: https://issues.apache.org/jira/browse/WSS-76
>>             Project: WSS4J
>>          Issue Type: Bug
>>         Environment: Servre : .net WSE 3.0
>> Client AXIS2 1.1.1
>>            Reporter: Shweta Desai
>>         Assigned To: Davanum Srinivas
>>            Priority: Blocker
>>
>> Hi,
>> Header Requirement of connectivity is written below.
>> <wsse:Security soap:mustUnderstand="1">
>>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>>           <wsse:Username>DMRC</wsse:Username>
>>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>>       </wsse:UsernameToken>
>>  </wsse:Security>
>> But What I am able to generate is written below.
>> <?xml version='1.0' encoding='UTF-8'?>
>>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>>                 <wsse:Username>DMRC</wsse:Username>
>>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>>              </wsse:UsernameToken>
>>           </wsse:Security>
>> Differences are here.
>> 1. Time stamp in my heade is differn than requird.
>> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
>> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
>> 	        if(wsConfig.isPrecisionInMilliSeconds())
>> 	        	wsConfig.setPrecisionInMilliSeconds(false);
>> I don't know how I can I set this WSSConfig value in header.
>> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
>> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
>> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
>> if I do above way, NONCE_LN over rite the value of CREATED_LN
>> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
>> And requirement is genrate "SecurityToken" inside "UsernameToken".
>> Your help is very appriciated.
>> Thanks & Regards,
>> Shweta Desai.
> 


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


Re: [jira] Updated: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by Werner Dittmann <We...@t-online.de>.
First of all: this error report is a bit confusing :-) . What
is the real problem? Is it really a bug? Or is it just a
question "how to do some things"?

What is the "SecurityToken" that the request needs
inside "UsernameToken"? Lokking at the "Header Requirement"
below I see a "SecurityToken" as part of the Id (Identifier),
this is free text and can be freely chosen. The only
requirement here is that the Id is unique inside the request.

Regards,
Werner

Shweta Desai (JIRA) wrote:
>      [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Shweta Desai updated WSS-76:
> ----------------------------
> 
>     Summary: "SecurityToken" inside "UsernameToken"  (was: Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN")
> 
>> "SecurityToken" inside "UsernameToken"
>> --------------------------------------
>>
>>                 Key: WSS-76
>>                 URL: https://issues.apache.org/jira/browse/WSS-76
>>             Project: WSS4J
>>          Issue Type: Bug
>>         Environment: Servre : .net WSE 3.0
>> Client AXIS2 1.1.1
>>            Reporter: Shweta Desai
>>         Assigned To: Davanum Srinivas
>>            Priority: Blocker
>>
>> Hi,
>> Header Requirement of connectivity is written below.
>> <wsse:Security soap:mustUnderstand="1">
>>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>>           <wsse:Username>DMRC</wsse:Username>
>>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>>       </wsse:UsernameToken>
>>  </wsse:Security>
>> But What I am able to generate is written below.
>> <?xml version='1.0' encoding='UTF-8'?>
>>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>>                 <wsse:Username>DMRC</wsse:Username>
>>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>>              </wsse:UsernameToken>
>>           </wsse:Security>
>> Differences are here.
>> 1. Time stamp in my heade is differn than requird.
>> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
>> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
>> 	        if(wsConfig.isPrecisionInMilliSeconds())
>> 	        	wsConfig.setPrecisionInMilliSeconds(false);
>> I don't know how I can I set this WSSConfig value in header.
>> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
>> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
>> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
>> if I do above way, NONCE_LN over rite the value of CREATED_LN
>> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
>> And requirement is genrate "SecurityToken" inside "UsernameToken".
>> Your help is very appriciated.
>> Thanks & Regards,
>> Shweta Desai.
> 


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


[jira] Updated: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai updated WSS-76:
----------------------------

    Summary: "SecurityToken" inside "UsernameToken"  (was: Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN")

> "SecurityToken" inside "UsernameToken"
> --------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai updated WSS-76:
----------------------------

    Issue Type: Bug  (was: Task)

> Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruchith Udayanga Fernando updated WSS-76:
-----------------------------------------

    Priority: Major  (was: Blocker)

Lets fix this post wss4j-1.5.3

> "SecurityToken" inside "UsernameToken"
> --------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>            Assignee: Davanum Srinivas
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai updated WSS-76:
----------------------------

    Issue Type: Bug  (was: Task)

> Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Posted by "verify@0spam.com (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498272 ] 

verify@0spam.com commented on WSS-76:
-------------------------------------

ATTENTION!

A message you recently sent to a 0Spam.com user with the subject "[jira] Created: (WSS-76) Not able to Generate head..." was not delivered because they are using the 0Spam.com anti-spam service.  Please click the link below to confirm that this is not spam. When you confirm, this message and all future messages you send will automatically be accepted.

http://www.0spam.com/v.cgi?user=1086966126&verify=965793


========================================
This is an automated message from 0Spam.com.
Please do not reply to this Email.

Looking for a free anti-spam service?
Visit us at http://www.0spam.com to find out more.


> Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Task
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai updated WSS-76:
----------------------------

    Summary: "SecurityToken" inside "UsernameToken"  (was: Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN")

> "SecurityToken" inside "UsernameToken"
> --------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai updated WSS-76:
----------------------------

    Description: 
Hi,

Header Requirement of connectivity is written below.

<wsse:Security soap:mustUnderstand="1">
    <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
          <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
           <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
          <wsse:Username>DMRC</wsse:Username>
           <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
            <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
      </wsse:UsernameToken>
 </wsse:Security>


But What I am able to generate is written below.

<?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
                <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
                <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
                <wsse:Username>password</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
                <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
             </wsse:UsernameToken>
          </wsse:Security>


Differences are here.

1. Time stamp in my heade is differn than requird.
WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
	        if(wsConfig.isPrecisionInMilliSeconds())
	        	wsConfig.setPrecisionInMilliSeconds(false);

I don't know how I can I set this WSSConfig value in header.

2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".

o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);

if I do above way, NONCE_LN over rite the value of CREATED_LN

3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
And requirement is genrate "SecurityToken" inside "UsernameToken".

Your help is very appriciated.

Thanks & Regards,
Shweta Desai.

  was:
Hi,

Header Requirement of connectivity is written below.

<wsse:Security soap:mustUnderstand="1">
    <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
          <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
           <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
          <wsse:Username>DMRC</wsse:Username>
           <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
            <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
      </wsse:UsernameToken>
 </wsse:Security>


But What I am able to generate is written below.

<?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
                <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
                <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
                <wsse:Username>adpinc2007r</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
                <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
             </wsse:UsernameToken>
          </wsse:Security>


Differences are here.

1. Time stamp in my heade is differn than requird.
WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
	        if(wsConfig.isPrecisionInMilliSeconds())
	        	wsConfig.setPrecisionInMilliSeconds(false);

I don't know how I can I set this WSSConfig value in header.

2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".

o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);

if I do above way, NONCE_LN over rite the value of CREATED_LN

3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
And requirement is genrate "SecurityToken" inside "UsernameToken".

Your help is very appriciated.

Thanks & Regards,
Shweta Desai.


> Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Task
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>password</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai updated WSS-76:
----------------------------

    Description: 
Hi,

Header Requirement of connectivity is written below.

<wsse:Security soap:mustUnderstand="1">
    <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
          <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
           <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
          <wsse:Username>DMRC</wsse:Username>
           <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
            <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
      </wsse:UsernameToken>
 </wsse:Security>


But What I am able to generate is written below.

<?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
                <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
                <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
                <wsse:Username>password</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
                <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
             </wsse:UsernameToken>
          </wsse:Security>


Differences are here.

1. Time stamp in my heade is differn than requird.
WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
	        if(wsConfig.isPrecisionInMilliSeconds())
	        	wsConfig.setPrecisionInMilliSeconds(false);

I don't know how I can I set this WSSConfig value in header.

2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".

o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);

if I do above way, NONCE_LN over rite the value of CREATED_LN

3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
And requirement is genrate "SecurityToken" inside "UsernameToken".

Your help is very appriciated.

Thanks & Regards,
Shweta Desai.

  was:
Hi,

Header Requirement of connectivity is written below.

<wsse:Security soap:mustUnderstand="1">
    <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
          <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
           <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
          <wsse:Username>DMRC</wsse:Username>
           <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
            <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
      </wsse:UsernameToken>
 </wsse:Security>


But What I am able to generate is written below.

<?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
                <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
                <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
                <wsse:Username>adpinc2007r</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
                <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
             </wsse:UsernameToken>
          </wsse:Security>


Differences are here.

1. Time stamp in my heade is differn than requird.
WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
	        if(wsConfig.isPrecisionInMilliSeconds())
	        	wsConfig.setPrecisionInMilliSeconds(false);

I don't know how I can I set this WSSConfig value in header.

2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".

o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);

if I do above way, NONCE_LN over rite the value of CREATED_LN

3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
And requirement is genrate "SecurityToken" inside "UsernameToken".

Your help is very appriciated.

Thanks & Regards,
Shweta Desai.


> Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Task
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>password</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai updated WSS-76:
----------------------------

    Description: 
Hi,

Header Requirement of connectivity is written below.

<wsse:Security soap:mustUnderstand="1">
    <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
          <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
           <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
          <wsse:Username>DMRC</wsse:Username>
           <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
            <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
      </wsse:UsernameToken>
 </wsse:Security>


But What I am able to generate is written below.

<?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
                <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
                <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
                <wsse:Username>DMRC</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
                <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
             </wsse:UsernameToken>
          </wsse:Security>


Differences are here.

1. Time stamp in my heade is differn than requird.
WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
	        if(wsConfig.isPrecisionInMilliSeconds())
	        	wsConfig.setPrecisionInMilliSeconds(false);

I don't know how I can I set this WSSConfig value in header.

2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".

o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);

if I do above way, NONCE_LN over rite the value of CREATED_LN

3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
And requirement is genrate "SecurityToken" inside "UsernameToken".

Your help is very appriciated.

Thanks & Regards,
Shweta Desai.

  was:
Hi,

Header Requirement of connectivity is written below.

<wsse:Security soap:mustUnderstand="1">
    <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
          <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
           <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
          <wsse:Username>DMRC</wsse:Username>
           <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
            <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
      </wsse:UsernameToken>
 </wsse:Security>


But What I am able to generate is written below.

<?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
                <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
                <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
                <wsse:Username>password</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
                <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
             </wsse:UsernameToken>
          </wsse:Security>


Differences are here.

1. Time stamp in my heade is differn than requird.
WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
	        if(wsConfig.isPrecisionInMilliSeconds())
	        	wsConfig.setPrecisionInMilliSeconds(false);

I don't know how I can I set this WSSConfig value in header.

2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".

o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);

if I do above way, NONCE_LN over rite the value of CREATED_LN

3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
And requirement is genrate "SecurityToken" inside "UsernameToken".

Your help is very appriciated.

Thanks & Regards,
Shweta Desai.


> Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Task
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by "Werner Dittmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499289 ] 

Werner Dittmann commented on WSS-76:
------------------------------------

First of all: this error report is a bit confusing :-) . What
is the real problem? Is it really a bug? Or is it just a
question "how to do some things"?

What is the "SecurityToken" that the request needs
inside "UsernameToken"? Lokking at the "Header Requirement"
below I see a "SecurityToken" as part of the Id (Identifier),
this is free text and can be freely chosen. The only
requirement here is that the Id is unique inside the request.

Regards,
Werner




> "SecurityToken" inside "UsernameToken"
> --------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499208 ] 

Shweta Desai commented on WSS-76:
---------------------------------

I am able to set first two things.
But stil Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that. 
And requirement is genrate "SecurityToken" inside "UsernameToken". 

The error I am getting is something like 

org.apache.axis2.AxisFault: The security token could not be authenticated or authorized ---> WSE565: The password provided by the SecurityTokenManager does not match the one on the incoming token.
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
	at gov.ca.edd.FsetServiceStub.SendTransmission(FsetServiceStub.java:186)
	at com.adp.ca.efiling.CA_05182007.main(CA_05182007.java:406)


> Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai updated WSS-76:
----------------------------


Hi,

Finally this problem is solved.
It was the problem at server side not the client.


Thanks,
Shweta

> "SecurityToken" inside "UsernameToken"
> --------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>            Assignee: Davanum Srinivas
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSS-76) Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"

Posted by "Shweta Desai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai updated WSS-76:
----------------------------

    Description: 
Hi,

Header Requirement of connectivity is written below.

<wsse:Security soap:mustUnderstand="1">
    <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
          <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
           <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
          <wsse:Username>DMRC</wsse:Username>
           <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
            <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
      </wsse:UsernameToken>
 </wsse:Security>


But What I am able to generate is written below.

<?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
                <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
                <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
                <wsse:Username>DMRC</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
                <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
             </wsse:UsernameToken>
          </wsse:Security>


Differences are here.

1. Time stamp in my heade is differn than requird.
WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
	        if(wsConfig.isPrecisionInMilliSeconds())
	        	wsConfig.setPrecisionInMilliSeconds(false);

I don't know how I can I set this WSSConfig value in header.

2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".

o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);

if I do above way, NONCE_LN over rite the value of CREATED_LN

3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
And requirement is genrate "SecurityToken" inside "UsernameToken".

Your help is very appriciated.

Thanks & Regards,
Shweta Desai.

  was:
Hi,

Header Requirement of connectivity is written below.

<wsse:Security soap:mustUnderstand="1">
    <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
          <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
           <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
          <wsse:Username>DMRC</wsse:Username>
           <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
            <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
            <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
      </wsse:UsernameToken>
 </wsse:Security>


But What I am able to generate is written below.

<?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
                <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
                <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
                <wsse:Username>password</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
                <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
             </wsse:UsernameToken>
          </wsse:Security>


Differences are here.

1. Time stamp in my heade is differn than requird.
WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
	        if(wsConfig.isPrecisionInMilliSeconds())
	        	wsConfig.setPrecisionInMilliSeconds(false);

I don't know how I can I set this WSSConfig value in header.

2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".

o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);

if I do above way, NONCE_LN over rite the value of CREATED_LN

3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
And requirement is genrate "SecurityToken" inside "UsernameToken".

Your help is very appriciated.

Thanks & Regards,
Shweta Desai.


> Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN"
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Task
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</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="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/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-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</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-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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