TMServiceQueryInvoker: TMService Query Diagnostic Utility

Command Synopsis
Usage Examples

The TMServiceQueryInvoker command can be used to invoke customized queries on the TMCore TMService web service. It can be used for testing purposes by developers, or for diagnosing faults in TMService query declarations in web.config.

Command Synopsis

TMServiceQueryInvoker [/host:<string>] [/database:<string>] [/userid:<string>] [/password:<string>] [/objectid:<integer>]

Table 6. npcl Parameter Summary

Parameter (Short Form)

Description

/url (/u)

Specifies the URL to the TMService asmx endpoint.

Defaults to http://localhost/tmws/TMService.asmx.

/action (/a)Either query or queries depending on which method of TMService you wish to invoke.
/query (/q)The name of the query that is to be invoked.
/param (/p)

Specifies a parameter to be passed to the query.

Usage Examples

TMServiceQueryInvoker "/u:http://localhost/tmws/TMService.asmx" /query:EPiModule_GetAllTypes /param:4333 /a:query

Invokes the EPiModule_GetAllTypes query on the TMService deployed at http://localhost/tmws/TMService.asmx passing a single parameter: 4333.

TMServiceQueryInvoker /query:SitecoreModule_SearchTopicsByNameAndTypes /param:5423 /param:64226 /a:queries

Invokes the SitecoreModule_SearchTopicsByNameAndTypes query on the TMService passing two positional parameters: 4333 and 64226. As the TMRQL defined by this query returns multiple data tables we also specify /a:queries.