Test Client

Learn about the test client tool.

The CRM.interface and CRM.webservices test client allows for testing the ProcessXml Service (and CRM.interface). Additionally it is possible to test RESTful services.

In the property pane you can basically define to which service endpoint the request should be sent and how to authentication mode you want to use.

media/image16.png

Figure 17, Test Client (1)

It is possible to insert Query/Import and Condition fragments, which might be helful if you are not familiar with the CRM.interface query language.

media/image17.png

Figure 18, Test Client (2)

Note: When testing XML Services you have to specifiy the URL of the XML service (e.g. http://localhost/CRM.interface.sp2/xml) and to set the request target to "web service".
When testing REST Services you have to specify:
  • RestServiceUrl (e.g. http://localhost/CRM.webserv.sp2/MyCompanyService.svc/rest)
  • RestServiceMethod (e.g. QueryCompany)
  • Http Verb (set it to POST, for create/update/delete and to GET otherwise)
  • Request Target (set it to REST service)
  • Request Content Type (set it to XML if you want to use the example infrastructure)
  • Username, Password (username, password for update.CRM)
You can use the request templates -which are provided with the RESTSample- in order to test your REST service. These templates are intended to work with a CRUD service named "Companies", which contains Company and Person objects.

Hint: By default the maximum message size which can be received by the test client is set to 50000000. If a test call fails with an error message "The maximum message size quota for incoming messages (50000000) has been exceeded." you need to change that limitation by modifying the value of maxReceivedMessageSize in the configuration file (update.web.services.test.exe.config) of the test client.