You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Matt Mankad <rm...@infostretch.com> on 2009/08/24 20:47:10 UTC

WS-Security using Web services sampler

Hi
I wanted to code use cases related to WS-Security (confidentiality,
integrity and authentication). I understand that current sampler does not
support WS-Security related parameters ( as per this thread -
http://tinyurl.com/lwram3) 

What is my best bet. If I have to extend a sampler where do I start ( which
sampler do I extend?). I am mediocre with Java and have never done any
security related programming. How much time should I allocate to it? Any
other pointers you can tell me

Really appreciate your help

Matt
-- 
View this message in context: http://www.nabble.com/WS-Security-using-Web-services-sampler-tp25121504p25121504.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: WS-Security using Web services sampler

Posted by Viswanathan Arunachalam <v....@auckland.ac.nz>.
Install Tamper data plugin & record the test using BadBoy then save the
script as .jmx (jmeter script)

Regards,

Applications QA Analyst 

Information Technology Services (ITS) 

The University of Auckland, New Zealand 

Te Whare Wananga o Tamaki makaurau, Aotearoa,

(: +64 9 923 5264  *: v.arunachalam@auckland.ac.nz 

 

1883-2008: Celebrating 125 Years

 

"Om Sakti Amman Vinayaka Muruga Sastha Tunai"

P Please consider the environment before printing this email.

-----Original Message-----
From: Matt Mankad [mailto:rmankad@infostretch.com] 
Sent: Tuesday, August 25, 2009 6:47 AM
To: jmeter-user@jakarta.apache.org
Subject: WS-Security using Web services sampler


Hi
I wanted to code use cases related to WS-Security (confidentiality,
integrity and authentication). I understand that current sampler does
not
support WS-Security related parameters ( as per this thread -
http://tinyurl.com/lwram3) 

What is my best bet. If I have to extend a sampler where do I start (
which
sampler do I extend?). I am mediocre with Java and have never done any
security related programming. How much time should I allocate to it? Any
other pointers you can tell me

Really appreciate your help

Matt
-- 
View this message in context:
http://www.nabble.com/WS-Security-using-Web-services-sampler-tp25121504p
25121504.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: WS-Security using Web services sampler

Posted by Deepak Shetty <sh...@gmail.com>.
Hi
looking at this further I dont think you need to extend JMeter
Take a look at
http://www.devx.com/Java/Article/28816/0/page/4

You'd generate your WS message in a BeanShell/Java Sampler
Get it as a String using the sample code from the article and set it into
the variables

       XMLUtils.PrettyElementToWriter(
          signedMsg.getSOAPEnvelope().getAsDOM(),
          new PrintWriter(System.out)); --> Use a StringWriter here


Finally use ${varName} in the webservice sampler.
Give it a try, let us know
regards
deepak


On Mon, Aug 24, 2009 at 3:57 PM, Deepak Shetty <sh...@gmail.com> wrote:

> hi
> You *might* not need to extend anything , as long as you can create the XML
> that you want sent.(as a string ). you could then use the existing sampler i
> suppose.
> If you really need to create this as a Jmeter plugin you'd take a look at
> the existing WebServiceSampler code
>
> >How much time should I allocate to it?
> reminds me of a joke that to find out how long it takes you to reach a
> place depends not only on the distance but how fast you walk :)
>
> regards
> deepak
>
>
> On Mon, Aug 24, 2009 at 11:47 AM, Matt Mankad <rm...@infostretch.com>wrote:
>
>>
>> Hi
>> I wanted to code use cases related to WS-Security (confidentiality,
>> integrity and authentication). I understand that current sampler does not
>> support WS-Security related parameters ( as per this thread -
>> http://tinyurl.com/lwram3)
>>
>> What is my best bet. If I have to extend a sampler where do I start (
>> which
>> sampler do I extend?). I am mediocre with Java and have never done any
>> security related programming. How much time should I allocate to it? Any
>> other pointers you can tell me
>>
>> Really appreciate your help
>>
>> Matt
>> --
>> View this message in context:
>> http://www.nabble.com/WS-Security-using-Web-services-sampler-tp25121504p25121504.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>

Re: WS-Security using Web services sampler

Posted by Deepak Shetty <sh...@gmail.com>.
hi
You *might* not need to extend anything , as long as you can create the XML
that you want sent.(as a string ). you could then use the existing sampler i
suppose.
If you really need to create this as a Jmeter plugin you'd take a look at
the existing WebServiceSampler code

>How much time should I allocate to it?
reminds me of a joke that to find out how long it takes you to reach a place
depends not only on the distance but how fast you walk :)

regards
deepak

On Mon, Aug 24, 2009 at 11:47 AM, Matt Mankad <rm...@infostretch.com>wrote:

>
> Hi
> I wanted to code use cases related to WS-Security (confidentiality,
> integrity and authentication). I understand that current sampler does not
> support WS-Security related parameters ( as per this thread -
> http://tinyurl.com/lwram3)
>
> What is my best bet. If I have to extend a sampler where do I start ( which
> sampler do I extend?). I am mediocre with Java and have never done any
> security related programming. How much time should I allocate to it? Any
> other pointers you can tell me
>
> Really appreciate your help
>
> Matt
> --
> View this message in context:
> http://www.nabble.com/WS-Security-using-Web-services-sampler-tp25121504p25121504.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>