Re: Web Services Problem

2006-10-10 Thread Peter Lin

are you using the XML rpc sampler, or the soap webservice sampler?

peter


On 10/10/06, jai nathe [EMAIL PROTECTED] wrote:


Hi,
  I am new to jmeter.I am testing my appplication through jmeter.Ineed 
to send a soap request to my application through web services.
  I am getting the following Error response in jmeter.
  Thread Name: Test 1-1
Sample Start: Tue Oct 10 11:12:53 IST 2006
Load time: 0
HTTP response code: 000
HTTP response message: For input string: 1631 
  HTTP response headers:

  I captured through TCPMON

  The request is

  POST /normal/servlets/ServerSOAPProcessor HTTP/1.0
Host: 107.108.72.236:6080
Content-Type: text/xml; charset=utf-8
Content-Length: 2005
SOAPAction: srm:GET

  with XML file

  and the response is

  HTTP/1.1 200 OK
Host: www.rmdevice.samsung.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 1631
Date: Thu, 13 Jul 2006 13:59:10 GMT

  with response XML file.
  But i was not able to get the response in Jmeter.I guess the reason may
be HTTP version.Because jmeter sends the version HTTP 1.0 to my
application and my application sends as HTTP 1.1
  Can anyone tell me how to trackle this problem.

  Regards,
  minnal.



Re: Web Services Problem

2006-10-10 Thread jai nathe
i am using Soap webservice sampler...

Peter Lin [EMAIL PROTECTED] wrote:  are you using the XML rpc sampler, or the 
soap webservice sampler?

peter


On 10/10/06, jai nathe wrote:

 Hi,
 I am new to jmeter.I am testing my appplication through jmeter.Ineed to send 
 a soap request to my application through web services.
 I am getting the following Error response in jmeter.
 Thread Name: Test 1-1
 Sample Start: Tue Oct 10 11:12:53 IST 2006
 Load time: 0
 HTTP response code: 000
 HTTP response message: For input string: 1631 
 HTTP response headers:

 I captured through TCPMON

 The request is

 POST /normal/servlets/ServerSOAPProcessor HTTP/1.0
 Host: 107.108.72.236:6080
 Content-Type: text/xml; charset=utf-8
 Content-Length: 2005
 SOAPAction: srm:GET

 with XML file

 and the response is

 HTTP/1.1 200 OK
 Host: www.rmdevice.samsung.com
 Content-Type: application/soap+xml; charset=utf-8
 Content-Length: 1631
 Date: Thu, 13 Jul 2006 13:59:10 GMT

 with response XML file.
 But i was not able to get the response in Jmeter.I guess the reason may
 be HTTP version.Because jmeter sends the version HTTP 1.0 to my
 application and my application sends as HTTP 1.1
 Can anyone tell me how to trackle this problem.

 Regards,
 minnal.






-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW

Web Services Problem

2006-10-09 Thread jai nathe
Hi,
  I am new to jmeter.I am testing my appplication through jmeter.I need 
to send a soap request to my application through web services.
  I am getting the following Error response in jmeter.
  Thread Name: Test 1-1
Sample Start: Tue Oct 10 11:12:53 IST 2006
Load time: 0
HTTP response code: 000
HTTP response message: For input string: quot;1631 quot;
  HTTP response headers:
   
  I captured through TCPMON
   
  The request is 
   
  POST /normal/servlets/ServerSOAPProcessor HTTP/1.0
Host: 107.108.72.236:6080
Content-Type: text/xml; charset=utf-8
Content-Length: 2005
SOAPAction: srm:GET
   
  with XML file

  and the response is 
   
  HTTP/1.1 200 OK
Host: www.rmdevice.samsung.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 1631 
Date: Thu, 13 Jul 2006 13:59:10 GMT

  with response XML file.
  But i was not able to get the response in Jmeter.I guess the reason may be 
HTTP version.Because jmeter sends the version HTTP 1.0 to my application and my 
application sends as HTTP 1.1
  Can anyone tell me how to trackle this problem.
   
  Regards,
  minnal.
  
Peter Lin [EMAIL PROTECTED] wrote:
  not sure what you mean by sub-result.

jmeter currently has aggregate listener and aggregate table. The results
are shown by URL. It's unclear what you mean by sub-result from the email.
Also, ask yourself, what's the purpose of the sampler? In a normal HTTP
request, each request has a specific URL with request parameters. There are
no sub results, unless someone wants to measure how long it takes to load
each embedded resource.

To do that, one would need to break a request down to the smallest item, and
set the request to not retrieve embedded resources.

hope that helps

peter

On 10/9/06, priya menon 
wrote:

 I have read about JMeter after going through the Apache's site and I
 found it very interesting.
 I want to start as an user and If i am able to sustain the interest
 and become enough productive, I want to become a developer.

 I have played around JMeter, a little.

 Trying to create a sampler:

 Customer Sampler: I am trying to write a custom sampler just to
 display sub results in a table and I created a jar and dropped in
 /lib/ext.
 Added a sampler Java Requests and ran this stuff.

 I did the following steps:

 Trying to visualize and see these 3 values sperately in a table, I
 created a plan and threadgroup and the I found only 2 ways to view
 results in table and aggregate report. but both are getting the aggregate
 values. Is there a table component to see this values as a row or column
 or do I have to write my own custom visualizer.

 public SampleResult runTest(JavaSamplerContext context) {
 SampleResult results = new SampleResult();
 try {
 Thread.sleep(2000);
 // Generate a random value using the current time.
 results.setSuccessful(true);
 results.setSampleLabel(PriyaTest);

 SampleResult r = new SampleResult();
 r.setSampleLabel(Priya Result1);
 r.setTime(200);
 results.addSubResult(r);

 SampleResult r1 = new SampleResult();
 r1.setSampleLabel(Priya Result2);
 r1.setTime(300);
 results.addSubResult(r1);

 SampleResult r2 = new SampleResult();
 r1.setSampleLabel(Priya Result3);
 r1.setTime(500);
 results.addSubResult(r2);

 } catch (Exception e) {
 getLogger().error(SleepTest: error during sample, e);
 results.setSuccessful(false);
 } finally {
 results.sampleEnd();
 }
 if (getLogger().isDebugEnabled()) {
 getLogger().debug(
 whoAmI() + \trunTest() + \tTime:\t + results.getTime());
 listParameters(context);
 }
 return results;
 }

 Thank you,
 Priya


 -
 All-new Yahoo! Mail - Fire up a more powerful email and get things done
 faster.






-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW