Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webservices (QTP 10.0) on microsoft Dynamic CRM 4.0
#1
Not Solved
Hi All,

I have been struggling harder since couple of days to do a simple fetch query operation on dynamics CRM (web services) using QTP 10.0 web services wizard.

These are the steps I followed on web services testing wizard for creating a fetch script:
1) Gave the correct WSDL URL and checkd the option " Include security settings in the generated web services test"
2)After giving the proper credentials, the default security token was set to 'Network Credentials'. (Note: Did not check the other available credentials.
3) I selected 'Fetch' operation from the available operations.
4)Included XML checkpoint
5) Web services test has been generated and the script looks like :

Code:
[color=#32CD32]' Set security options for the "CrmService" Web service
WebService[/color]("CrmService").Security.SetNetworkCredential "osmosysprod\gs", "Change123", "osmosysprod"
[color]' CrmService Web service object steps[/color]
Fetch = WebService("CrmService").Fetch("string (<entity name='account'><attribute name='name'/><attribute name='primarycontactid'/><attribute name='telephone1'/><attribute name='accountid'/><order attribute='name' descending='false'/><filter type='and'><condition attribute='name' operator='like' [color=#FF1493]value='%vishnu%'/></filter></entity>)")
[color]'Includes the check point[/color]
WebService("CrmService").Check CheckPoint("Fetch")

When I run this script I get the following error:
Please look at the attached file for the error screenshot. (WS Error)

For instances when the check box of the first step is not checked then the error would be : "Eception from: System.web.Services
The request failed with HTTP status 401:Unauthorized"

Note: Fetch string(Autogenerated) in the script was replaced with my script.

Ca anyone help me understand where did I go wrong ???

Thanks in advance

Swetha


Attached Files Image(s)
   
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Microsoft Office kriday 2 3,085 07-26-2013, 09:37 AM
Last Post: vinod123
  SAPDropDownMenu, in CRM Netweaver... manishnangalia 5 4,109 12-19-2012, 10:43 PM
Last Post: manishnangalia
  Microsoft VC++ Runtime Library error Poornima 0 1,990 11-28-2012, 07:14 PM
Last Post: Poornima
  Testing webservices example sqadri 0 1,964 04-27-2012, 02:35 AM
Last Post: sqadri
  Automating Ribbon Control in Microsoft Word Archana D29 2 4,148 12-06-2011, 03:31 PM
Last Post: Archana D29

Forum Jump:


Users browsing this thread: 1 Guest(s)