You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by George Stanchev <Gs...@serena.com> on 2006/12/20 17:12:06 UTC
refering to tokens in rampart sec header
Hi,
I need to create a securty token (saml, username) and refer to
it from the message body via wsse:SecurtyTokenReference. I am
thinking that this is impossible using rampart since at the time
when the payload is created the token is not present and when the
token gets created, there is no control to the client.
Am I correct in my assumption?
Are there alternatives besides creating the token manually and
stuffing it in the sec header prior to calling sending the call on
its way?
Thanks!
George Stanchev
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
RE: serializing/deserializing SOAP message and response
Posted by George Stanchev <Gs...@serena.com>.
I am sending this, so if someone needs similiar thing in the
future, to have ideas for reference
I ended up creating a custom transport based on the local
transport. It reflects back the message as base64 encoded
string. For the response handling, i base64 encode the
response and set it as options property. In the same local
transport i put together, i check if this property is present
on the options and if so i inject the response in the
TRANSPORT_IN stream and set it on the context. In this
case the outgoing msg is discarded.
If both contexts are the same (and since I control the enviornment
i know they are), this should solve the problem.
One has to be carefull with the addressing since its party #2
which actually emits the call.
George
________________________________
From: George Stanchev [mailto:Gstanchev@serena.com]
Sent: Wed 12/20/2006 11:15 AM
To: axis-user@ws.apache.org
Subject: serializing/deserializing SOAP message and response
Hi,
I have a strange scenario which I am not sure how to implement.
I have 2 parties. Party #1 needs to generate a SOAP message via
axis2 - do the processing, attach security etc. However this
message needs not to be wired - it needs to be serialized into
a sting. Then this string is transmitted via some method (not
of importantance) to party#2. The party#2 needs to take the string
as it is and call a remote service with the string message as a call
and then to take the response and using similiar mechanism
to package it into string and relay it back to party #1 which
needs to "receive" it using axis2 again. The 2 parties are independent
of each other (separate machines). It is imporant they exchange
the message/response as SOAP-compliant XML string. The
protocol for that exchange doesn't matter - thats why i need it
reduced to string.
The sending should be the easier of both operations though.
Where I am out of ideas is how to tackle the receiving of a
local message.
I see there is a local trasport in org.apache.axis2.transport.local
but I was unable to find examples for it. Do you think this is what
I need?
Any advise/suggestions on how to tackle this problem would
be appreciated.
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
serializing/deserializing SOAP message and response
Posted by George Stanchev <Gs...@serena.com>.
Hi,
I have a strange scenario which I am not sure how to implement.
I have 2 parties. Party #1 needs to generate a SOAP message via
axis2 - do the processing, attach security etc. However this
message needs not to be wired - it needs to be serialized into
a sting. Then this string is transmitted via some method (not
of importantance) to party#2. The party#2 needs to take the string
as it is and call a remote service with the string message as a call
and then to take the response and using similiar mechanism
to package it into string and relay it back to party #1 which
needs to "receive" it using axis2 again. The 2 parties are independent
of each other (separate machines). It is imporant they exchange
the message/response as SOAP-compliant XML string. The
protocol for that exchange doesn't matter - thats why i need it
reduced to string.
The sending should be the easier of both operations though.
Where I am out of ideas is how to tackle the receiving of a
local message.
I see there is a local trasport in org.apache.axis2.transport.local
but I was unable to find examples for it. Do you think this is what
I need?
Any advise/suggestions on how to tackle this problem would
be appreciated.
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Re: Generating UsernameToken with missing password
Posted by Ruchith Fernando <ru...@gmail.com>.
Yep ! A JIRA please (WSS4J)
Thanks,
Ruchith
On 1/11/07, George Stanchev <Gs...@serena.com> wrote:
> Hi,
>
> I need to be able to generate UsernameToken without wsse:Password element in it
> using either rampart or WSS4J? According to the specs, the password element
> is optional so the resulting UsernameToken it shouldn't be a non-conformant element.
>
> Is it another JIRA candidate?
>
> Thanks!
>
> George Stanchev
>
> **********************************************************************
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
www.ruchith.org
www.wso2.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Generating UsernameToken with missing password
Posted by George Stanchev <Gs...@serena.com>.
Hi,
I need to be able to generate UsernameToken without wsse:Password element in it
using either rampart or WSS4J? According to the specs, the password element
is optional so the resulting UsernameToken it shouldn't be a non-conformant element.
Is it another JIRA candidate?
Thanks!
George Stanchev
**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
RE: refering to tokens in rampart sec header
Posted by George Stanchev <Gs...@serena.com>.
Created[1]. I added it as axis2 JIRA issue. May be I should've added it to the
WSS4J jira space since its a more of a generic problem?
Move it if I have placed it the wrong box
http://issues.apache.org/jira/browse/AXIS2-1965 <http://issues.apache.org/jira/browse/AXIS2-1965>
Thanks!
George
________________________________
From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
Sent: Sat 1/6/2007 8:09 PM
To: axis-user@ws.apache.org
Subject: Re: refering to tokens in rampart sec header
Please file a JIRA.
Thanks,
Ruchith
On 1/6/07, George Stanchev <Gs...@serena.com> wrote:
> Thanks Ruchith,
>
> Do you need a JIRA opened for this enhancement to keep track or
> you already have it on the list?
>
>
> Best Regards,
> George
>
> -----Original Message-----
> From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> Sent: Wednesday, January 03, 2007 5:01 AM
> To: axis-user@ws.apache.org
> Subject: Re: refering to tokens in rampart sec header
>
> Hi,
>
> On 12/20/06, George Stanchev <Gs...@serena.com> wrote:
> > Hi,
> >
> > I need to create a securty token (saml, username) and refer to it from
>
> > the message body via wsse:SecurtyTokenReference. I am thinking that
> > this is impossible using rampart since at the time when the payload is
>
> > created the token is not present and when the token gets created,
> > there is no control to the client.
> > Am I correct in my assumption?
>
> Yes! This is correct.
>
> >
> > Are there alternatives besides creating the token manually and
> > stuffing it in the sec header prior to calling sending the call on its
>
> > way?
>
> We don't haev an alternative right now and I believe this will be a
> useful feature with the WS-Trust use cases.
> We have to come up with a clean mechanism to do this where we can
> specify a token to be added to the security header and to be used for
> other purposes such as authentication or crypto operations.
>
> Thanks,
> Ruchith
>
> >
> > Thanks!
> >
> > George Stanchev
> >
> >
> > **********************************************************************
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they
> > are addressed. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient,
> please contact the sender by reply e-mail and destroy all copies of the
> original message.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> www.ruchith.org
> www.wso2.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
www.ruchith.org
www.wso2.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: refering to tokens in rampart sec header
Posted by Ruchith Fernando <ru...@gmail.com>.
Please file a JIRA.
Thanks,
Ruchith
On 1/6/07, George Stanchev <Gs...@serena.com> wrote:
> Thanks Ruchith,
>
> Do you need a JIRA opened for this enhancement to keep track or
> you already have it on the list?
>
>
> Best Regards,
> George
>
> -----Original Message-----
> From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> Sent: Wednesday, January 03, 2007 5:01 AM
> To: axis-user@ws.apache.org
> Subject: Re: refering to tokens in rampart sec header
>
> Hi,
>
> On 12/20/06, George Stanchev <Gs...@serena.com> wrote:
> > Hi,
> >
> > I need to create a securty token (saml, username) and refer to it from
>
> > the message body via wsse:SecurtyTokenReference. I am thinking that
> > this is impossible using rampart since at the time when the payload is
>
> > created the token is not present and when the token gets created,
> > there is no control to the client.
> > Am I correct in my assumption?
>
> Yes! This is correct.
>
> >
> > Are there alternatives besides creating the token manually and
> > stuffing it in the sec header prior to calling sending the call on its
>
> > way?
>
> We don't haev an alternative right now and I believe this will be a
> useful feature with the WS-Trust use cases.
> We have to come up with a clean mechanism to do this where we can
> specify a token to be added to the security header and to be used for
> other purposes such as authentication or crypto operations.
>
> Thanks,
> Ruchith
>
> >
> > Thanks!
> >
> > George Stanchev
> >
> >
> > **********************************************************************
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they
> > are addressed. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient,
> please contact the sender by reply e-mail and destroy all copies of the
> original message.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> www.ruchith.org
> www.wso2.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
www.ruchith.org
www.wso2.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: refering to tokens in rampart sec header
Posted by George Stanchev <Gs...@serena.com>.
Thanks Ruchith,
Do you need a JIRA opened for this enhancement to keep track or
you already have it on the list?
Best Regards,
George
-----Original Message-----
From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
Sent: Wednesday, January 03, 2007 5:01 AM
To: axis-user@ws.apache.org
Subject: Re: refering to tokens in rampart sec header
Hi,
On 12/20/06, George Stanchev <Gs...@serena.com> wrote:
> Hi,
>
> I need to create a securty token (saml, username) and refer to it from
> the message body via wsse:SecurtyTokenReference. I am thinking that
> this is impossible using rampart since at the time when the payload is
> created the token is not present and when the token gets created,
> there is no control to the client.
> Am I correct in my assumption?
Yes! This is correct.
>
> Are there alternatives besides creating the token manually and
> stuffing it in the sec header prior to calling sending the call on its
> way?
We don't haev an alternative right now and I believe this will be a
useful feature with the WS-Trust use cases.
We have to come up with a clean mechanism to do this where we can
specify a token to be added to the security header and to be used for
other purposes such as authentication or crypto operations.
Thanks,
Ruchith
>
> Thanks!
>
> George Stanchev
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient,
please contact the sender by reply e-mail and destroy all copies of the
original message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
www.ruchith.org
www.wso2.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: refering to tokens in rampart sec header
Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,
On 12/20/06, George Stanchev <Gs...@serena.com> wrote:
> Hi,
>
> I need to create a securty token (saml, username) and refer to
> it from the message body via wsse:SecurtyTokenReference. I am
> thinking that this is impossible using rampart since at the time
> when the payload is created the token is not present and when the
> token gets created, there is no control to the client.
> Am I correct in my assumption?
Yes! This is correct.
>
> Are there alternatives besides creating the token manually and
> stuffing it in the sec header prior to calling sending the call on
> its way?
We don't haev an alternative right now and I believe this will be a
useful feature with the WS-Trust use cases.
We have to come up with a clean mechanism to do this where we can
specify a token to be added to the security header and to be used for
other purposes such as authentication or crypto operations.
Thanks,
Ruchith
>
> Thanks!
>
> George Stanchev
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
www.ruchith.org
www.wso2.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org