05-06-2013, 11:07 AM
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 ......
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):
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.
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.