The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP / Mercury LoadRunner

Pages: 1
VishalSaxena
Newbie


Reged: 02/01/12
Posts: 6
How to build a Custom request for a Soap request??
      #717549 - 10/05/12 02:47 AM

Hello,

I am facing a request failure for the web_custom_request that I built for a Soap request.
The need for building a custom request arose due the reason that, the application a non-gui based, also we have to load test the soap request in isolation with LoadRunner.

The things I recieved in addition to Soap request was the URL (which is a common URL for all, giving a way to build Soap request to that application & not the direct access to test the request), Username/Password.
Response shall be appriciated.

Can anyone please suggest what is the proper way to build such Soap reqest by building the Custom Request?
Or, if some one can share any other method of building testing such.

Regards.


Post Extras: Print Post   Remind Me!   Notify Moderator  
ptrussell_ncModerator
Super Member


Reged: 01/17/06
Posts: 1636
Loc: Charlotte, NC
Re: How to build a Custom request for a Soap request?? [Re: VishalSaxena]
      #717593 - 10/05/12 01:21 PM

Can you get the WSDL? From there LR will usually generate what is needed. (You probably need Web Services license for this.)

Without the WSDL, you can use web custom request, but you need to track the header information very carefully.

Maybe start with a WinSock recording of the application?

--------------------
Unless you are writing a compiler, strtok is NOT the answer.
See: http://www.sqaforums.com/showflat.php?Cat=0&Number=541641&Main=541641#542222

QAF is still an exercise in self-sufficiency! (Thank JB!)


Post Extras: Print Post   Remind Me!   Notify Moderator  
JimHowell1970Moderator
Active Member


Reged: 02/18/10
Posts: 836
Loc: Europe
Re: How to build a Custom request for a Soap request?? [Re: ptrussell_nc]
      #717602 - 10/06/12 12:40 AM

What've you tried exactly and what is the error you are getting?

Post Extras: Print Post   Remind Me!   Notify Moderator  
SanketVaidya
Member


Reged: 09/09/08
Posts: 360
Re: How to build a Custom request for a Soap request?? [Re: JimHowell1970]
      #718457 - 10/21/12 01:32 AM

I second Russell.

creating SOAP request or web_service_call would be much easier from WSDL.. Albeit you will need Webservice license for that..

--------------------
Best Regards,
Sanket Vaidya

See my tool Om for field testing at http://sourceforge.net/p/omfortesting/home/description/


Post Extras: Print Post   Remind Me!   Notify Moderator  
Devendra_Singh
Member


Reged: 09/20/12
Posts: 27
Loc: India
Re: How to build a Custom request for a Soap request?? [Re: SanketVaidya]
      #718479 - 10/21/12 11:44 PM

Vishal,

Check the below link

http://www.headwired.com/tutorials/performance-testing-soap-with-loadrunner-basics/

Thanks,

--------------------
Devendra Singh
http://performancetestingcentre.blogspot.com/


Post Extras: Print Post   Remind Me!   Notify Moderator  
Vivek_V
Member


Reged: 07/26/09
Posts: 104
Loc: India
Re: How to build a Custom request for a Soap request?? [Re: VishalSaxena]
      #718493 - 10/22/12 03:29 AM

Quote:


The things I recieved in addition to Soap request was the URL (which is a common URL for all, giving a way to build Soap request to that application & not the direct access to test the request), Username/Password.




Can you use the url that was provided to invoke the web service manually? If yes, invoke the service and use network sniffers(Wireshark or Fiddler) to trace what is being sent/received.

Compare the headers and content (what you sniffed) with that of your web_custom_request that you had built.

--------------------
Cheers,
Vivek


Post Extras: Print Post   Remind Me!   Notify Moderator  
swales
Junior Member


Reged: 07/11/02
Posts: 173
Loc: Moline,IL
Re: How to build a Custom request for a Soap request?? [Re: Vivek_V]
      #719692 - 11/12/12 08:15 AM

I just posted this in another topic... but applies here also:

Last time I had these type of issues it was because I was not sending the right Headers.

I find it simpler to use the HTTP/HTML protocol to do WebServices. What I do is use Fiddler to capture the output from SOAPUI to get the exact XML. I then post that XML through a web_custom_request.

I also found that Fiddler will show me the Headers being sent. The errors you are having might be due to some missing headers.

Here is an example of what my script looks like:

// Here are the headers
web_add_header("SOAPAction","");
web_add_header("Content-Type","text/xml;charset=UTF-8");

// NOTE - You have to escape the quotes when you paste the XML into a HTTP/HTML script.
// Here is the SOAP request

web_custom_request("getStartModelParameters",
"URL=http://mywebservice",
"Method=POST",
"Resource=0",
"TargetFrame=",
"RecContentType=text/xml",
"Mode=HTTP",
"Body="
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ser=\"http://services.view.wwag.deere.ext\" xmlns:v3=\"http://soartm.deere.com/v3_0/\" xmlns:bean=\"http://beans.view.wwag.deere.ext\">"
//
// Put reset of XML here
//
" <soapenv:Header/>"
" <soapenv:Body>"
" </soapenv:Body>"
"</soapenv:Envelope>",
LAST);


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 32 anonymous users are browsing this forum.

Moderator:  AJ, James Pulley, ptrussell_nc, JimHowell1970 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 5311

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5