FA99D6C325AF46CEA30155D219CAF3F9
  • Archiv
  • 24.04.2018
  • EN

WSM blog: Using WCF to create an RQL client for Web Site Management

written by Dennis Reil, 1. July 2011
 

A few days ago, I posted about executing RQLs in version 11. I clarified that the currently shown way of using some .NET objects instead of the old COM+ components, is just a temporary way till the RDCMSCMSXmlServer Web Service has been implemented with the means of WCF.

I'll now show you in detail how to create a WCF based RQL client that can already be used from CMS version 7.5 on, I guess. At least WSM 10.1 will work fine with this implementation.

 

All the steps can be done in around 15 minutes.
As a short outline, the steps are:

  1. Create a new console application project in Visual Studio
  2. Add a service reference to http://localhost/cms/webservice/RDCMSXMLServer.wsdl
  3. A new XMLServerSoapPortClient is generated
  4. Use the generated client to connect to WSM
  5. That's it

Easy? Yepp, there's not much code you'll have to write manually for this example. As always, in a real project, you'll have to do some additional work, e.g. creating a separate assembly containing the client and additional convenience methods for sending certain actions. Probably making the assembly COMVisible if it has to be called from your old legacy ASP code.


Source: Using WCF to create an RQL client for Web Site Management

© copyright 2011 by Dennis Reil

       

Downloads

 

QuickLinks

 

Channel