Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue in Web services with QTP.
#1
Not Solved
Hi,
I am using QTP11.Windows7.
For web services Testing i have installed web services add in qtp, installed .NET2.0WSE3.0.
I am using WS-I validation tool platform - .NET .created input XML file.
I have created web sevices through web services wizard.i have validate the WSDl . it is perfect.
My code is ......

Code:
Dim ssr0XML,XMLstr
Set ssr0XML = XMLUtil.CreateXMLFromFile("D:\QTP_RAZOO\CityWeathe r.xml")
XMLstr=ssr0XML.ToString
msgbox XMLstr
wait(5)
WebService("WeatherService").SendRequest GetCityWeatherByZIP, XMLstr

in the last line qtp is throwing the following error.

"The GetCityWeatherByZIP operation call failed.
The .NET Framework 2.0 WSE 3.0 toolkit returned the following error:
Exception from: System.Web.Services
The request failed with HTTP status 417: Expectation failed.

Line (3):
Code:
"Set GetCityWeatherByZIP = WebService("WeatherService").GetCityWeatherByZIP(" string (Autogenerated)")". "

But without using addin qtp is working fine. qtp is able to send the request and receives the request.

I tried in different ways. but i couldnot resolve this issue.
If any one knows the solution kindly provide the solution.

Thanks in advance.
Reply


Messages In This Thread
Issue in Web services with QTP. - by qtpexpert - 05-06-2013, 11:07 AM
RE: Issue in Web services with QTP. - by Saket - 05-06-2013, 04:07 PM
RE: Issue in Web services with QTP. - by Saket - 05-06-2013, 06:00 PM
RE: Issue in Web services with QTP. - by Saket - 05-10-2013, 03:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Testing Web Services sohalshah 10 8,639 04-17-2014, 01:29 AM
Last Post: Tp123
  Query on Web services:web services using QTP VVKumar 0 1,703 10-03-2013, 10:42 AM
Last Post: VVKumar
  Web Services Testing using QTP VVKumar 0 1,963 10-01-2013, 01:13 PM
Last Post: VVKumar
  Working with Web Services iagarab 0 1,792 01-08-2010, 05:53 PM
Last Post: iagarab
  Does anyone use QTP to test Web Services? lbc_rider 4 8,808 06-02-2009, 01:13 AM
Last Post: RaghunadhKiran

Forum Jump:


Users browsing this thread: 1 Guest(s)