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 ws_dev2001 <ws...@yahoo.com> on 2006/11/11 11:41:37 UTC

Can anyone help ?

Can someone please come out with code and declarative
xml samples for .NET WSE2.0SP3 
and WSS4J 1.5.0 wss-stock demo which ships with the
WSS4J 1.5.0 distro ?
I am attaching the client_deply.wsdd for wss4j to
.NET2.0 sp3 call which
is a success. I am stumped with the call from .NET
WSE2.0SP3 console client
to a wss4j 1.5.0 enabled axis webservice.

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

 <transport name="http"
pivot="java:org.apache.axis.transport.http.HTTPSender"/>

  <globalConfiguration >
   <requestFlow >
    <handler
type="java:org.apache.ws.axis.security.WSDoAllSender"
>	
     <parameter name="action" value="UsernameToken
Timestamp"/>	 
     <parameter name="user" value="domain\user"/>
     <parameter name="passwordCallbackClass"
value="com.wss4j.client.PWCallback"/>     
     <parameter name="addUTElements" value="Nonce
Created"/>	
     <parameter name="passwordType"
value="PasswordText"/>
     <parameter name="mustUnderstand" value="false"/>	

    </handler>
   </requestFlow >

  </globalConfiguration >

</deployment>
Many thanks,
Dev.

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,

The request message you get from the .NET client contains a Timestamp.
Therefore the value of your action parameter should be "UsernameToken
Timestamp". Now if the username token is authenticate and if the
timestamp is not expired, the wss4j enabled service will not throw an
exception.

Thanks,
Ruchith

On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> ruchith this is the request from .net-wse2.0sp3
> console client to tomcat-axis-wss4j enabled service:
> <?xml version="1.0" encoding="utf-8"?>
> <log>
>   <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>     <soap:Header>
>       <wsa:Action>
>       </wsa:Action>
>
> <wsa:MessageID>uuid:421e0d38-b63f-4655-b7ab-05287415f0d2</wsa:MessageID>
>       <wsa:ReplyTo>
>
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>       </wsa:ReplyTo>
>
> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>       <wsse:Security soap:mustUnderstand="1">
>         <wsu:Timestamp
> wsu:Id="Timestamp-9e2425ba-48b7-4622-be35-f24bd7401821">
>
> <wsu:Created>2006-11-11T14:12:22Z</wsu:Created>
>
> <wsu:Expires>2006-11-11T14:17:22Z</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-cfacea75-2a51-4b07-850b-b2cf55699f16">
>           <wsse:Username>wss4j</wsse:Username>
>           <wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>
> <wsse:Nonce>r20nS8ziREud1q1XmdQgzA==</wsse:Nonce>
>
> <wsu:Created>2006-11-11T14:12:22Z</wsu:Created>
>         </wsse:UsernameToken>
>       </wsse:Security>
>     </soap:Header>
>     <soap:Body />
>   </soap:Envelope>
> </log>
>
>
>
> response is :
> <?xml version="1.0" encoding="utf-8"?>
> <log>
>   <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Header>
> <wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="UsernameToken-20890333"><wsse:Username>wss4j</wsse:Username><wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>fTH3tiQYwQd/ApZZbTeS0Q==</wsse:Nonce><wsu:Created>2006-11-11T14:12:25.595Z</wsu:Created></wsse:UsernameToken><wsu:Timestamp
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="Timestamp-2816245"><wsu:Created>2006-11-11T14:12:25.585Z</wsu:Created><wsu:Expires>2006-11-11T14:17:25.585Z</wsu:Expires></wsu:Timestamp></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> a test</testReturn></soapenv:Body></soapenv:Envelope>
> </log>
>
>
> Do u need the axis server logs ?
>
> Also I am using a custom authenticator in my .net
> wse2.0sp3 console client application :
> let me include the full app.config :
> <?xml version="1.0" encoding="utf-8"?>
> <configuration>
>   <configSections>
>     <section name="microsoft.web.services2"
> type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration,
> Microsoft.Web.Services2, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
>   </configSections>
>   <microsoft.web.services2>
>     <security>
>       <!--securityTokenManager
> type="SecLib.CustomAuthenticator, SecLib"
> xmlns:wsse11="http://docs.oasis-open.org/wss/2005/xx/oasis-2005xx-wss-wssecurity-secext-1.1.xsd:SignatureConfirmation"
> qname="wsse11:SignatureConfirmation" /-->
>       <securityTokenManager
> type="SecLib.CustomAuthenticator, SecLib"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> qname="wsse:UsernameToken" />
>     </security>
>     <diagnostics>
>       <detailedErrors enabled="true" />
>       <trace enabled="true"
> input="d:\temp\InputTrace.webinfo"
> output="d:\temp\OutputTrace.webinfo" />
>     </diagnostics>
>   </microsoft.web.services2>
> </configuration>
>
> The code in SecLib.CustomAuthenticator is as under :
>
> using System;
> using System.Security.Permissions;
> using Microsoft.Web.Services2.Security.Tokens;
>
> namespace SecLib
> {
>         [SecurityPermissionAttribute(SecurityAction.Demand,
>                  Flags=SecurityPermissionFlag.UnmanagedCode)]
>         public class CustomAuthenticator :
> UsernameTokenManager
>         {
>                 //Returns the password or password equivalent for a
> user name
>                 protected override string
> AuthenticateToken(UsernameToken token)
>                 {
>                         if (token == null)
>                                 throw new ArgumentNullException();
>
>                         //perform a lookup in your database for the user
> name in 'token.Username'
>                         //and return the password as a string. If there is
> no match, return null.
>                         if (token.Username == "wss4j")
>                         {
>                                 return "security";
>
>                         }
>                         else
>                         {
>                                 throw new
> Microsoft.Web.Services2.Security.SecurityFault("'Unrecognized
> username'", new
> System.Xml.XmlQualifiedName("wsse:WSE-AUTH_FAILURE-001","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"));
>                         }
>                 }
>
>
>
>                 protected override void
> VerifyPlainTextPassword(UsernameToken token, string
> authenticatedPassword)
>                 {
>                         //NOOP
>                         base.VerifyPlainTextPassword(token,
> authenticatedPassword);
>                         Console.WriteLine("In
> ::VerifyPlainTextPassword()..." +
> authenticatedPassword);
>
>                 }
>
>                 protected override void
> VerifyHashedPassword(UsernameToken token, string
> authenticatedPassword)
>                 {
>                         //NOOP
>                         base.VerifyHashedPassword(token,
> authenticatedPassword);
>                         Console.WriteLine("In ::VerifyHashedPassword()..."
> + authenticatedPassword);
>                 }
>
>                 public override void VerifyToken(SecurityToken
> securityToken)
>                 {
>                         // TODO:  Add CustomAuthenticator.VerifyToken
> implementation
>                         base.VerifyToken (securityToken);
>                         Console.WriteLine("In ::VerifyToken()..." +
> securityToken.GetType());
>                 }
>         }
> }
>
>
>
> I have successfully used this custom authenticator for
> calls made to other wse2.0 sp3 .net C# webservices
> which support UsernameToken profile for ws-sec ...
>
>
> So the only glitch is in actually receivng this back
> in my console application .. ???
>
>
> --- Ruchith Fernando <ru...@gmail.com>
> wrote:
>
> > Hi Dev,
> >
> >
> >
> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > wrote:
> > > Hi Ruchith,
> > > Axis engine with wss4j plugged in is happy with
> > the
> > > relevant code commented out for the call in
> > > WSDaAllReceiver :
> > > ...
> > > if (!checkReceiverResults(wsResult, actions)) {
> > > ...
> > >
> >
> > If this is the point where WSS4J complains .. seems
> > like you have to
> > configured your "action" parameter properly.
> >
> > Please send a message generated by the .NET client,
> > we should be able
> > to figure out the security actions performed on the
> > message.
> >
> > > Maybe you can guide me to some resourceful
> > > documentation on this ..etc. ?
> >
> > If you are planning to switch to Axis2 from Axis
> > 1.x, you can find
> > documentation related to Axis2 security stuff in
> > www.wso2.net
> >
> > Thanks,
> > Ruchith
> >
> > --
> > www.ruchith.org
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > wss4j-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> > wss4j-dev-help@ws.apache.org
> >
> >
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>


-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
maybe this works ?

<service name="stock-wss-01" provider="java:RPC"
style="wrapped" use="literal">

But i still need a decent password callback
implementation for the axis server ...
which can propogate my password from the handler chain
path from the request to the response flow ...
response flow is using null password ...
So what this means is that ... currently the way my
server side callback is implmented ... the calling
clinet just needs to set the correct username ... and
he is in !!!
help me think this out ...

thanks for your help ....
greatly appreciated ....
:)


--- ws_dev2001 <ws...@yahoo.com> wrote:

