Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testing Web Services
#1
Not Solved
I am trying to test web services in QTP, but i am getting following error:

Quote:Unable to generate the steps. Run the Web Service Testing wizard again.

I have attached the snapshot for your reference.
Note: Web Service add in is already added.

Please guide me how to proceed further.


Attached Files
.doc   Error-Unable to generate the steps-Run the web service testing wizard again.doc (Size: 150.5 KB / Downloads: 130)
Reply
#2
Not Solved
I am also interested in knowing the solution for the same. If anyone has encountered the problem earlier (or know the solution), please let us know.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
Hi,

First couple of queries.

1. Is WSDL file opening correctly when you navigating it through browser.
2. If yes then is your security settings placed correctly.

It would be helpful if you can attach your 'Set security Option' screen.
Reply
#4
Not Solved
Hi,
I am able to open WSDL file in browser successfully and this is unsecured url, still do i need to set up security settings? I did not select "Include security settings in the generated web service test" from web service testing wizard.

Thanks,
Sohal
Reply
#5
Not Solved
Hi,
Please verify below mentioned settings.
1. Identify which dot net framework it is using.
2. If the Webservice is .Net 2.0 based one. In QTP's File-> Settings->Web Service -> Run Webservice using Toolkit , selected the item ".Net framework 2.0 WS 3.0".
3. Try doing Check the checkbox for "Include scurity settings" in the generated web servvice test.
4. you can use Winhttp object to verify alternatively. (like- Set WinHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")


Query:

1. Which token have you selected in the security setting?
2. Is there any SSL layer.
Reply
#6
Not Solved
Hi,
We are using Axis framework, and don't have any SSL Layer.
Snapshots for settings and options are attached for the reference.

Thanks,
Sohal


Attached Files
.doc   Snapshot for settings and options.doc (Size: 182.5 KB / Downloads: 136)
Reply
#7
Not Solved
Hi,
Ok. Thanks.
1. Are you using SetProxy Method?
2. Is this setting Ok? "File -> Settings ->Web Services Tab -> Selected Apache Axis 1.x"
3. Can you please try with this public service--> http://www.webservicex.net/ConvertTemperature.asmx

Thanks
Reply
#8
Not Solved
Hi,

Thanks, I was able to generate the steps with checkpoints for provided URL from you. But i am unable to do it for my WSDL. Also i checked all settings are set for Apache Axis 1.x. I am wondering why it is not working for me?
Snapshot is attached for the reference.

Also please let me know what is the other alternate?

Thanks,
Sohal


Attached Files
.doc   Able to generate the steps for provided link.doc (Size: 200 KB / Downloads: 137)
Reply
#9
Not Solved
Hi,

1. Just verify giving the path for WS-I validation location as
C:\<Test Folder>

2. Use the WS- I validation tool to test the web services and its interoperability basically. Interoperability Testing Tools 1.1, is a third-party application and is not provided with QTP.


I could think of the following alternate solution:

You can use XML DOM, WinHttp and templates for verifying the web services XML.



Code:
strXMLTempFile = "c:\test\ws\Templates.xml"
strTemplate = "Template"
Msgbox getXMLTemplate (strXMLTempFile, strTemplate)
Function getXMLTemplate (strXMLTempFile, strTemplate)

Set xmlDoc = CreateObject("Msxml2.DOMDocument")

'load XML file

xmlDoc.load(strXMLTemplateFile)

'Check XML syntax

If (xmlDoc.parseError.errorCode <> 0) Then
' Parse XML to verify the tags

Set myErr = xmlDoc.parseError

Msgbox "ERROR: " & myErr.reason
End If
' Same way verify the template

Set xmlDoc = Nothing

let us know if this helps.
Reply
#10
Not Solved
Hi!
I'm new automating Web Services. I have no problem when all in XML Request structure it's ok, but when I try to send a request with invalida Data, All the time QTP shows me this message:

The createOffer operation call failed.
The .NET Framework 2.0 WSE 3.0 toolkit returned the following error:
There is an error in XML document (37, 10).

Exception from: System.Xml
The string '' is not a valid AllXsd value.
Line (24): "Set createOffer = WebService("WSOfferImplService").createOffer(XMLWarehouse("createOffer"))".

But I need to send the request exactly with invalida data, what can I do?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Web Testing and Unexpected Server Errors zunebuggy 0 1,272 01-24-2018, 11:41 PM
Last Post: zunebuggy
Smile Very Complex Web Testing zunebuggy 1 1,496 11-22-2017, 02:26 PM
Last Post: supputuri
  QTP Automation testing steps for .net web applications? Ramadas 0 2,473 10-30-2013, 12:54 PM
Last Post: Ramadas
  Query on Web services:web services using QTP VVKumar 0 1,731 10-03-2013, 10:42 AM
Last Post: VVKumar
  Web Services Testing using QTP VVKumar 0 1,982 10-01-2013, 01:13 PM
Last Post: VVKumar

Forum Jump:


Users browsing this thread: 2 Guest(s)