> btw this is what i see in the console for the client
> app code i had sent earlier :
> <.net_console>
> retval is:
> Hit enter to end.
> </.net_console>
> 
> 
> --- Ruchith Fernando <ru...@gmail.com>
> wrote:
> 
> > What is the error message given by the .NET
> client?
> > (Maybe I  missed
> > it in the previous messages?)
> > 
> > Thanks,
> > Ruchith
> > 
> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > wrote:
> > > No luck still :((
> > >
> > > first request has mustUnderstand=false
> > > second i tried to increase wse ttl ... but yet
> no
> > luck
> > > ...
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <log>
> > >   <soap:Envelope
> > >
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> > >
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> > >
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> > >
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> > >     <soap:Header>
> > >       <wsa:Action>
> > >       </wsa:Action>
> > >
> > >
> >
>
<wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
> > >       <wsa:ReplyTo>
> > >
> > >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> > >       </wsa:ReplyTo>
> > >
> > >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> > >       <wsse:Security>
> > >         <wsu:Timestamp
> > >
> >
>
wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
> > >
> > > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> > >
> > > <wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
> > >           <wsse:Username>wss4j</wsse:Username>
> > >           <wsse:Password
> > >
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> > >
> > >
> <wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
> > >
> > > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> > >         </wsse:UsernameToken>
> > >       </wsse:Security>
> > >     </soap:Header>
> > >     <soap:Body />
> > >   </soap:Envelope>
> > >   <soap:Envelope
> > >
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> > >
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> > >
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> > >
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> > >     <soap:Header>
> > >       <wsa:Action>
> > >       </wsa:Action>
> > >
> > >
> >
>
<wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
> > >       <wsa:ReplyTo>
> > >
> > >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> > >       </wsa:ReplyTo>
> > >
> > >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> > >       <wsse:Security>
> > >         <wsu:Timestamp
> > >
> >
>
wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
> > >
> > > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> > >
> > > <wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
> > >           <wsse:Username>wss4j</wsse:Username>
> > >           <wsse:Password
> > >
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> > >
> > >
> <wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
> > >
> > > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> > >         </wsse:UsernameToken>
> > >       </wsse:Security>
> > >     </soap:Header>
> > >     <soap:Body />
> > >   </soap:Envelope>
> > > </log>
> > >
> > >
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <log>
> > >   <soapenv:Envelope
> > >
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > >     <soapenv:Header>
> > >       <wsse:Security
> > >
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
> > >         <wsu:Timestamp
> > >
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> > > wsu:Id="Timestamp-7068128">
> > >
> > > <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
> > >
> > > <wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
> > >           <wsse:Username>wss4j</wsse:Username>
> > >           <wsse:Password
> > >
> >
> 
=== message truncated ===


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
maybe this works ?

<service name="stock-wss-01" provider="java:RPC"
style="wrapped" use="literal">

But i still need a decent password callback
implementation for the axis server ...
which can propogate my password from the handler chain
path from the request to the response flow ...
response flow is using null password ...
So what this means is that ... currently the way my
server side callback is implmented ... the calling
clinet just needs to set the correct username ... and
he is in !!!
help me think this out ...

thanks for your help ....
greatly appreciated ....
:)


--- ws_dev2001 <ws...@yahoo.com> wrote:

> btw this is what i see in the console for the client
> app code i had sent earlier :
> <.net_console>
> retval is:
> Hit enter to end.
> </.net_console>
> 
> 
> --- Ruchith Fernando <ru...@gmail.com>
> wrote:
> 
> > What is the error message given by the .NET
> client?
> > (Maybe I  missed
> > it in the previous messages?)
> > 
> > Thanks,
> > Ruchith
> > 
> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > wrote:
> > > No luck still :((
> > >
> > > first request has mustUnderstand=false
> > > second i tried to increase wse ttl ... but yet
> no
> > luck
> > > ...
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <log>
> > >   <soap:Envelope
> > >
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> > >
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> > >
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> > >
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> > >     <soap:Header>
> > >       <wsa:Action>
> > >       </wsa:Action>
> > >
> > >
> >
>
<wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
> > >       <wsa:ReplyTo>
> > >
> > >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> > >       </wsa:ReplyTo>
> > >
> > >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> > >       <wsse:Security>
> > >         <wsu:Timestamp
> > >
> >
>
wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
> > >
> > > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> > >
> > > <wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
> > >           <wsse:Username>wss4j</wsse:Username>
> > >           <wsse:Password
> > >
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> > >
> > >
> <wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
> > >
> > > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> > >         </wsse:UsernameToken>
> > >       </wsse:Security>
> > >     </soap:Header>
> > >     <soap:Body />
> > >   </soap:Envelope>
> > >   <soap:Envelope
> > >
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> > >
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> > >
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> > >
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> > >     <soap:Header>
> > >       <wsa:Action>
> > >       </wsa:Action>
> > >
> > >
> >
>
<wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
> > >       <wsa:ReplyTo>
> > >
> > >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> > >       </wsa:ReplyTo>
> > >
> > >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> > >       <wsse:Security>
> > >         <wsu:Timestamp
> > >
> >
>
wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
> > >
> > > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> > >
> > > <wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
> > >           <wsse:Username>wss4j</wsse:Username>
> > >           <wsse:Password
> > >
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> > >
> > >
> <wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
> > >
> > > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> > >         </wsse:UsernameToken>
> > >       </wsse:Security>
> > >     </soap:Header>
> > >     <soap:Body />
> > >   </soap:Envelope>
> > > </log>
> > >
> > >
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <log>
> > >   <soapenv:Envelope
> > >
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > >     <soapenv:Header>
> > >       <wsse:Security
> > >
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
> > >         <wsu:Timestamp
> > >
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> > > wsu:Id="Timestamp-7068128">
> > >
> > > <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
> > >
> > > <wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
> > >           <wsse:Username>wss4j</wsse:Username>
> > >           <wsse:Password
> > >
> >
> 
=== message truncated ===


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
btw this is what i see in the console for the client
app code i had sent earlier :
<.net_console>
retval is:
Hit enter to end.
</.net_console>


--- Ruchith Fernando <ru...@gmail.com>
wrote:

> What is the error message given by the .NET client?
> (Maybe I  missed
> it in the previous messages?)
> 
> Thanks,
> Ruchith
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > No luck still :((
> >
> > first request has mustUnderstand=false
> > second i tried to increase wse ttl ... but yet no
> luck
> > ...
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <log>
> >   <soap:Envelope
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> >     <soap:Header>
> >       <wsa:Action>
> >       </wsa:Action>
> >
> >
>
<wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
> >       <wsa:ReplyTo>
> >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >       </wsa:ReplyTo>
> >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> >       <wsse:Security>
> >         <wsu:Timestamp
> >
>
wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
> >
> > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soap:Header>
> >     <soap:Body />
> >   </soap:Envelope>
> >   <soap:Envelope
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> >     <soap:Header>
> >       <wsa:Action>
> >       </wsa:Action>
> >
> >
>
<wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
> >       <wsa:ReplyTo>
> >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >       </wsa:ReplyTo>
> >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> >       <wsse:Security>
> >         <wsu:Timestamp
> >
>
wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
> >
> > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soap:Header>
> >     <soap:Body />
> >   </soap:Envelope>
> > </log>
> >
> >
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <log>
> >   <soapenv:Envelope
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >     <soapenv:Header>
> >       <wsse:Security
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
> >         <wsu:Timestamp
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> > wsu:Id="Timestamp-7068128">
> >
> > <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>uDobq5lc0L2yDvE4yebYrw==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soapenv:Header>
> >     <soapenv:Body>
> >       <testReturn>Just a test</testReturn>
> >     </soapenv:Body>
> >   </soapenv:Envelope>
> >   <soapenv:Envelope
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <soapenv:Header>
> > <wsse:Security
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> >
>
wsu:Id="Timestamp-9564382"><wsu:Created>2006-11-11T15:10:29Z</wsu:Created><wsu:Expires>2006-11-11T15:15:29Z</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-32045680"><wsse:Username>wss4j</wsse:Username><wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>bfDuGp/QoOnlB4ZC8CuVgA==</wsse:Nonce><wsu:Created>2006-11-11T15:10:29Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> > a
> test</testReturn></soapenv:Body></soapenv:Envelope>
> > </log>
> >
> >
> > I am concerned with the prettyXML being logged ...
> > btw i am using jdk1.4.2_02 supplied with bea
> weblogic
> > 8.1 sp3 ...
> > also i am using zone alarm firewall ....
> >
> > just thot i wd add some maybe irrelevant info..
> > what is the significance of :
> 
=== message truncated ===


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
btw this is what i see in the console for the client
app code i had sent earlier :
<.net_console>
retval is:
Hit enter to end.
</.net_console>


--- Ruchith Fernando <ru...@gmail.com>
wrote:

> What is the error message given by the .NET client?
> (Maybe I  missed
> it in the previous messages?)
> 
> Thanks,
> Ruchith
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > No luck still :((
> >
> > first request has mustUnderstand=false
> > second i tried to increase wse ttl ... but yet no
> luck
> > ...
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <log>
> >   <soap:Envelope
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> >     <soap:Header>
> >       <wsa:Action>
> >       </wsa:Action>
> >
> >
>
<wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
> >       <wsa:ReplyTo>
> >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >       </wsa:ReplyTo>
> >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> >       <wsse:Security>
> >         <wsu:Timestamp
> >
>
wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
> >
> > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soap:Header>
> >     <soap:Body />
> >   </soap:Envelope>
> >   <soap:Envelope
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> >     <soap:Header>
> >       <wsa:Action>
> >       </wsa:Action>
> >
> >
>
<wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
> >       <wsa:ReplyTo>
> >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >       </wsa:ReplyTo>
> >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> >       <wsse:Security>
> >         <wsu:Timestamp
> >
>
wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
> >
> > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soap:Header>
> >     <soap:Body />
> >   </soap:Envelope>
> > </log>
> >
> >
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <log>
> >   <soapenv:Envelope
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >     <soapenv:Header>
> >       <wsse:Security
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
> >         <wsu:Timestamp
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> > wsu:Id="Timestamp-7068128">
> >
> > <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>uDobq5lc0L2yDvE4yebYrw==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soapenv:Header>
> >     <soapenv:Body>
> >       <testReturn>Just a test</testReturn>
> >     </soapenv:Body>
> >   </soapenv:Envelope>
> >   <soapenv:Envelope
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <soapenv:Header>
> > <wsse:Security
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> >
>
wsu:Id="Timestamp-9564382"><wsu:Created>2006-11-11T15:10:29Z</wsu:Created><wsu:Expires>2006-11-11T15:15:29Z</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-32045680"><wsse:Username>wss4j</wsse:Username><wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>bfDuGp/QoOnlB4ZC8CuVgA==</wsse:Nonce><wsu:Created>2006-11-11T15:10:29Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> > a
> test</testReturn></soapenv:Body></soapenv:Envelope>
> > </log>
> >
> >
> > I am concerned with the prettyXML being logged ...
> > btw i am using jdk1.4.2_02 supplied with bea
> weblogic
> > 8.1 sp3 ...
> > also i am using zone alarm firewall ....
> >
> > just thot i wd add some maybe irrelevant info..
> > what is the significance of :
> 
=== message truncated ===


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
There is no error/exception.. As i had said everything
flows through ... including the logs....

Just that a call to ws-operation test is supposed to
return me back the string "Just a test" or something
like that ...
This string is logged on wse2.0sp3 .net console app
client ... but is not shown in the console !!!
so i am not getting the return string in .net client
!!!!

i get empty string most probably but i dont know as
the logs tell me i have my string !!!


--- Ruchith Fernando <ru...@gmail.com>
wrote:

> What is the error message given by the .NET client?
> (Maybe I  missed
> it in the previous messages?)
> 
> Thanks,
> Ruchith
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > No luck still :((
> >
> > first request has mustUnderstand=false
> > second i tried to increase wse ttl ... but yet no
> luck
> > ...
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <log>
> >   <soap:Envelope
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> >     <soap:Header>
> >       <wsa:Action>
> >       </wsa:Action>
> >
> >
>
<wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
> >       <wsa:ReplyTo>
> >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >       </wsa:ReplyTo>
> >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> >       <wsse:Security>
> >         <wsu:Timestamp
> >
>
wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
> >
> > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soap:Header>
> >     <soap:Body />
> >   </soap:Envelope>
> >   <soap:Envelope
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> >     <soap:Header>
> >       <wsa:Action>
> >       </wsa:Action>
> >
> >
>
<wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
> >       <wsa:ReplyTo>
> >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >       </wsa:ReplyTo>
> >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> >       <wsse:Security>
> >         <wsu:Timestamp
> >
>
wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
> >
> > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soap:Header>
> >     <soap:Body />
> >   </soap:Envelope>
> > </log>
> >
> >
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <log>
> >   <soapenv:Envelope
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >     <soapenv:Header>
> >       <wsse:Security
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
> >         <wsu:Timestamp
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> > wsu:Id="Timestamp-7068128">
> >
> > <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>uDobq5lc0L2yDvE4yebYrw==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soapenv:Header>
> >     <soapenv:Body>
> >       <testReturn>Just a test</testReturn>
> >     </soapenv:Body>
> >   </soapenv:Envelope>
> >   <soapenv:Envelope
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <soapenv:Header>
> > <wsse:Security
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> >
>
wsu:Id="Timestamp-9564382"><wsu:Created>2006-11-11T15:10:29Z</wsu:Created><wsu:Expires>2006-11-11T15:15:29Z</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-32045680"><wsse:Username>wss4j</wsse:Username><wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>bfDuGp/QoOnlB4ZC8CuVgA==</wsse:Nonce><wsu:Created>2006-11-11T15:10:29Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> > a
> test</testReturn></soapenv:Body></soapenv:Envelope>
> > </log>
> >
> >
> > I am concerned with the prettyXML being logged ...
> > btw i am using jdk1.4.2_02 supplied with bea
> weblogic
> > 8.1 sp3 ...
> > also i am using zone alarm firewall ....
> >
> > just thot i wd add some maybe irrelevant info..
> > what is the significance of :
> 
=== message truncated ===



		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
There is no error/exception.. As i had said everything
flows through ... including the logs....

Just that a call to ws-operation test is supposed to
return me back the string "Just a test" or something
like that ...
This string is logged on wse2.0sp3 .net console app
client ... but is not shown in the console !!!
so i am not getting the return string in .net client
!!!!

i get empty string most probably but i dont know as
the logs tell me i have my string !!!


--- Ruchith Fernando <ru...@gmail.com>
wrote:

> What is the error message given by the .NET client?
> (Maybe I  missed
> it in the previous messages?)
> 
> Thanks,
> Ruchith
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > No luck still :((
> >
> > first request has mustUnderstand=false
> > second i tried to increase wse ttl ... but yet no
> luck
> > ...
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <log>
> >   <soap:Envelope
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> >     <soap:Header>
> >       <wsa:Action>
> >       </wsa:Action>
> >
> >
>
<wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
> >       <wsa:ReplyTo>
> >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >       </wsa:ReplyTo>
> >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> >       <wsse:Security>
> >         <wsu:Timestamp
> >
>
wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
> >
> > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soap:Header>
> >     <soap:Body />
> >   </soap:Envelope>
> >   <soap:Envelope
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> >     <soap:Header>
> >       <wsa:Action>
> >       </wsa:Action>
> >
> >
>
<wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
> >       <wsa:ReplyTo>
> >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >       </wsa:ReplyTo>
> >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> >       <wsse:Security>
> >         <wsu:Timestamp
> >
>
wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
> >
> > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soap:Header>
> >     <soap:Body />
> >   </soap:Envelope>
> > </log>
> >
> >
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <log>
> >   <soapenv:Envelope
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >     <soapenv:Header>
> >       <wsse:Security
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
> >         <wsu:Timestamp
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> > wsu:Id="Timestamp-7068128">
> >
> > <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>uDobq5lc0L2yDvE4yebYrw==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soapenv:Header>
> >     <soapenv:Body>
> >       <testReturn>Just a test</testReturn>
> >     </soapenv:Body>
> >   </soapenv:Envelope>
> >   <soapenv:Envelope
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <soapenv:Header>
> > <wsse:Security
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> >
>
wsu:Id="Timestamp-9564382"><wsu:Created>2006-11-11T15:10:29Z</wsu:Created><wsu:Expires>2006-11-11T15:15:29Z</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-32045680"><wsse:Username>wss4j</wsse:Username><wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>bfDuGp/QoOnlB4ZC8CuVgA==</wsse:Nonce><wsu:Created>2006-11-11T15:10:29Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> > a
> test</testReturn></soapenv:Body></soapenv:Envelope>
> > </log>
> >
> >
> > I am concerned with the prettyXML being logged ...
> > btw i am using jdk1.4.2_02 supplied with bea
> weblogic
> > 8.1 sp3 ...
> > also i am using zone alarm firewall ....
> >
> > just thot i wd add some maybe irrelevant info..
> > what is the significance of :
> 
=== message truncated ===



		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

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


Re: Can anyone help ?

Posted by sh_santosh <sa...@gmail.com>.
 Hi all,

I have to write java client program that will invoke .Net web services
(enabled WSE 3.0).
I am using Axis 1.3 and jakarta-tomcat-5.0.28 and WSS4J.

I have to add SOAP Header in request -

I am not able to generate - These tags inside the SOAP header.

      <wsa:Action>
			http://www.test.com/api/ws/internal/testInfo
		</wsa:Action>
		<wsa:MessageID>
			urn:uuid:ca7e475b-484a-4bb8-974f-eb573438bb43
		</wsa:MessageID>
		<wsa:ReplyTo>
			<wsa:Address>
				http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
			</wsa:Address>
		</wsa:ReplyTo>
		<wsa:To>
			http://localhost:8080/testapi/testwsapi.asmx
		</wsa:To>

 

Please see my client-config.wsdd
-
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <transport name="http"
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
  <globalConfiguration>
   <requestFlow>
    <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
     <parameter name="action" value="Timestamp UsernameToken"/>
     <parameter name="user" value="santosh.ncstk@gmail.com"/>
     <parameter name="passwordCallbackClass"
value="com.test.www.api.booking.ws.internal.PWCallback"/>
     <parameter name="passwordType" value="PasswordText"/>
     <parameter name="password" value="Copix13Z"/>
     <parameter name="mustUnderstand" value="true" />
     <parameter name="addUTElements" value="Nonce Created"/>
    </handler>
   </requestFlow>
  </globalConfiguration>
</deployment>

What change required to generate  <wsa:Action>, </wsa:MessageID> and
<wsa:To> inside the SOAP header.

Please see the required soap structure  and Please suggest the changes

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
	<soap:Header>
		<wsa:Action>
			http://www.test.com/api/ws/internal/testInfo
		</wsa:Action>
		<wsa:MessageID>
			urn:uuid:ca7e475b-484a-4bb8-974f-eb573438bb43
		</wsa:MessageID>
		<wsa:ReplyTo>
			<wsa:Address>
				http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
			</wsa:Address>
		</wsa:ReplyTo>
		<wsa:To>
			http://localhost:8080/testapi/testwsapi.asmx
		</wsa:To>
		<wsse:Security soap:mustUnderstand="1">
			<wsu:Timestamp
				wsu:Id="Timestamp-c70b72e2-561c-4b18-bc4b-acf8c3896b14">
				<wsu:Created>2008-02-28T15:33:56Z</wsu:Created>
				<wsu:Expires>2008-02-28T15:38:56Z</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-9e141676-2400-4c6d-ab87-1d5af61729b3">
				<wsse:Username>santosh.ncstk@gmail.com</wsse:Username>
				<wsse:Password			
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
					SomePassword
				</wsse:Password>
				<wsse:Nonce>5SImW1gykzSPdeiWzcCdaQ==</wsse:Nonce>
				<wsu:Created>2008-02-28T15:33:56Z</wsu:Created>
			</wsse:UsernameToken>
		</wsse:Security>
	</soap:Header>
	<soap:Body>	
		<SAN_Info
			xmlns="http://www.test.com/api/testing/ws/internal">
			<SAN_Request VendorId="TestVendor"
				VendorPassword="SomePassword"
				xmlns="http://www.test.com/api/testing/testinforequest">
				<Brand>SANBUS</Brand>
				<TourCode>GE</TourCode>
				<Code>80135</Code>
			</SAN_Request>
		</SAN_Info>
	</soap:Body>
</soap:Envelope>


Please guide me.


Regards
Santosh



Ruchith Fernando wrote:
> 
> What is the error message given by the .NET client? (Maybe I  missed
> it in the previous messages?)
> 
> Thanks,
> Ruchith
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
>> No luck still :((
>>
>> first request has mustUnderstand=false
>> second i tried to increase wse ttl ... but yet no luck
>> ...
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <log>
>>   <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
>> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
>> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>>     <soap:Header>
>>       <wsa:Action>
>>       </wsa:Action>
>>
>> <wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
>>       <wsa:ReplyTo>
>>
>> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>>       </wsa:ReplyTo>
>>
>> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>>       <wsse:Security>
>>         <wsu:Timestamp
>> wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
>>
>> <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
>>
>> <wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
>>           <wsse:Username>wss4j</wsse:Username>
>>           <wsse:Password
>> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>>
>> <wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
>>
>> <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
>>         </wsse:UsernameToken>
>>       </wsse:Security>
>>     </soap:Header>
>>     <soap:Body />
>>   </soap:Envelope>
>>   <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
>> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
>> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>>     <soap:Header>
>>       <wsa:Action>
>>       </wsa:Action>
>>
>> <wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
>>       <wsa:ReplyTo>
>>
>> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>>       </wsa:ReplyTo>
>>
>> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>>       <wsse:Security>
>>         <wsu:Timestamp
>> wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
>>
>> <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
>>
>> <wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
>>           <wsse:Username>wss4j</wsse:Username>
>>           <wsse:Password
>> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>>
>> <wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
>>
>> <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
>>         </wsse:UsernameToken>
>>       </wsse:Security>
>>     </soap:Header>
>>     <soap:Body />
>>   </soap:Envelope>
>> </log>
>>
>>
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <log>
>>   <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>     <soapenv:Header>
>>       <wsse:Security
>> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
>>         <wsu:Timestamp
>> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
>> wsu:Id="Timestamp-7068128">
>>
>> <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
>>
>> <wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
>>           <wsse:Username>wss4j</wsse:Username>
>>           <wsse:Password
>> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>>
>> <wsse:Nonce>uDobq5lc0L2yDvE4yebYrw==</wsse:Nonce>
>>
>> <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
>>         </wsse:UsernameToken>
>>       </wsse:Security>
>>     </soapenv:Header>
>>     <soapenv:Body>
>>       <testReturn>Just a test</testReturn>
>>     </soapenv:Body>
>>   </soapenv:Envelope>
>>   <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> <soapenv:Header>
>> <wsse:Security
>> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
>> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
>> wsu:Id="Timestamp-9564382"><wsu:Created>2006-11-11T15:10:29Z</wsu:Created><wsu:Expires>2006-11-11T15:15:29Z</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-32045680"><wsse:Username>wss4j</wsse:Username><wsse:Password
>> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>bfDuGp/QoOnlB4ZC8CuVgA==</wsse:Nonce><wsu:Created>2006-11-11T15:10:29Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
>> a test</testReturn></soapenv:Body></soapenv:Envelope>
>> </log>
>>
>>
>> I am concerned with the prettyXML being logged ...
>> btw i am using jdk1.4.2_02 supplied with bea weblogic
>> 8.1 sp3 ...
>> also i am using zone alarm firewall ....
>>
>> just thot i wd add some maybe irrelevant info..
>> what is the significance of :
>>
>>         <parameter name="precisionInMilliseconds"
>> value="false" />
>>
>> ???
>>
>> I will try to look this up in the meantime as well ...
>>
>> And the C# client code :
>>
>> using System;
>> using Microsoft.Web.Services2;
>> using Microsoft.Web.Services2.Security.Tokens;
>>
>> namespace WSE_TesterClient
>> {
>>         /// <summary>
>>         /// Summary description for Class1.
>>         /// </summary>
>>         class Client
>>         {
>>                 /// <summary>
>>                 /// The main entry point for the application.
>>                 /// </summary>
>>                 [STAThread]
>>                 static void Main(string[] args)
>>                 {
>>
>> //                      Console.Write("Enter Stcok Symbol: ");
>> //                      string symbol = Console.ReadLine();
>> //                      Console.Write("Enter Name: ");
>> //                      string name = Console.ReadLine();
>> //                      Console.Write("Enter Password: ");
>> //                      string password = Console.ReadLine();
>>
>>
>>                         axis_wss.StockQuoteServiceServiceWse proxy = new
>> WSE_TesterClient.axis_wss.StockQuoteServiceServiceWse();
>>                         proxy.RequestSoapContext.Security.Tokens.Add(new
>> UsernameToken("wss4j",
>>                                 "security",
>> PasswordOption.SendPlainText));
>>
>> proxy.RequestSoapContext.Security.Timestamp.TtlInSeconds
>> = 30000;
>>                         proxy.RequestSoapContext.Security.MustUnderstand
>> =
>> false;
>>
>>                         //Console.WriteLine(proxy.getQuote(symbol));
>>                         string retval = proxy.test();
>>                         Console.WriteLine("retval is: " + retval);
>>                         Console.WriteLine("Hit enter to end.");
>>                         Console.ReadLine();
>>
>>                 }
>>         }
>> }
>>
>>
>>
>>
>>
>>
>> --- Ruchith Fernando <ru...@gmail.com>
>> wrote:
>>
>> > PLease try adding :
>> >
>> > <parameter name="precisionInMilliseconds"
>> > value="false" />
>> >
>> > into the WSDoAllSender configuration.
>> >
>> > Thanks,
>> > Ruchith
>> >
>> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
>> > wrote:
>> > > unfort ... still no luck ...:
>> > > here goes :
>> > >
>> > > request :
>> > > =========
>> > > <soap:Envelope
>> > >
>> >
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>> > >
>> >
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> > >
>> >
>> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
>> > >
>> >
>> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
>> > >
>> >
>> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>> > >     <soap:Header>
>> > >       <wsa:Action>
>> > >       </wsa:Action>
>> > >
>> > >
>> >
>> <wsa:MessageID>uuid:15a2ef5c-408f-411e-9e82-b66ba0216076</wsa:MessageID>
>> > >       <wsa:ReplyTo>
>> > >
>> > >
>> >
>> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>> > >       </wsa:ReplyTo>
>> > >
>> > >
>> >
>> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>> > >       <wsse:Security soap:mustUnderstand="1">
>> > >         <wsu:Timestamp
>> > >
>> >
>> wsu:Id="Timestamp-89ae3aaa-f8bc-4b2f-a866-fd22a252f8fd">
>> > >
>> > > <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
>> > >
>> > > <wsu:Expires>2006-11-11T14:39:02Z</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-5f1c6b24-b5cd-48a6-8224-7ab128e348d7">
>> > >           <wsse:Username>wss4j</wsse:Username>
>> > >           <wsse:Password
>> > >
>> >
>> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>> > >
>> > > <wsse:Nonce>7lQDoG6gSUUf/md/2M1LLg==</wsse:Nonce>
>> > >
>> > > <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
>> > >         </wsse:UsernameToken>
>> > >       </wsse:Security>
>> > >     </soap:Header>
>> > >     <soap:Body />
>> > >   </soap:Envelope>
>> > >
>> > > response:
>> > > =========
>> > >   <soapenv:Envelope
>> > >
>> >
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> > >
>> >
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> > > <soapenv:Header>
>> > > <wsse:Security
>> > >
>> >
>> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
>> > >
>> >
>> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
>> > >
>> >
>> wsu:Id="Timestamp-20859482"><wsu:Created>2006-11-11T14:34:13.656Z</wsu:Created><wsu:Expires>2006-11-11T14:39:13.656Z</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-23903639"><wsse:Username>wss4j</wsse:Username><wsse:Password
>> > >
>> >
>> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>gPFA1VC7EAPxq0ZJLJZ1dA==</wsse:Nonce><wsu:Created>2006-11-11T14:34:13.636Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
>> > > a
>> > test</testReturn></soapenv:Body></soapenv:Envelope>
>> > >
>> > > trust me ... i have tried almost all combinations
>> > and
>> > > sequences ...
>> > >
>> > > maybe i shd try wse3.0 (eek !) ?
>> > > :)
>> > > --- Ruchith Fernando <ru...@gmail.com>
>> > > wrote:
>> > >
>> > > > Hi,
>> > > >
>> > > > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
>> > > > wrote:
>> > > > > Hey Ruchith,
>> > > > > Are you saying Rampart+Axis2 is what I must
>> > look
>> > > > at ?
>> > > >
>> > > > We have WS-Security support for both Axis1.x and
>> > > > Axis2.
>> > > > I'm not sure about any other documentation on
>> > Axis
>> > > > 1.x other than what
>> > > > is available with wss4j and in the wiki
>> > [1],[2],[3].
>> > > >
>> > > > However we do have some articles/tutorials on
>> > Axis2
>> > > > + rampart stuff :-)
>> > > >
>> > > > Thanks,
>> > > > Ruchith
>> > > >
>> > > > [1]
>> > http://wiki.apache.org/ws/FrontPage/WsFx/wssec
>> > > > [2]
>> > > >
>> > http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
>> > > > [3]
>> > > >
>> > >
>> >
>> http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
>> > > > > I think the problem is with the qname in
>> > wse2.0
>> > > > sp3...
>> > > > > unfortunately i am not brave enough to upgrade
>> > to
>> > > > > wse3.0 right now ...
>> > > > > :)
>> > > > > --- Ruchith Fernando
>> > <ru...@gmail.com>
>> > > > > wrote:
>> > > > >
>> > > > > > Hi Dev,
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > On 11/11/06, ws_dev2001
>> > <ws...@yahoo.com>
>> > > > > > wrote:
>> > > > > > > Hi Ruchith,
>> > > > > > > Axis engine with wss4j plugged in is happy
>> > > > with
>> > > > > > the
>> > > > > > > relevant code commented out for the call
>> > in
>> > > > > > > WSDaAllReceiver :
>> > > > > > > ...
>> > > > > > > if (!checkReceiverResults(wsResult,
>> > actions))
>> > > > {
>> > > > > > > ...
>> > > > > > >
>> > > > > >
>> > > > > > If this is the point where WSS4J complains
>> > ..
>> > > > seems
>> > > > > > like you have to
>> > > > > > configured your "action" parameter properly.
>> > > > > >
>> > > > > > Please send a message generated by the .NET
>> > > > client,
>> > > > > > we should be able
>> > > > > > to figure out the security actions performed
>> > on
>> > > > the
>> > > > > > message.
>> > > > > >
>> > > > > > > Maybe you can guide me to some resourceful
>> > > > > > > documentation on this ..etc. ?
>> > > > > >
>> > > > > > If you are planning to switch to Axis2 from
>> > Axis
>> > > > > > 1.x, you can find
>> > > > > > documentation related to Axis2 security
>> > stuff in
>> > > > > > www.wso2.net
>> > > > > >
>> > > > > > Thanks,
>> > > > > > Ruchith
>> > > > > >
>> > > > > > --
>> > > > > > www.ruchith.org
>> > > > > >
>> > > > > >
>> >
>> === message truncated ===
>>
>>
>> Send instant messages to your online friends
>> http://uk.messenger.yahoo.com
>>
> 
> 
> -- 
> www.ruchith.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Can-anyone-help---tp7291413p18343815.html
Sent from the WSS4J mailing list archive at Nabble.com.


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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
What is the error message given by the .NET client? (Maybe I  missed
it in the previous messages?)

Thanks,
Ruchith

On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> No luck still :((
>
> first request has mustUnderstand=false
> second i tried to increase wse ttl ... but yet no luck
> ...
>
> <?xml version="1.0" encoding="utf-8"?>
> <log>
>   <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>     <soap:Header>
>       <wsa:Action>
>       </wsa:Action>
>
> <wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
>       <wsa:ReplyTo>
>
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>       </wsa:ReplyTo>
>
> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>       <wsse:Security>
>         <wsu:Timestamp
> wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
>
> <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
>
> <wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
>           <wsse:Username>wss4j</wsse:Username>
>           <wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>
> <wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
>
> <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
>         </wsse:UsernameToken>
>       </wsse:Security>
>     </soap:Header>
>     <soap:Body />
>   </soap:Envelope>
>   <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>     <soap:Header>
>       <wsa:Action>
>       </wsa:Action>
>
> <wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
>       <wsa:ReplyTo>
>
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>       </wsa:ReplyTo>
>
> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>       <wsse:Security>
>         <wsu:Timestamp
> wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
>
> <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
>
> <wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
>           <wsse:Username>wss4j</wsse:Username>
>           <wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>
> <wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
>
> <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
>         </wsse:UsernameToken>
>       </wsse:Security>
>     </soap:Header>
>     <soap:Body />
>   </soap:Envelope>
> </log>
>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <log>
>   <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>     <soapenv:Header>
>       <wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
>         <wsu:Timestamp
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="Timestamp-7068128">
>
> <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
>
> <wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
>           <wsse:Username>wss4j</wsse:Username>
>           <wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>
> <wsse:Nonce>uDobq5lc0L2yDvE4yebYrw==</wsse:Nonce>
>
> <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
>         </wsse:UsernameToken>
>       </wsse:Security>
>     </soapenv:Header>
>     <soapenv:Body>
>       <testReturn>Just a test</testReturn>
>     </soapenv:Body>
>   </soapenv:Envelope>
>   <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Header>
> <wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="Timestamp-9564382"><wsu:Created>2006-11-11T15:10:29Z</wsu:Created><wsu:Expires>2006-11-11T15:15:29Z</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-32045680"><wsse:Username>wss4j</wsse:Username><wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>bfDuGp/QoOnlB4ZC8CuVgA==</wsse:Nonce><wsu:Created>2006-11-11T15:10:29Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> a test</testReturn></soapenv:Body></soapenv:Envelope>
> </log>
>
>
> I am concerned with the prettyXML being logged ...
> btw i am using jdk1.4.2_02 supplied with bea weblogic
> 8.1 sp3 ...
> also i am using zone alarm firewall ....
>
> just thot i wd add some maybe irrelevant info..
> what is the significance of :
>
>         <parameter name="precisionInMilliseconds"
> value="false" />
>
> ???
>
> I will try to look this up in the meantime as well ...
>
> And the C# client code :
>
> using System;
> using Microsoft.Web.Services2;
> using Microsoft.Web.Services2.Security.Tokens;
>
> namespace WSE_TesterClient
> {
>         /// <summary>
>         /// Summary description for Class1.
>         /// </summary>
>         class Client
>         {
>                 /// <summary>
>                 /// The main entry point for the application.
>                 /// </summary>
>                 [STAThread]
>                 static void Main(string[] args)
>                 {
>
> //                      Console.Write("Enter Stcok Symbol: ");
> //                      string symbol = Console.ReadLine();
> //                      Console.Write("Enter Name: ");
> //                      string name = Console.ReadLine();
> //                      Console.Write("Enter Password: ");
> //                      string password = Console.ReadLine();
>
>
>                         axis_wss.StockQuoteServiceServiceWse proxy = new
> WSE_TesterClient.axis_wss.StockQuoteServiceServiceWse();
>                         proxy.RequestSoapContext.Security.Tokens.Add(new
> UsernameToken("wss4j",
>                                 "security", PasswordOption.SendPlainText));
>
> proxy.RequestSoapContext.Security.Timestamp.TtlInSeconds
> = 30000;
>                         proxy.RequestSoapContext.Security.MustUnderstand =
> false;
>
>                         //Console.WriteLine(proxy.getQuote(symbol));
>                         string retval = proxy.test();
>                         Console.WriteLine("retval is: " + retval);
>                         Console.WriteLine("Hit enter to end.");
>                         Console.ReadLine();
>
>                 }
>         }
> }
>
>
>
>
>
>
> --- Ruchith Fernando <ru...@gmail.com>
> wrote:
>
> > PLease try adding :
> >
> > <parameter name="precisionInMilliseconds"
> > value="false" />
> >
> > into the WSDoAllSender configuration.
> >
> > Thanks,
> > Ruchith
> >
> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > wrote:
> > > unfort ... still no luck ...:
> > > here goes :
> > >
> > > request :
> > > =========
> > > <soap:Envelope
> > >
> >
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> > >
> >
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> > >
> >
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> > >
> >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> > >     <soap:Header>
> > >       <wsa:Action>
> > >       </wsa:Action>
> > >
> > >
> >
> <wsa:MessageID>uuid:15a2ef5c-408f-411e-9e82-b66ba0216076</wsa:MessageID>
> > >       <wsa:ReplyTo>
> > >
> > >
> >
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> > >       </wsa:ReplyTo>
> > >
> > >
> >
> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> > >       <wsse:Security soap:mustUnderstand="1">
> > >         <wsu:Timestamp
> > >
> >
> wsu:Id="Timestamp-89ae3aaa-f8bc-4b2f-a866-fd22a252f8fd">
> > >
> > > <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
> > >
> > > <wsu:Expires>2006-11-11T14:39:02Z</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-5f1c6b24-b5cd-48a6-8224-7ab128e348d7">
> > >           <wsse:Username>wss4j</wsse:Username>
> > >           <wsse:Password
> > >
> >
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> > >
> > > <wsse:Nonce>7lQDoG6gSUUf/md/2M1LLg==</wsse:Nonce>
> > >
> > > <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
> > >         </wsse:UsernameToken>
> > >       </wsse:Security>
> > >     </soap:Header>
> > >     <soap:Body />
> > >   </soap:Envelope>
> > >
> > > response:
> > > =========
> > >   <soapenv:Envelope
> > >
> >
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > <soapenv:Header>
> > > <wsse:Security
> > >
> >
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> > >
> >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> > >
> >
> wsu:Id="Timestamp-20859482"><wsu:Created>2006-11-11T14:34:13.656Z</wsu:Created><wsu:Expires>2006-11-11T14:39:13.656Z</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-23903639"><wsse:Username>wss4j</wsse:Username><wsse:Password
> > >
> >
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>gPFA1VC7EAPxq0ZJLJZ1dA==</wsse:Nonce><wsu:Created>2006-11-11T14:34:13.636Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> > > a
> > test</testReturn></soapenv:Body></soapenv:Envelope>
> > >
> > > trust me ... i have tried almost all combinations
> > and
> > > sequences ...
> > >
> > > maybe i shd try wse3.0 (eek !) ?
> > > :)
> > > --- Ruchith Fernando <ru...@gmail.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > > > wrote:
> > > > > Hey Ruchith,
> > > > > Are you saying Rampart+Axis2 is what I must
> > look
> > > > at ?
> > > >
> > > > We have WS-Security support for both Axis1.x and
> > > > Axis2.
> > > > I'm not sure about any other documentation on
> > Axis
> > > > 1.x other than what
> > > > is available with wss4j and in the wiki
> > [1],[2],[3].
> > > >
> > > > However we do have some articles/tutorials on
> > Axis2
> > > > + rampart stuff :-)
> > > >
> > > > Thanks,
> > > > Ruchith
> > > >
> > > > [1]
> > http://wiki.apache.org/ws/FrontPage/WsFx/wssec
> > > > [2]
> > > >
> > http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
> > > > [3]
> > > >
> > >
> >
> http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
> > > > > I think the problem is with the qname in
> > wse2.0
> > > > sp3...
> > > > > unfortunately i am not brave enough to upgrade
> > to
> > > > > wse3.0 right now ...
> > > > > :)
> > > > > --- Ruchith Fernando
> > <ru...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hi Dev,
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 11/11/06, ws_dev2001
> > <ws...@yahoo.com>
> > > > > > wrote:
> > > > > > > Hi Ruchith,
> > > > > > > Axis engine with wss4j plugged in is happy
> > > > with
> > > > > > the
> > > > > > > relevant code commented out for the call
> > in
> > > > > > > WSDaAllReceiver :
> > > > > > > ...
> > > > > > > if (!checkReceiverResults(wsResult,
> > actions))
> > > > {
> > > > > > > ...
> > > > > > >
> > > > > >
> > > > > > If this is the point where WSS4J complains
> > ..
> > > > seems
> > > > > > like you have to
> > > > > > configured your "action" parameter properly.
> > > > > >
> > > > > > Please send a message generated by the .NET
> > > > client,
> > > > > > we should be able
> > > > > > to figure out the security actions performed
> > on
> > > > the
> > > > > > message.
> > > > > >
> > > > > > > Maybe you can guide me to some resourceful
> > > > > > > documentation on this ..etc. ?
> > > > > >
> > > > > > If you are planning to switch to Axis2 from
> > Axis
> > > > > > 1.x, you can find
> > > > > > documentation related to Axis2 security
> > stuff in
> > > > > > www.wso2.net
> > > > > >
> > > > > > Thanks,
> > > > > > Ruchith
> > > > > >
> > > > > > --
> > > > > > www.ruchith.org
> > > > > >
> > > > > >
> >
> === message truncated ===
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>


-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
What is the error message given by the .NET client? (Maybe I  missed
it in the previous messages?)

Thanks,
Ruchith

On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> No luck still :((
>
> first request has mustUnderstand=false
> second i tried to increase wse ttl ... but yet no luck
> ...
>
> <?xml version="1.0" encoding="utf-8"?>
> <log>
>   <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>     <soap:Header>
>       <wsa:Action>
>       </wsa:Action>
>
> <wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
>       <wsa:ReplyTo>
>
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>       </wsa:ReplyTo>
>
> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>       <wsse:Security>
>         <wsu:Timestamp
> wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
>
> <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
>
> <wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
>           <wsse:Username>wss4j</wsse:Username>
>           <wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>
> <wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
>
> <wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
>         </wsse:UsernameToken>
>       </wsse:Security>
>     </soap:Header>
>     <soap:Body />
>   </soap:Envelope>
>   <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>     <soap:Header>
>       <wsa:Action>
>       </wsa:Action>
>
> <wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
>       <wsa:ReplyTo>
>
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>       </wsa:ReplyTo>
>
> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>       <wsse:Security>
>         <wsu:Timestamp
> wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
>
> <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
>
> <wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
>           <wsse:Username>wss4j</wsse:Username>
>           <wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>
> <wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
>
> <wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
>         </wsse:UsernameToken>
>       </wsse:Security>
>     </soap:Header>
>     <soap:Body />
>   </soap:Envelope>
> </log>
>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <log>
>   <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>     <soapenv:Header>
>       <wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
>         <wsu:Timestamp
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="Timestamp-7068128">
>
> <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
>
> <wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
>           <wsse:Username>wss4j</wsse:Username>
>           <wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>
> <wsse:Nonce>uDobq5lc0L2yDvE4yebYrw==</wsse:Nonce>
>
> <wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
>         </wsse:UsernameToken>
>       </wsse:Security>
>     </soapenv:Header>
>     <soapenv:Body>
>       <testReturn>Just a test</testReturn>
>     </soapenv:Body>
>   </soapenv:Envelope>
>   <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Header>
> <wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="Timestamp-9564382"><wsu:Created>2006-11-11T15:10:29Z</wsu:Created><wsu:Expires>2006-11-11T15:15:29Z</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-32045680"><wsse:Username>wss4j</wsse:Username><wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>bfDuGp/QoOnlB4ZC8CuVgA==</wsse:Nonce><wsu:Created>2006-11-11T15:10:29Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> a test</testReturn></soapenv:Body></soapenv:Envelope>
> </log>
>
>
> I am concerned with the prettyXML being logged ...
> btw i am using jdk1.4.2_02 supplied with bea weblogic
> 8.1 sp3 ...
> also i am using zone alarm firewall ....
>
> just thot i wd add some maybe irrelevant info..
> what is the significance of :
>
>         <parameter name="precisionInMilliseconds"
> value="false" />
>
> ???
>
> I will try to look this up in the meantime as well ...
>
> And the C# client code :
>
> using System;
> using Microsoft.Web.Services2;
> using Microsoft.Web.Services2.Security.Tokens;
>
> namespace WSE_TesterClient
> {
>         /// <summary>
>         /// Summary description for Class1.
>         /// </summary>
>         class Client
>         {
>                 /// <summary>
>                 /// The main entry point for the application.
>                 /// </summary>
>                 [STAThread]
>                 static void Main(string[] args)
>                 {
>
> //                      Console.Write("Enter Stcok Symbol: ");
> //                      string symbol = Console.ReadLine();
> //                      Console.Write("Enter Name: ");
> //                      string name = Console.ReadLine();
> //                      Console.Write("Enter Password: ");
> //                      string password = Console.ReadLine();
>
>
>                         axis_wss.StockQuoteServiceServiceWse proxy = new
> WSE_TesterClient.axis_wss.StockQuoteServiceServiceWse();
>                         proxy.RequestSoapContext.Security.Tokens.Add(new
> UsernameToken("wss4j",
>                                 "security", PasswordOption.SendPlainText));
>
> proxy.RequestSoapContext.Security.Timestamp.TtlInSeconds
> = 30000;
>                         proxy.RequestSoapContext.Security.MustUnderstand =
> false;
>
>                         //Console.WriteLine(proxy.getQuote(symbol));
>                         string retval = proxy.test();
>                         Console.WriteLine("retval is: " + retval);
>                         Console.WriteLine("Hit enter to end.");
>                         Console.ReadLine();
>
>                 }
>         }
> }
>
>
>
>
>
>
> --- Ruchith Fernando <ru...@gmail.com>
> wrote:
>
> > PLease try adding :
> >
> > <parameter name="precisionInMilliseconds"
> > value="false" />
> >
> > into the WSDoAllSender configuration.
> >
> > Thanks,
> > Ruchith
> >
> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > wrote:
> > > unfort ... still no luck ...:
> > > here goes :
> > >
> > > request :
> > > =========
> > > <soap:Envelope
> > >
> >
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> > >
> >
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> > >
> >
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> > >
> >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> > >     <soap:Header>
> > >       <wsa:Action>
> > >       </wsa:Action>
> > >
> > >
> >
> <wsa:MessageID>uuid:15a2ef5c-408f-411e-9e82-b66ba0216076</wsa:MessageID>
> > >       <wsa:ReplyTo>
> > >
> > >
> >
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> > >       </wsa:ReplyTo>
> > >
> > >
> >
> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> > >       <wsse:Security soap:mustUnderstand="1">
> > >         <wsu:Timestamp
> > >
> >
> wsu:Id="Timestamp-89ae3aaa-f8bc-4b2f-a866-fd22a252f8fd">
> > >
> > > <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
> > >
> > > <wsu:Expires>2006-11-11T14:39:02Z</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-5f1c6b24-b5cd-48a6-8224-7ab128e348d7">
> > >           <wsse:Username>wss4j</wsse:Username>
> > >           <wsse:Password
> > >
> >
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> > >
> > > <wsse:Nonce>7lQDoG6gSUUf/md/2M1LLg==</wsse:Nonce>
> > >
> > > <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
> > >         </wsse:UsernameToken>
> > >       </wsse:Security>
> > >     </soap:Header>
> > >     <soap:Body />
> > >   </soap:Envelope>
> > >
> > > response:
> > > =========
> > >   <soapenv:Envelope
> > >
> >
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >
> >
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > <soapenv:Header>
> > > <wsse:Security
> > >
> >
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> > >
> >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> > >
> >
> wsu:Id="Timestamp-20859482"><wsu:Created>2006-11-11T14:34:13.656Z</wsu:Created><wsu:Expires>2006-11-11T14:39:13.656Z</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-23903639"><wsse:Username>wss4j</wsse:Username><wsse:Password
> > >
> >
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>gPFA1VC7EAPxq0ZJLJZ1dA==</wsse:Nonce><wsu:Created>2006-11-11T14:34:13.636Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> > > a
> > test</testReturn></soapenv:Body></soapenv:Envelope>
> > >
> > > trust me ... i have tried almost all combinations
> > and
> > > sequences ...
> > >
> > > maybe i shd try wse3.0 (eek !) ?
> > > :)
> > > --- Ruchith Fernando <ru...@gmail.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > > > wrote:
> > > > > Hey Ruchith,
> > > > > Are you saying Rampart+Axis2 is what I must
> > look
> > > > at ?
> > > >
> > > > We have WS-Security support for both Axis1.x and
> > > > Axis2.
> > > > I'm not sure about any other documentation on
> > Axis
> > > > 1.x other than what
> > > > is available with wss4j and in the wiki
> > [1],[2],[3].
> > > >
> > > > However we do have some articles/tutorials on
> > Axis2
> > > > + rampart stuff :-)
> > > >
> > > > Thanks,
> > > > Ruchith
> > > >
> > > > [1]
> > http://wiki.apache.org/ws/FrontPage/WsFx/wssec
> > > > [2]
> > > >
> > http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
> > > > [3]
> > > >
> > >
> >
> http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
> > > > > I think the problem is with the qname in
> > wse2.0
> > > > sp3...
> > > > > unfortunately i am not brave enough to upgrade
> > to
> > > > > wse3.0 right now ...
> > > > > :)
> > > > > --- Ruchith Fernando
> > <ru...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hi Dev,
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 11/11/06, ws_dev2001
> > <ws...@yahoo.com>
> > > > > > wrote:
> > > > > > > Hi Ruchith,
> > > > > > > Axis engine with wss4j plugged in is happy
> > > > with
> > > > > > the
> > > > > > > relevant code commented out for the call
> > in
> > > > > > > WSDaAllReceiver :
> > > > > > > ...
> > > > > > > if (!checkReceiverResults(wsResult,
> > actions))
> > > > {
> > > > > > > ...
> > > > > > >
> > > > > >
> > > > > > If this is the point where WSS4J complains
> > ..
> > > > seems
> > > > > > like you have to
> > > > > > configured your "action" parameter properly.
> > > > > >
> > > > > > Please send a message generated by the .NET
> > > > client,
> > > > > > we should be able
> > > > > > to figure out the security actions performed
> > on
> > > > the
> > > > > > message.
> > > > > >
> > > > > > > Maybe you can guide me to some resourceful
> > > > > > > documentation on this ..etc. ?
> > > > > >
> > > > > > If you are planning to switch to Axis2 from
> > Axis
> > > > > > 1.x, you can find
> > > > > > documentation related to Axis2 security
> > stuff in
> > > > > > www.wso2.net
> > > > > >
> > > > > > Thanks,
> > > > > > Ruchith
> > > > > >
> > > > > > --
> > > > > > www.ruchith.org
> > > > > >
> > > > > >
> >
> === message truncated ===
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>


-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
No luck still :((

first request has mustUnderstand=false
second i tried to increase wse ttl ... but yet no luck
...

<?xml version="1.0" encoding="utf-8"?>
<log>
  <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soap:Header>
      <wsa:Action>
      </wsa:Action>
     
<wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
      <wsa:ReplyTo>
       
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
      </wsa:ReplyTo>
     
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
      <wsse:Security>
        <wsu:Timestamp
wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
         
<wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
         
<wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
          <wsse:Username>wss4j</wsse:Username>
          <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
         
<wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
         
<wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
        </wsse:UsernameToken>
      </wsse:Security>
    </soap:Header>
    <soap:Body />
  </soap:Envelope>
  <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soap:Header>
      <wsa:Action>
      </wsa:Action>
     
<wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
      <wsa:ReplyTo>
       
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
      </wsa:ReplyTo>
     
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
      <wsse:Security>
        <wsu:Timestamp
wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
         
<wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
         
<wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
          <wsse:Username>wss4j</wsse:Username>
          <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
         
<wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
         
<wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
        </wsse:UsernameToken>
      </wsse:Security>
    </soap:Header>
    <soap:Body />
  </soap:Envelope>
</log>



<?xml version="1.0" encoding="utf-8"?>
<log>
  <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
      <wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-7068128">
         
<wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
         
<wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
          <wsse:Username>wss4j</wsse:Username>
          <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
         
<wsse:Nonce>uDobq5lc0L2yDvE4yebYrw==</wsse:Nonce>
         
<wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
        </wsse:UsernameToken>
      </wsse:Security>
    </soapenv:Header>
    <soapenv:Body>
      <testReturn>Just a test</testReturn>
    </soapenv:Body>
  </soapenv:Envelope>
  <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-9564382"><wsu:Created>2006-11-11T15:10:29Z</wsu:Created><wsu:Expires>2006-11-11T15:15:29Z</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-32045680"><wsse:Username>wss4j</wsse:Username><wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>bfDuGp/QoOnlB4ZC8CuVgA==</wsse:Nonce><wsu:Created>2006-11-11T15:10:29Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
a test</testReturn></soapenv:Body></soapenv:Envelope>
</log>


I am concerned with the prettyXML being logged ...
btw i am using jdk1.4.2_02 supplied with bea weblogic
8.1 sp3 ...
also i am using zone alarm firewall ....

just thot i wd add some maybe irrelevant info..
what is the significance of :

	<parameter name="precisionInMilliseconds"
value="false" />

???

I will try to look this up in the meantime as well ...

And the C# client code :

using System;
using Microsoft.Web.Services2;
using Microsoft.Web.Services2.Security.Tokens;

namespace WSE_TesterClient
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	class Client
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			
//			Console.Write("Enter Stcok Symbol: ");
//			string symbol = Console.ReadLine();
//			Console.Write("Enter Name: ");
//			string name = Console.ReadLine();
//			Console.Write("Enter Password: ");
//			string password = Console.ReadLine();
			
			
			axis_wss.StockQuoteServiceServiceWse proxy = new
WSE_TesterClient.axis_wss.StockQuoteServiceServiceWse();
			proxy.RequestSoapContext.Security.Tokens.Add(new
UsernameToken("wss4j", 
				"security", PasswordOption.SendPlainText));
		
proxy.RequestSoapContext.Security.Timestamp.TtlInSeconds
= 30000;
			proxy.RequestSoapContext.Security.MustUnderstand =
false;

			//Console.WriteLine(proxy.getQuote(symbol));
			string retval = proxy.test();
			Console.WriteLine("retval is: " + retval);
			Console.WriteLine("Hit enter to end.");
			Console.ReadLine();
			
		}
	}
}






--- Ruchith Fernando <ru...@gmail.com>
wrote:

> PLease try adding :
> 
> <parameter name="precisionInMilliseconds"
> value="false" />
> 
> into the WSDoAllSender configuration.
> 
> Thanks,
> Ruchith
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > unfort ... still no luck ...:
> > here goes :
> >
> > request :
> > =========
> > <soap:Envelope
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> >     <soap:Header>
> >       <wsa:Action>
> >       </wsa:Action>
> >
> >
>
<wsa:MessageID>uuid:15a2ef5c-408f-411e-9e82-b66ba0216076</wsa:MessageID>
> >       <wsa:ReplyTo>
> >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >       </wsa:ReplyTo>
> >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> >       <wsse:Security soap:mustUnderstand="1">
> >         <wsu:Timestamp
> >
>
wsu:Id="Timestamp-89ae3aaa-f8bc-4b2f-a866-fd22a252f8fd">
> >
> > <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T14:39:02Z</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-5f1c6b24-b5cd-48a6-8224-7ab128e348d7">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>7lQDoG6gSUUf/md/2M1LLg==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soap:Header>
> >     <soap:Body />
> >   </soap:Envelope>
> >
> > response:
> > =========
> >   <soapenv:Envelope
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <soapenv:Header>
> > <wsse:Security
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> >
>
wsu:Id="Timestamp-20859482"><wsu:Created>2006-11-11T14:34:13.656Z</wsu:Created><wsu:Expires>2006-11-11T14:39:13.656Z</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-23903639"><wsse:Username>wss4j</wsse:Username><wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>gPFA1VC7EAPxq0ZJLJZ1dA==</wsse:Nonce><wsu:Created>2006-11-11T14:34:13.636Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> > a
> test</testReturn></soapenv:Body></soapenv:Envelope>
> >
> > trust me ... i have tried almost all combinations
> and
> > sequences ...
> >
> > maybe i shd try wse3.0 (eek !) ?
> > :)
> > --- Ruchith Fernando <ru...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > > wrote:
> > > > Hey Ruchith,
> > > > Are you saying Rampart+Axis2 is what I must
> look
> > > at ?
> > >
> > > We have WS-Security support for both Axis1.x and
> > > Axis2.
> > > I'm not sure about any other documentation on
> Axis
> > > 1.x other than what
> > > is available with wss4j and in the wiki
> [1],[2],[3].
> > >
> > > However we do have some articles/tutorials on
> Axis2
> > > + rampart stuff :-)
> > >
> > > Thanks,
> > > Ruchith
> > >
> > > [1]
> http://wiki.apache.org/ws/FrontPage/WsFx/wssec
> > > [2]
> > >
> http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
> > > [3]
> > >
> >
>
http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
> > > > I think the problem is with the qname in
> wse2.0
> > > sp3...
> > > > unfortunately i am not brave enough to upgrade
> to
> > > > wse3.0 right now ...
> > > > :)
> > > > --- Ruchith Fernando
> <ru...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi Dev,
> > > > >
> > > > >
> > > > >
> > > > > On 11/11/06, ws_dev2001
> <ws...@yahoo.com>
> > > > > wrote:
> > > > > > Hi Ruchith,
> > > > > > Axis engine with wss4j plugged in is happy
> > > with
> > > > > the
> > > > > > relevant code commented out for the call
> in
> > > > > > WSDaAllReceiver :
> > > > > > ...
> > > > > > if (!checkReceiverResults(wsResult,
> actions))
> > > {
> > > > > > ...
> > > > > >
> > > > >
> > > > > If this is the point where WSS4J complains
> ..
> > > seems
> > > > > like you have to
> > > > > configured your "action" parameter properly.
> > > > >
> > > > > Please send a message generated by the .NET
> > > client,
> > > > > we should be able
> > > > > to figure out the security actions performed
> on
> > > the
> > > > > message.
> > > > >
> > > > > > Maybe you can guide me to some resourceful
> > > > > > documentation on this ..etc. ?
> > > > >
> > > > > If you are planning to switch to Axis2 from
> Axis
> > > > > 1.x, you can find
> > > > > documentation related to Axis2 security
> stuff in
> > > > > www.wso2.net
> > > > >
> > > > > Thanks,
> > > > > Ruchith
> > > > >
> > > > > --
> > > > > www.ruchith.org
> > > > >
> > > > >
> 
=== message truncated ===


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
No luck still :((

first request has mustUnderstand=false
second i tried to increase wse ttl ... but yet no luck
...

<?xml version="1.0" encoding="utf-8"?>
<log>
  <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soap:Header>
      <wsa:Action>
      </wsa:Action>
     
<wsa:MessageID>uuid:06f8d0c3-7847-479d-aade-23a279a060bf</wsa:MessageID>
      <wsa:ReplyTo>
       
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
      </wsa:ReplyTo>
     
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
      <wsse:Security>
        <wsu:Timestamp
wsu:Id="Timestamp-9d806550-b4dc-42a5-8a6b-cec41c2fe9c7">
         
<wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
         
<wsu:Expires>2006-11-11T15:14:27Z</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-100f2c90-4c89-4a04-ad30-aa34f10db493">
          <wsse:Username>wss4j</wsse:Username>
          <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
         
<wsse:Nonce>xofnZXgpvmxOgOQ0o+gSeA==</wsse:Nonce>
         
<wsu:Created>2006-11-11T15:09:27Z</wsu:Created>
        </wsse:UsernameToken>
      </wsse:Security>
    </soap:Header>
    <soap:Body />
  </soap:Envelope>
  <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soap:Header>
      <wsa:Action>
      </wsa:Action>
     
<wsa:MessageID>uuid:53f374e5-2d66-4173-9265-4cf1b64b4bbe</wsa:MessageID>
      <wsa:ReplyTo>
       
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
      </wsa:ReplyTo>
     
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
      <wsse:Security>
        <wsu:Timestamp
wsu:Id="Timestamp-21f5a351-8d54-457c-98d6-2a95df0fea2a">
         
<wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
         
<wsu:Expires>2006-11-11T23:30:25Z</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-f69d130c-3d98-4ee2-88cd-34c9db7cf885">
          <wsse:Username>wss4j</wsse:Username>
          <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
         
<wsse:Nonce>whH0KS0aYUhuYqFVqbi0rg==</wsse:Nonce>
         
<wsu:Created>2006-11-11T15:10:25Z</wsu:Created>
        </wsse:UsernameToken>
      </wsse:Security>
    </soap:Header>
    <soap:Body />
  </soap:Envelope>
</log>



<?xml version="1.0" encoding="utf-8"?>
<log>
  <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
      <wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-7068128">
         
<wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
         
<wsu:Expires>2006-11-11T15:14:31Z</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-16706762">
          <wsse:Username>wss4j</wsse:Username>
          <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
         
<wsse:Nonce>uDobq5lc0L2yDvE4yebYrw==</wsse:Nonce>
         
<wsu:Created>2006-11-11T15:09:31Z</wsu:Created>
        </wsse:UsernameToken>
      </wsse:Security>
    </soapenv:Header>
    <soapenv:Body>
      <testReturn>Just a test</testReturn>
    </soapenv:Body>
  </soapenv:Envelope>
  <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-9564382"><wsu:Created>2006-11-11T15:10:29Z</wsu:Created><wsu:Expires>2006-11-11T15:15:29Z</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-32045680"><wsse:Username>wss4j</wsse:Username><wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>bfDuGp/QoOnlB4ZC8CuVgA==</wsse:Nonce><wsu:Created>2006-11-11T15:10:29Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
a test</testReturn></soapenv:Body></soapenv:Envelope>
</log>


I am concerned with the prettyXML being logged ...
btw i am using jdk1.4.2_02 supplied with bea weblogic
8.1 sp3 ...
also i am using zone alarm firewall ....

just thot i wd add some maybe irrelevant info..
what is the significance of :

	<parameter name="precisionInMilliseconds"
value="false" />

???

I will try to look this up in the meantime as well ...

And the C# client code :

using System;
using Microsoft.Web.Services2;
using Microsoft.Web.Services2.Security.Tokens;

namespace WSE_TesterClient
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	class Client
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			
//			Console.Write("Enter Stcok Symbol: ");
//			string symbol = Console.ReadLine();
//			Console.Write("Enter Name: ");
//			string name = Console.ReadLine();
//			Console.Write("Enter Password: ");
//			string password = Console.ReadLine();
			
			
			axis_wss.StockQuoteServiceServiceWse proxy = new
WSE_TesterClient.axis_wss.StockQuoteServiceServiceWse();
			proxy.RequestSoapContext.Security.Tokens.Add(new
UsernameToken("wss4j", 
				"security", PasswordOption.SendPlainText));
		
proxy.RequestSoapContext.Security.Timestamp.TtlInSeconds
= 30000;
			proxy.RequestSoapContext.Security.MustUnderstand =
false;

			//Console.WriteLine(proxy.getQuote(symbol));
			string retval = proxy.test();
			Console.WriteLine("retval is: " + retval);
			Console.WriteLine("Hit enter to end.");
			Console.ReadLine();
			
		}
	}
}






--- Ruchith Fernando <ru...@gmail.com>
wrote:

> PLease try adding :
> 
> <parameter name="precisionInMilliseconds"
> value="false" />
> 
> into the WSDoAllSender configuration.
> 
> Thanks,
> Ruchith
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > unfort ... still no luck ...:
> > here goes :
> >
> > request :
> > =========
> > <soap:Envelope
> >
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> >     <soap:Header>
> >       <wsa:Action>
> >       </wsa:Action>
> >
> >
>
<wsa:MessageID>uuid:15a2ef5c-408f-411e-9e82-b66ba0216076</wsa:MessageID>
> >       <wsa:ReplyTo>
> >
> >
>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >       </wsa:ReplyTo>
> >
> >
>
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
> >       <wsse:Security soap:mustUnderstand="1">
> >         <wsu:Timestamp
> >
>
wsu:Id="Timestamp-89ae3aaa-f8bc-4b2f-a866-fd22a252f8fd">
> >
> > <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
> >
> > <wsu:Expires>2006-11-11T14:39:02Z</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-5f1c6b24-b5cd-48a6-8224-7ab128e348d7">
> >           <wsse:Username>wss4j</wsse:Username>
> >           <wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
> >
> > <wsse:Nonce>7lQDoG6gSUUf/md/2M1LLg==</wsse:Nonce>
> >
> > <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
> >         </wsse:UsernameToken>
> >       </wsse:Security>
> >     </soap:Header>
> >     <soap:Body />
> >   </soap:Envelope>
> >
> > response:
> > =========
> >   <soapenv:Envelope
> >
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <soapenv:Header>
> > <wsse:Security
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> >
>
wsu:Id="Timestamp-20859482"><wsu:Created>2006-11-11T14:34:13.656Z</wsu:Created><wsu:Expires>2006-11-11T14:39:13.656Z</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-23903639"><wsse:Username>wss4j</wsse:Username><wsse:Password
> >
>
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>gPFA1VC7EAPxq0ZJLJZ1dA==</wsse:Nonce><wsu:Created>2006-11-11T14:34:13.636Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> > a
> test</testReturn></soapenv:Body></soapenv:Envelope>
> >
> > trust me ... i have tried almost all combinations
> and
> > sequences ...
> >
> > maybe i shd try wse3.0 (eek !) ?
> > :)
> > --- Ruchith Fernando <ru...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > > wrote:
> > > > Hey Ruchith,
> > > > Are you saying Rampart+Axis2 is what I must
> look
> > > at ?
> > >
> > > We have WS-Security support for both Axis1.x and
> > > Axis2.
> > > I'm not sure about any other documentation on
> Axis
> > > 1.x other than what
> > > is available with wss4j and in the wiki
> [1],[2],[3].
> > >
> > > However we do have some articles/tutorials on
> Axis2
> > > + rampart stuff :-)
> > >
> > > Thanks,
> > > Ruchith
> > >
> > > [1]
> http://wiki.apache.org/ws/FrontPage/WsFx/wssec
> > > [2]
> > >
> http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
> > > [3]
> > >
> >
>
http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
> > > > I think the problem is with the qname in
> wse2.0
> > > sp3...
> > > > unfortunately i am not brave enough to upgrade
> to
> > > > wse3.0 right now ...
> > > > :)
> > > > --- Ruchith Fernando
> <ru...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi Dev,
> > > > >
> > > > >
> > > > >
> > > > > On 11/11/06, ws_dev2001
> <ws...@yahoo.com>
> > > > > wrote:
> > > > > > Hi Ruchith,
> > > > > > Axis engine with wss4j plugged in is happy
> > > with
> > > > > the
> > > > > > relevant code commented out for the call
> in
> > > > > > WSDaAllReceiver :
> > > > > > ...
> > > > > > if (!checkReceiverResults(wsResult,
> actions))
> > > {
> > > > > > ...
> > > > > >
> > > > >
> > > > > If this is the point where WSS4J complains
> ..
> > > seems
> > > > > like you have to
> > > > > configured your "action" parameter properly.
> > > > >
> > > > > Please send a message generated by the .NET
> > > client,
> > > > > we should be able
> > > > > to figure out the security actions performed
> on
> > > the
> > > > > message.
> > > > >
> > > > > > Maybe you can guide me to some resourceful
> > > > > > documentation on this ..etc. ?
> > > > >
> > > > > If you are planning to switch to Axis2 from
> Axis
> > > > > 1.x, you can find
> > > > > documentation related to Axis2 security
> stuff in
> > > > > www.wso2.net
> > > > >
> > > > > Thanks,
> > > > > Ruchith
> > > > >
> > > > > --
> > > > > www.ruchith.org
> > > > >
> > > > >
> 
=== message truncated ===


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
PLease try adding :

<parameter name="precisionInMilliseconds" value="false" />

into the WSDoAllSender configuration.

Thanks,
Ruchith

On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> unfort ... still no luck ...:
> here goes :
>
> request :
> =========
> <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>     <soap:Header>
>       <wsa:Action>
>       </wsa:Action>
>
> <wsa:MessageID>uuid:15a2ef5c-408f-411e-9e82-b66ba0216076</wsa:MessageID>
>       <wsa:ReplyTo>
>
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>       </wsa:ReplyTo>
>
> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>       <wsse:Security soap:mustUnderstand="1">
>         <wsu:Timestamp
> wsu:Id="Timestamp-89ae3aaa-f8bc-4b2f-a866-fd22a252f8fd">
>
> <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
>
> <wsu:Expires>2006-11-11T14:39:02Z</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-5f1c6b24-b5cd-48a6-8224-7ab128e348d7">
>           <wsse:Username>wss4j</wsse:Username>
>           <wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>
> <wsse:Nonce>7lQDoG6gSUUf/md/2M1LLg==</wsse:Nonce>
>
> <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
>         </wsse:UsernameToken>
>       </wsse:Security>
>     </soap:Header>
>     <soap:Body />
>   </soap:Envelope>
>
> response:
> =========
>   <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Header>
> <wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="Timestamp-20859482"><wsu:Created>2006-11-11T14:34:13.656Z</wsu:Created><wsu:Expires>2006-11-11T14:39:13.656Z</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-23903639"><wsse:Username>wss4j</wsse:Username><wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>gPFA1VC7EAPxq0ZJLJZ1dA==</wsse:Nonce><wsu:Created>2006-11-11T14:34:13.636Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> a test</testReturn></soapenv:Body></soapenv:Envelope>
>
> trust me ... i have tried almost all combinations and
> sequences ...
>
> maybe i shd try wse3.0 (eek !) ?
> :)
> --- Ruchith Fernando <ru...@gmail.com>
> wrote:
>
> > Hi,
> >
> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > wrote:
> > > Hey Ruchith,
> > > Are you saying Rampart+Axis2 is what I must look
> > at ?
> >
> > We have WS-Security support for both Axis1.x and
> > Axis2.
> > I'm not sure about any other documentation on Axis
> > 1.x other than what
> > is available with wss4j and in the wiki [1],[2],[3].
> >
> > However we do have some articles/tutorials on Axis2
> > + rampart stuff :-)
> >
> > Thanks,
> > Ruchith
> >
> > [1] http://wiki.apache.org/ws/FrontPage/WsFx/wssec
> > [2]
> > http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
> > [3]
> >
> http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
> > > I think the problem is with the qname in wse2.0
> > sp3...
> > > unfortunately i am not brave enough to upgrade to
> > > wse3.0 right now ...
> > > :)
> > > --- Ruchith Fernando <ru...@gmail.com>
> > > wrote:
> > >
> > > > Hi Dev,
> > > >
> > > >
> > > >
> > > > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > > > wrote:
> > > > > Hi Ruchith,
> > > > > Axis engine with wss4j plugged in is happy
> > with
> > > > the
> > > > > relevant code commented out for the call in
> > > > > WSDaAllReceiver :
> > > > > ...
> > > > > if (!checkReceiverResults(wsResult, actions))
> > {
> > > > > ...
> > > > >
> > > >
> > > > If this is the point where WSS4J complains ..
> > seems
> > > > like you have to
> > > > configured your "action" parameter properly.
> > > >
> > > > Please send a message generated by the .NET
> > client,
> > > > we should be able
> > > > to figure out the security actions performed on
> > the
> > > > message.
> > > >
> > > > > Maybe you can guide me to some resourceful
> > > > > documentation on this ..etc. ?
> > > >
> > > > If you are planning to switch to Axis2 from Axis
> > > > 1.x, you can find
> > > > documentation related to Axis2 security stuff in
> > > > www.wso2.net
> > > >
> > > > Thanks,
> > > > Ruchith
> > > >
> > > > --
> > > > www.ruchith.org
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > wss4j-dev-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail:
> > > > wss4j-dev-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > > Send instant messages to your online friends
> > http://uk.messenger.yahoo.com
> > >
> >
> >
> > --
> > www.ruchith.org
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > wss4j-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> > wss4j-dev-help@ws.apache.org
> >
> >
>
>
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
>


-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
PLease try adding :

<parameter name="precisionInMilliseconds" value="false" />

into the WSDoAllSender configuration.

Thanks,
Ruchith

On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> unfort ... still no luck ...:
> here goes :
>
> request :
> =========
> <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>     <soap:Header>
>       <wsa:Action>
>       </wsa:Action>
>
> <wsa:MessageID>uuid:15a2ef5c-408f-411e-9e82-b66ba0216076</wsa:MessageID>
>       <wsa:ReplyTo>
>
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>       </wsa:ReplyTo>
>
> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>       <wsse:Security soap:mustUnderstand="1">
>         <wsu:Timestamp
> wsu:Id="Timestamp-89ae3aaa-f8bc-4b2f-a866-fd22a252f8fd">
>
> <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
>
> <wsu:Expires>2006-11-11T14:39:02Z</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-5f1c6b24-b5cd-48a6-8224-7ab128e348d7">
>           <wsse:Username>wss4j</wsse:Username>
>           <wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>
> <wsse:Nonce>7lQDoG6gSUUf/md/2M1LLg==</wsse:Nonce>
>
> <wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
>         </wsse:UsernameToken>
>       </wsse:Security>
>     </soap:Header>
>     <soap:Body />
>   </soap:Envelope>
>
> response:
> =========
>   <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Header>
> <wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="Timestamp-20859482"><wsu:Created>2006-11-11T14:34:13.656Z</wsu:Created><wsu:Expires>2006-11-11T14:39:13.656Z</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-23903639"><wsse:Username>wss4j</wsse:Username><wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>gPFA1VC7EAPxq0ZJLJZ1dA==</wsse:Nonce><wsu:Created>2006-11-11T14:34:13.636Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> a test</testReturn></soapenv:Body></soapenv:Envelope>
>
> trust me ... i have tried almost all combinations and
> sequences ...
>
> maybe i shd try wse3.0 (eek !) ?
> :)
> --- Ruchith Fernando <ru...@gmail.com>
> wrote:
>
> > Hi,
> >
> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > wrote:
> > > Hey Ruchith,
> > > Are you saying Rampart+Axis2 is what I must look
> > at ?
> >
> > We have WS-Security support for both Axis1.x and
> > Axis2.
> > I'm not sure about any other documentation on Axis
> > 1.x other than what
> > is available with wss4j and in the wiki [1],[2],[3].
> >
> > However we do have some articles/tutorials on Axis2
> > + rampart stuff :-)
> >
> > Thanks,
> > Ruchith
> >
> > [1] http://wiki.apache.org/ws/FrontPage/WsFx/wssec
> > [2]
> > http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
> > [3]
> >
> http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
> > > I think the problem is with the qname in wse2.0
> > sp3...
> > > unfortunately i am not brave enough to upgrade to
> > > wse3.0 right now ...
> > > :)
> > > --- Ruchith Fernando <ru...@gmail.com>
> > > wrote:
> > >
> > > > Hi Dev,
> > > >
> > > >
> > > >
> > > > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > > > wrote:
> > > > > Hi Ruchith,
> > > > > Axis engine with wss4j plugged in is happy
> > with
> > > > the
> > > > > relevant code commented out for the call in
> > > > > WSDaAllReceiver :
> > > > > ...
> > > > > if (!checkReceiverResults(wsResult, actions))
> > {
> > > > > ...
> > > > >
> > > >
> > > > If this is the point where WSS4J complains ..
> > seems
> > > > like you have to
> > > > configured your "action" parameter properly.
> > > >
> > > > Please send a message generated by the .NET
> > client,
> > > > we should be able
> > > > to figure out the security actions performed on
> > the
> > > > message.
> > > >
> > > > > Maybe you can guide me to some resourceful
> > > > > documentation on this ..etc. ?
> > > >
> > > > If you are planning to switch to Axis2 from Axis
> > > > 1.x, you can find
> > > > documentation related to Axis2 security stuff in
> > > > www.wso2.net
> > > >
> > > > Thanks,
> > > > Ruchith
> > > >
> > > > --
> > > > www.ruchith.org
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > wss4j-dev-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail:
> > > > wss4j-dev-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > > Send instant messages to your online friends
> > http://uk.messenger.yahoo.com
> > >
> >
> >
> > --
> > www.ruchith.org
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > wss4j-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> > wss4j-dev-help@ws.apache.org
> >
> >
>
>
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
>


-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
unfort ... still no luck ...:
here goes :

request :
=========
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soap:Header>
      <wsa:Action>
      </wsa:Action>
     
<wsa:MessageID>uuid:15a2ef5c-408f-411e-9e82-b66ba0216076</wsa:MessageID>
      <wsa:ReplyTo>
       
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
      </wsa:ReplyTo>
     
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
      <wsse:Security soap:mustUnderstand="1">
        <wsu:Timestamp
wsu:Id="Timestamp-89ae3aaa-f8bc-4b2f-a866-fd22a252f8fd">
         
<wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
         
<wsu:Expires>2006-11-11T14:39:02Z</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-5f1c6b24-b5cd-48a6-8224-7ab128e348d7">
          <wsse:Username>wss4j</wsse:Username>
          <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
         
<wsse:Nonce>7lQDoG6gSUUf/md/2M1LLg==</wsse:Nonce>
         
<wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
        </wsse:UsernameToken>
      </wsse:Security>
    </soap:Header>
    <soap:Body />
  </soap:Envelope>

response:
=========
  <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-20859482"><wsu:Created>2006-11-11T14:34:13.656Z</wsu:Created><wsu:Expires>2006-11-11T14:39:13.656Z</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-23903639"><wsse:Username>wss4j</wsse:Username><wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>gPFA1VC7EAPxq0ZJLJZ1dA==</wsse:Nonce><wsu:Created>2006-11-11T14:34:13.636Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
a test</testReturn></soapenv:Body></soapenv:Envelope>

trust me ... i have tried almost all combinations and
sequences ...

maybe i shd try wse3.0 (eek !) ?
:)
--- Ruchith Fernando <ru...@gmail.com>
wrote:

> Hi,
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > Hey Ruchith,
> > Are you saying Rampart+Axis2 is what I must look
> at ?
> 
> We have WS-Security support for both Axis1.x and
> Axis2.
> I'm not sure about any other documentation on Axis
> 1.x other than what
> is available with wss4j and in the wiki [1],[2],[3].
> 
> However we do have some articles/tutorials on Axis2
> + rampart stuff :-)
> 
> Thanks,
> Ruchith
> 
> [1] http://wiki.apache.org/ws/FrontPage/WsFx/wssec
> [2]
> http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
> [3]
>
http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
> > I think the problem is with the qname in wse2.0
> sp3...
> > unfortunately i am not brave enough to upgrade to
> > wse3.0 right now ...
> > :)
> > --- Ruchith Fernando <ru...@gmail.com>
> > wrote:
> >
> > > Hi Dev,
> > >
> > >
> > >
> > > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > > wrote:
> > > > Hi Ruchith,
> > > > Axis engine with wss4j plugged in is happy
> with
> > > the
> > > > relevant code commented out for the call in
> > > > WSDaAllReceiver :
> > > > ...
> > > > if (!checkReceiverResults(wsResult, actions))
> {
> > > > ...
> > > >
> > >
> > > If this is the point where WSS4J complains ..
> seems
> > > like you have to
> > > configured your "action" parameter properly.
> > >
> > > Please send a message generated by the .NET
> client,
> > > we should be able
> > > to figure out the security actions performed on
> the
> > > message.
> > >
> > > > Maybe you can guide me to some resourceful
> > > > documentation on this ..etc. ?
> > >
> > > If you are planning to switch to Axis2 from Axis
> > > 1.x, you can find
> > > documentation related to Axis2 security stuff in
> > > www.wso2.net
> > >
> > > Thanks,
> > > Ruchith
> > >
> > > --
> > > www.ruchith.org
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > wss4j-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail:
> > > wss4j-dev-help@ws.apache.org
> > >
> > >
> >
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
> >
> 
> 
> -- 
> www.ruchith.org
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> wss4j-dev-help@ws.apache.org
> 
> 



		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
unfort ... still no luck ...:
here goes :

request :
=========
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soap:Header>
      <wsa:Action>
      </wsa:Action>
     
<wsa:MessageID>uuid:15a2ef5c-408f-411e-9e82-b66ba0216076</wsa:MessageID>
      <wsa:ReplyTo>
       
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
      </wsa:ReplyTo>
     
<wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
      <wsse:Security soap:mustUnderstand="1">
        <wsu:Timestamp
wsu:Id="Timestamp-89ae3aaa-f8bc-4b2f-a866-fd22a252f8fd">
         
<wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
         
<wsu:Expires>2006-11-11T14:39:02Z</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-5f1c6b24-b5cd-48a6-8224-7ab128e348d7">
          <wsse:Username>wss4j</wsse:Username>
          <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
         
<wsse:Nonce>7lQDoG6gSUUf/md/2M1LLg==</wsse:Nonce>
         
<wsu:Created>2006-11-11T14:34:02Z</wsu:Created>
        </wsse:UsernameToken>
      </wsse:Security>
    </soap:Header>
    <soap:Body />
  </soap:Envelope>

response:
=========
  <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-20859482"><wsu:Created>2006-11-11T14:34:13.656Z</wsu:Created><wsu:Expires>2006-11-11T14:39:13.656Z</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-23903639"><wsse:Username>wss4j</wsse:Username><wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>gPFA1VC7EAPxq0ZJLJZ1dA==</wsse:Nonce><wsu:Created>2006-11-11T14:34:13.636Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
a test</testReturn></soapenv:Body></soapenv:Envelope>

trust me ... i have tried almost all combinations and
sequences ...

maybe i shd try wse3.0 (eek !) ?
:)
--- Ruchith Fernando <ru...@gmail.com>
wrote:

> Hi,
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > Hey Ruchith,
> > Are you saying Rampart+Axis2 is what I must look
> at ?
> 
> We have WS-Security support for both Axis1.x and
> Axis2.
> I'm not sure about any other documentation on Axis
> 1.x other than what
> is available with wss4j and in the wiki [1],[2],[3].
> 
> However we do have some articles/tutorials on Axis2
> + rampart stuff :-)
> 
> Thanks,
> Ruchith
> 
> [1] http://wiki.apache.org/ws/FrontPage/WsFx/wssec
> [2]
> http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
> [3]
>
http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
> > I think the problem is with the qname in wse2.0
> sp3...
> > unfortunately i am not brave enough to upgrade to
> > wse3.0 right now ...
> > :)
> > --- Ruchith Fernando <ru...@gmail.com>
> > wrote:
> >
> > > Hi Dev,
> > >
> > >
> > >
> > > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > > wrote:
> > > > Hi Ruchith,
> > > > Axis engine with wss4j plugged in is happy
> with
> > > the
> > > > relevant code commented out for the call in
> > > > WSDaAllReceiver :
> > > > ...
> > > > if (!checkReceiverResults(wsResult, actions))
> {
> > > > ...
> > > >
> > >
> > > If this is the point where WSS4J complains ..
> seems
> > > like you have to
> > > configured your "action" parameter properly.
> > >
> > > Please send a message generated by the .NET
> client,
> > > we should be able
> > > to figure out the security actions performed on
> the
> > > message.
> > >
> > > > Maybe you can guide me to some resourceful
> > > > documentation on this ..etc. ?
> > >
> > > If you are planning to switch to Axis2 from Axis
> > > 1.x, you can find
> > > documentation related to Axis2 security stuff in
> > > www.wso2.net
> > >
> > > Thanks,
> > > Ruchith
> > >
> > > --
> > > www.ruchith.org
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > wss4j-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail:
> > > wss4j-dev-help@ws.apache.org
> > >
> > >
> >
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
> >
> 
> 
> -- 
> www.ruchith.org
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> wss4j-dev-help@ws.apache.org
> 
> 



		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,

On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> Hey Ruchith,
> Are you saying Rampart+Axis2 is what I must look at ?

We have WS-Security support for both Axis1.x and Axis2.
I'm not sure about any other documentation on Axis 1.x other than what
is available with wss4j and in the wiki [1],[2],[3].

However we do have some articles/tutorials on Axis2 + rampart stuff :-)

Thanks,
Ruchith

[1] http://wiki.apache.org/ws/FrontPage/WsFx/wssec
[2] http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
[3] http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
> I think the problem is with the qname in wse2.0 sp3...
> unfortunately i am not brave enough to upgrade to
> wse3.0 right now ...
> :)
> --- Ruchith Fernando <ru...@gmail.com>
> wrote:
>
> > Hi Dev,
> >
> >
> >
> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > wrote:
> > > Hi Ruchith,
> > > Axis engine with wss4j plugged in is happy with
> > the
> > > relevant code commented out for the call in
> > > WSDaAllReceiver :
> > > ...
> > > if (!checkReceiverResults(wsResult, actions)) {
> > > ...
> > >
> >
> > If this is the point where WSS4J complains .. seems
> > like you have to
> > configured your "action" parameter properly.
> >
> > Please send a message generated by the .NET client,
> > we should be able
> > to figure out the security actions performed on the
> > message.
> >
> > > Maybe you can guide me to some resourceful
> > > documentation on this ..etc. ?
> >
> > If you are planning to switch to Axis2 from Axis
> > 1.x, you can find
> > documentation related to Axis2 security stuff in
> > www.wso2.net
> >
> > Thanks,
> > Ruchith
> >
> > --
> > www.ruchith.org
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > wss4j-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> > wss4j-dev-help@ws.apache.org
> >
> >
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>


-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,

The request message you get from the .NET client contains a Timestamp.
Therefore the value of your action parameter should be "UsernameToken
Timestamp". Now if the username token is authenticate and if the
timestamp is not expired, the wss4j enabled service will not throw an
exception.

Thanks,
Ruchith

On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> ruchith this is the request from .net-wse2.0sp3
> console client to tomcat-axis-wss4j enabled service:
> <?xml version="1.0" encoding="utf-8"?>
> <log>
>   <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
>     <soap:Header>
>       <wsa:Action>
>       </wsa:Action>
>
> <wsa:MessageID>uuid:421e0d38-b63f-4655-b7ab-05287415f0d2</wsa:MessageID>
>       <wsa:ReplyTo>
>
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>       </wsa:ReplyTo>
>
> <wsa:To>http://localhost:8080/axis/services/stock-wss-01</wsa:To>
>       <wsse:Security soap:mustUnderstand="1">
>         <wsu:Timestamp
> wsu:Id="Timestamp-9e2425ba-48b7-4622-be35-f24bd7401821">
>
> <wsu:Created>2006-11-11T14:12:22Z</wsu:Created>
>
> <wsu:Expires>2006-11-11T14:17:22Z</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-cfacea75-2a51-4b07-850b-b2cf55699f16">
>           <wsse:Username>wss4j</wsse:Username>
>           <wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password>
>
> <wsse:Nonce>r20nS8ziREud1q1XmdQgzA==</wsse:Nonce>
>
> <wsu:Created>2006-11-11T14:12:22Z</wsu:Created>
>         </wsse:UsernameToken>
>       </wsse:Security>
>     </soap:Header>
>     <soap:Body />
>   </soap:Envelope>
> </log>
>
>
>
> response is :
> <?xml version="1.0" encoding="utf-8"?>
> <log>
>   <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Header>
> <wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="UsernameToken-20890333"><wsse:Username>wss4j</wsse:Username><wsse:Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">security</wsse:Password><wsse:Nonce>fTH3tiQYwQd/ApZZbTeS0Q==</wsse:Nonce><wsu:Created>2006-11-11T14:12:25.595Z</wsu:Created></wsse:UsernameToken><wsu:Timestamp
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="Timestamp-2816245"><wsu:Created>2006-11-11T14:12:25.585Z</wsu:Created><wsu:Expires>2006-11-11T14:17:25.585Z</wsu:Expires></wsu:Timestamp></wsse:Security></soapenv:Header><soapenv:Body><testReturn>Just
> a test</testReturn></soapenv:Body></soapenv:Envelope>
> </log>
>
>
> Do u need the axis server logs ?
>
> Also I am using a custom authenticator in my .net
> wse2.0sp3 console client application :
> let me include the full app.config :
> <?xml version="1.0" encoding="utf-8"?>
> <configuration>
>   <configSections>
>     <section name="microsoft.web.services2"
> type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration,
> Microsoft.Web.Services2, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
>   </configSections>
>   <microsoft.web.services2>
>     <security>
>       <!--securityTokenManager
> type="SecLib.CustomAuthenticator, SecLib"
> xmlns:wsse11="http://docs.oasis-open.org/wss/2005/xx/oasis-2005xx-wss-wssecurity-secext-1.1.xsd:SignatureConfirmation"
> qname="wsse11:SignatureConfirmation" /-->
>       <securityTokenManager
> type="SecLib.CustomAuthenticator, SecLib"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> qname="wsse:UsernameToken" />
>     </security>
>     <diagnostics>
>       <detailedErrors enabled="true" />
>       <trace enabled="true"
> input="d:\temp\InputTrace.webinfo"
> output="d:\temp\OutputTrace.webinfo" />
>     </diagnostics>
>   </microsoft.web.services2>
> </configuration>
>
> The code in SecLib.CustomAuthenticator is as under :
>
> using System;
> using System.Security.Permissions;
> using Microsoft.Web.Services2.Security.Tokens;
>
> namespace SecLib
> {
>         [SecurityPermissionAttribute(SecurityAction.Demand,
>                  Flags=SecurityPermissionFlag.UnmanagedCode)]
>         public class CustomAuthenticator :
> UsernameTokenManager
>         {
>                 //Returns the password or password equivalent for a
> user name
>                 protected override string
> AuthenticateToken(UsernameToken token)
>                 {
>                         if (token == null)
>                                 throw new ArgumentNullException();
>
>                         //perform a lookup in your database for the user
> name in 'token.Username'
>                         //and return the password as a string. If there is
> no match, return null.
>                         if (token.Username == "wss4j")
>                         {
>                                 return "security";
>
>                         }
>                         else
>                         {
>                                 throw new
> Microsoft.Web.Services2.Security.SecurityFault("'Unrecognized
> username'", new
> System.Xml.XmlQualifiedName("wsse:WSE-AUTH_FAILURE-001","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"));
>                         }
>                 }
>
>
>
>                 protected override void
> VerifyPlainTextPassword(UsernameToken token, string
> authenticatedPassword)
>                 {
>                         //NOOP
>                         base.VerifyPlainTextPassword(token,
> authenticatedPassword);
>                         Console.WriteLine("In
> ::VerifyPlainTextPassword()..." +
> authenticatedPassword);
>
>                 }
>
>                 protected override void
> VerifyHashedPassword(UsernameToken token, string
> authenticatedPassword)
>                 {
>                         //NOOP
>                         base.VerifyHashedPassword(token,
> authenticatedPassword);
>                         Console.WriteLine("In ::VerifyHashedPassword()..."
> + authenticatedPassword);
>                 }
>
>                 public override void VerifyToken(SecurityToken
> securityToken)
>                 {
>                         // TODO:  Add CustomAuthenticator.VerifyToken
> implementation
>                         base.VerifyToken (securityToken);
>                         Console.WriteLine("In ::VerifyToken()..." +
> securityToken.GetType());
>                 }
>         }
> }
>
>
>
> I have successfully used this custom authenticator for
> calls made to other wse2.0 sp3 .net C# webservices
> which support UsernameToken profile for ws-sec ...
>
>
> So the only glitch is in actually receivng this back
> in my console application .. ???
>
>
> --- Ruchith Fernando <ru...@gmail.com>
> wrote:
>
> > Hi Dev,
> >
> >
> >
> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > wrote:
> > > Hi Ruchith,
> > > Axis engine with wss4j plugged in is happy with
> > the
> > > relevant code commented out for the call in
> > > WSDaAllReceiver :
> > > ...
> > > if (!checkReceiverResults(wsResult, actions)) {
> > > ...
> > >
> >
> > If this is the point where WSS4J complains .. seems
> > like you have to
> > configured your "action" parameter properly.
> >
> > Please send a message generated by the .NET client,
> > we should be able
> > to figure out the security actions performed on the
> > message.
> >
> > > Maybe you can guide me to some resourceful
> > > documentation on this ..etc. ?
> >
> > If you are planning to switch to Axis2 from Axis
> > 1.x, you can find
> > documentation related to Axis2 security stuff in
> > www.wso2.net
> >
> > Thanks,
> > Ruchith
> >
> > --
> > www.ruchith.org
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > wss4j-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> > wss4j-dev-help@ws.apache.org
> >
> >
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>


-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,

On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> Hey Ruchith,
> Are you saying Rampart+Axis2 is what I must look at ?

We have WS-Security support for both Axis1.x and Axis2.
I'm not sure about any other documentation on Axis 1.x other than what
is available with wss4j and in the wiki [1],[2],[3].

However we do have some articles/tutorials on Axis2 + rampart stuff :-)

Thanks,
Ruchith

[1] http://wiki.apache.org/ws/FrontPage/WsFx/wssec
[2] http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ
[3] http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters
> I think the problem is with the qname in wse2.0 sp3...
> unfortunately i am not brave enough to upgrade to
> wse3.0 right now ...
> :)
> --- Ruchith Fernando <ru...@gmail.com>
> wrote:
>
> > Hi Dev,
> >
> >
> >
> > On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> > wrote:
> > > Hi Ruchith,
> > > Axis engine with wss4j plugged in is happy with
> > the
> > > relevant code commented out for the call in
> > > WSDaAllReceiver :
> > > ...
> > > if (!checkReceiverResults(wsResult, actions)) {
> > > ...
> > >
> >
> > If this is the point where WSS4J complains .. seems
> > like you have to
> > configured your "action" parameter properly.
> >
> > Please send a message generated by the .NET client,
> > we should be able
> > to figure out the security actions performed on the
> > message.
> >
> > > Maybe you can guide me to some resourceful
> > > documentation on this ..etc. ?
> >
> > If you are planning to switch to Axis2 from Axis
> > 1.x, you can find
> > documentation related to Axis2 security stuff in
> > www.wso2.net
> >
> > Thanks,
> > Ruchith
> >
> > --
> > www.ruchith.org
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > wss4j-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> > wss4j-dev-help@ws.apache.org
> >
> >
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>


-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
Hey Ruchith,
Are you saying Rampart+Axis2 is what I must look at ?
I think the problem is with the qname in wse2.0 sp3...
unfortunately i am not brave enough to upgrade to
wse3.0 right now ...
:)
--- Ruchith Fernando <ru...@gmail.com>
wrote:

> Hi Dev,
> 
> 
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > Hi Ruchith,
> > Axis engine with wss4j plugged in is happy with
> the
> > relevant code commented out for the call in
> > WSDaAllReceiver :
> > ...
> > if (!checkReceiverResults(wsResult, actions)) {
> > ...
> >
> 
> If this is the point where WSS4J complains .. seems
> like you have to
> configured your "action" parameter properly.
> 
> Please send a message generated by the .NET client,
> we should be able
> to figure out the security actions performed on the
> message.
> 
> > Maybe you can guide me to some resourceful
> > documentation on this ..etc. ?
> 
> If you are planning to switch to Axis2 from Axis
> 1.x, you can find
> documentation related to Axis2 security stuff in
> www.wso2.net
> 
> Thanks,
> Ruchith
> 
> -- 
> www.ruchith.org
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> wss4j-dev-help@ws.apache.org
> 
> 


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
Hey Ruchith,
Are you saying Rampart+Axis2 is what I must look at ?
I think the problem is with the qname in wse2.0 sp3...
unfortunately i am not brave enough to upgrade to
wse3.0 right now ...
:)
--- Ruchith Fernando <ru...@gmail.com>
wrote:

> Hi Dev,
> 
> 
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > Hi Ruchith,
> > Axis engine with wss4j plugged in is happy with
> the
> > relevant code commented out for the call in
> > WSDaAllReceiver :
> > ...
> > if (!checkReceiverResults(wsResult, actions)) {
> > ...
> >
> 
> If this is the point where WSS4J complains .. seems
> like you have to
> configured your "action" parameter properly.
> 
> Please send a message generated by the .NET client,
> we should be able
> to figure out the security actions performed on the
> message.
> 
> > Maybe you can guide me to some resourceful
> > documentation on this ..etc. ?
> 
> If you are planning to switch to Axis2 from Axis
> 1.x, you can find
> documentation related to Axis2 security stuff in
> www.wso2.net
> 
> Thanks,
> Ruchith
> 
> -- 
> www.ruchith.org
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> wss4j-dev-help@ws.apache.org
> 
> 


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Dev,



On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> Hi Ruchith,
> Axis engine with wss4j plugged in is happy with the
> relevant code commented out for the call in
> WSDaAllReceiver :
> ...
> if (!checkReceiverResults(wsResult, actions)) {
> ...
>

If this is the point where WSS4J complains .. seems like you have to
configured your "action" parameter properly.

Please send a message generated by the .NET client, we should be able
to figure out the security actions performed on the message.

> Maybe you can guide me to some resourceful
> documentation on this ..etc. ?

If you are planning to switch to Axis2 from Axis 1.x, you can find
documentation related to Axis2 security stuff in www.wso2.net

Thanks,
Ruchith

-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi Dev,



On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> Hi Ruchith,
> Axis engine with wss4j plugged in is happy with the
> relevant code commented out for the call in
> WSDaAllReceiver :
> ...
> if (!checkReceiverResults(wsResult, actions)) {
> ...
>

If this is the point where WSS4J complains .. seems like you have to
configured your "action" parameter properly.

Please send a message generated by the .NET client, we should be able
to figure out the security actions performed on the message.

> Maybe you can guide me to some resourceful
> documentation on this ..etc. ?

If you are planning to switch to Axis2 from Axis 1.x, you can find
documentation related to Axis2 security stuff in www.wso2.net

Thanks,
Ruchith

-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
Hi Ruchith,
Axis engine with wss4j plugged in is happy with the
relevant code commented out for the call in
WSDaAllReceiver :
...
if (!checkReceiverResults(wsResult, actions)) {
...

Tomcat doesnt complain ... and even the .NET client
doesnt ... actually until it receives the soap
response ...
I have enabled the inputtrace and output trace...
please let me know if u wd like all the logs and
artifacts .. from both the .net side(wse2.0 sp3) and
java side(tomcat+axis+wss4j)...
by the way ... my actual server side wsdd config is as
under. I am not sure if this is correct as I am 2
weeks new to wss4j now :) ....

Just fyi my global configs have :
  <parameter name="disablePrettyXML" value="true"/>
and 
  <parameter name="dotNetSoapEncFix" value="true"/>
and
  <parameter name="enableNamespacePrefixOptimization"
value="false"/>

The 'stock-wss-01' wss4j demo service specific stuff
follows:
 <service name="stock-wss-01" provider="java:RPC"
style="document" use="literal">
  
  <requestFlow>  
   <handler
type="java:org.apache.ws.axis.security.WSDoAllReceiver">
   <parameter name="enableSignatureConfirmation" 
value="false"/>
    <parameter name="passwordCallbackClass"
value="stockservice.security.PWCallback"/>    
	<parameter name="action" value="UsernameToken"/>
   </handler>
  </requestFlow>
  
  <responseFlow>    
  <handler
type="java:org.apache.ws.axis.security.WSDoAllSender"
>	 
     <parameter name="enableSignatureConfirmation" 
value="false"/>
     <parameter name="passwordCallbackClass"
value="stockservice.security.PWCallback"/>    
	 <parameter name="user" value="wss4j"/>
	 <!--parameter name="action"
value="UsernameToken"/-->
	<parameter name="action" value="Timestamp
UsernameToken"/>
	<parameter name="mustUnderstand" value="false"/>
	<parameter name="addUTElements" value="Nonce Created"
/>	
	<parameter name="passwordType" value="PasswordText"/>

	<!--parameter name="passwordType"
value="PasswordDigest"/-->	
    </handler>
  </responseFlow>  
  <parameter name="allowedMethods" value="getQuote
test"/>
  <!--parameter name="scope" value="application"/-->
  <parameter name="className"
value="samples.stock.StockQuoteService"/>
 </service>
Maybe you can guide me to some resourceful
documentation on this ..etc. ?

Many thanks,
Dev.

--- Ruchith Fernando <ru...@gmail.com>
wrote:

> Hi,
> 
> Does the wss4j 1.5.0 enabled axis webservice
> complain with an error?
> If so what is the error?
> 
> Can you also send a sample message that your .NET
> client generates.
> 
> Thanks,
> Ruchith
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > Can someone please come out with code and
> declarative
> > xml samples for .NET WSE2.0SP3
> > and WSS4J 1.5.0 wss-stock demo which ships with
> the
> > WSS4J 1.5.0 distro ?
> > I am attaching the client_deply.wsdd for wss4j to
> > .NET2.0 sp3 call which
> > is a success. I am stumped with the call from .NET
> > WSE2.0SP3 console client
> > to a wss4j 1.5.0 enabled axis webservice.
> >
> > <deployment
> xmlns="http://xml.apache.org/axis/wsdd/"
> >
>
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> >
> >  <transport name="http"
> >
>
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> >
> >   <globalConfiguration >
> >    <requestFlow >
> >     <handler
> >
>
type="java:org.apache.ws.axis.security.WSDoAllSender"
> > >
> >      <parameter name="action" value="UsernameToken
> > Timestamp"/>
> >      <parameter name="user" value="domain\user"/>
> >      <parameter name="passwordCallbackClass"
> > value="com.wss4j.client.PWCallback"/>
> >      <parameter name="addUTElements" value="Nonce
> > Created"/>
> >      <parameter name="passwordType"
> > value="PasswordText"/>
> >      <parameter name="mustUnderstand"
> value="false"/>
> >
> >     </handler>
> >    </requestFlow >
> >
> >   </globalConfiguration >
> >
> > </deployment>
> > Many thanks,
> > Dev.
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> wss4j-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> wss4j-dev-help@ws.apache.org
> >
> >
> 
> 
> -- 
> www.ruchith.org
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> wss4j-dev-help@ws.apache.org
> 
> 


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by ws_dev2001 <ws...@yahoo.com>.
Hi Ruchith,
Axis engine with wss4j plugged in is happy with the
relevant code commented out for the call in
WSDaAllReceiver :
...
if (!checkReceiverResults(wsResult, actions)) {
...

Tomcat doesnt complain ... and even the .NET client
doesnt ... actually until it receives the soap
response ...
I have enabled the inputtrace and output trace...
please let me know if u wd like all the logs and
artifacts .. from both the .net side(wse2.0 sp3) and
java side(tomcat+axis+wss4j)...
by the way ... my actual server side wsdd config is as
under. I am not sure if this is correct as I am 2
weeks new to wss4j now :) ....

Just fyi my global configs have :
  <parameter name="disablePrettyXML" value="true"/>
and 
  <parameter name="dotNetSoapEncFix" value="true"/>
and
  <parameter name="enableNamespacePrefixOptimization"
value="false"/>

The 'stock-wss-01' wss4j demo service specific stuff
follows:
 <service name="stock-wss-01" provider="java:RPC"
style="document" use="literal">
  
  <requestFlow>  
   <handler
type="java:org.apache.ws.axis.security.WSDoAllReceiver">
   <parameter name="enableSignatureConfirmation" 
value="false"/>
    <parameter name="passwordCallbackClass"
value="stockservice.security.PWCallback"/>    
	<parameter name="action" value="UsernameToken"/>
   </handler>
  </requestFlow>
  
  <responseFlow>    
  <handler
type="java:org.apache.ws.axis.security.WSDoAllSender"
>	 
     <parameter name="enableSignatureConfirmation" 
value="false"/>
     <parameter name="passwordCallbackClass"
value="stockservice.security.PWCallback"/>    
	 <parameter name="user" value="wss4j"/>
	 <!--parameter name="action"
value="UsernameToken"/-->
	<parameter name="action" value="Timestamp
UsernameToken"/>
	<parameter name="mustUnderstand" value="false"/>
	<parameter name="addUTElements" value="Nonce Created"
/>	
	<parameter name="passwordType" value="PasswordText"/>

	<!--parameter name="passwordType"
value="PasswordDigest"/-->	
    </handler>
  </responseFlow>  
  <parameter name="allowedMethods" value="getQuote
test"/>
  <!--parameter name="scope" value="application"/-->
  <parameter name="className"
value="samples.stock.StockQuoteService"/>
 </service>
Maybe you can guide me to some resourceful
documentation on this ..etc. ?

Many thanks,
Dev.

--- Ruchith Fernando <ru...@gmail.com>
wrote:

> Hi,
> 
> Does the wss4j 1.5.0 enabled axis webservice
> complain with an error?
> If so what is the error?
> 
> Can you also send a sample message that your .NET
> client generates.
> 
> Thanks,
> Ruchith
> 
> On 11/11/06, ws_dev2001 <ws...@yahoo.com>
> wrote:
> > Can someone please come out with code and
> declarative
> > xml samples for .NET WSE2.0SP3
> > and WSS4J 1.5.0 wss-stock demo which ships with
> the
> > WSS4J 1.5.0 distro ?
> > I am attaching the client_deply.wsdd for wss4j to
> > .NET2.0 sp3 call which
> > is a success. I am stumped with the call from .NET
> > WSE2.0SP3 console client
> > to a wss4j 1.5.0 enabled axis webservice.
> >
> > <deployment
> xmlns="http://xml.apache.org/axis/wsdd/"
> >
>
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> >
> >  <transport name="http"
> >
>
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> >
> >   <globalConfiguration >
> >    <requestFlow >
> >     <handler
> >
>
type="java:org.apache.ws.axis.security.WSDoAllSender"
> > >
> >      <parameter name="action" value="UsernameToken
> > Timestamp"/>
> >      <parameter name="user" value="domain\user"/>
> >      <parameter name="passwordCallbackClass"
> > value="com.wss4j.client.PWCallback"/>
> >      <parameter name="addUTElements" value="Nonce
> > Created"/>
> >      <parameter name="passwordType"
> > value="PasswordText"/>
> >      <parameter name="mustUnderstand"
> value="false"/>
> >
> >     </handler>
> >    </requestFlow >
> >
> >   </globalConfiguration >
> >
> > </deployment>
> > Many thanks,
> > Dev.
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> wss4j-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> wss4j-dev-help@ws.apache.org
> >
> >
> 
> 
> -- 
> www.ruchith.org
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> wss4j-dev-help@ws.apache.org
> 
> 


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,

Does the wss4j 1.5.0 enabled axis webservice complain with an error?
If so what is the error?

Can you also send a sample message that your .NET client generates.

Thanks,
Ruchith

On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> Can someone please come out with code and declarative
> xml samples for .NET WSE2.0SP3
> and WSS4J 1.5.0 wss-stock demo which ships with the
> WSS4J 1.5.0 distro ?
> I am attaching the client_deply.wsdd for wss4j to
> .NET2.0 sp3 call which
> is a success. I am stumped with the call from .NET
> WSE2.0SP3 console client
> to a wss4j 1.5.0 enabled axis webservice.
>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>
>  <transport name="http"
> pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>
>   <globalConfiguration >
>    <requestFlow >
>     <handler
> type="java:org.apache.ws.axis.security.WSDoAllSender"
> >
>      <parameter name="action" value="UsernameToken
> Timestamp"/>
>      <parameter name="user" value="domain\user"/>
>      <parameter name="passwordCallbackClass"
> value="com.wss4j.client.PWCallback"/>
>      <parameter name="addUTElements" value="Nonce
> Created"/>
>      <parameter name="passwordType"
> value="PasswordText"/>
>      <parameter name="mustUnderstand" value="false"/>
>
>     </handler>
>    </requestFlow >
>
>   </globalConfiguration >
>
> </deployment>
> Many thanks,
> Dev.
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
>
>


-- 
www.ruchith.org

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


Re: Can anyone help ?

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,

Does the wss4j 1.5.0 enabled axis webservice complain with an error?
If so what is the error?

Can you also send a sample message that your .NET client generates.

Thanks,
Ruchith

On 11/11/06, ws_dev2001 <ws...@yahoo.com> wrote:
> Can someone please come out with code and declarative
> xml samples for .NET WSE2.0SP3
> and WSS4J 1.5.0 wss-stock demo which ships with the
> WSS4J 1.5.0 distro ?
> I am attaching the client_deply.wsdd for wss4j to
> .NET2.0 sp3 call which
> is a success. I am stumped with the call from .NET
> WSE2.0SP3 console client
> to a wss4j 1.5.0 enabled axis webservice.
>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>
>  <transport name="http"
> pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>
>   <globalConfiguration >
>    <requestFlow >
>     <handler
> type="java:org.apache.ws.axis.security.WSDoAllSender"
> >
>      <parameter name="action" value="UsernameToken
> Timestamp"/>
>      <parameter name="user" value="domain\user"/>
>      <parameter name="passwordCallbackClass"
> value="com.wss4j.client.PWCallback"/>
>      <parameter name="addUTElements" value="Nonce
> Created"/>
>      <parameter name="passwordType"
> value="PasswordText"/>
>      <parameter name="mustUnderstand" value="false"/>
>
>     </handler>
>    </requestFlow >
>
>   </globalConfiguration >
>
> </deployment>
> Many thanks,
> Dev.
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
>
>


-- 
www.ruchith.org

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