Using FrontPage RPC
The FrontPage Remote Procedure Call (RPC) methods provide yet another way to change SharePoint sites and get content remotely. The RPC methods are similar to the URL commands discussed earlier, except RPC uses HTTP POST rather than GET to send requests.
Tip
Don't confuse FrontPage RPC with .NET RPC. They are very distinct technologies that unfortunately share the same acronym.
Use RPC methods when you want to compose your changes or queries in Collaborative Markup Language (CAML) rather than through web service methods. CAML is a declarative approach to programming SharePoint using XML rather than a procedural programming language such as Visual Basic .NET. There are several advantages to this approach:
RPC methods can be included on a web page as content rather than as server-side code.
Users can compose and run queries in CAML without installing web parts or other code on the server.
SharePoint templates and descriptions are in CAML, so understanding it helps you create custom site definitions.
RPC incurs less overhead than web services.
Table 10-8 lists the methods available through RPC. The URL commands are also available through RPC but aren't included in this table since they are already listed in Table 10-6.
Table 10-8. SharePoint RPC methods
Method |
Parameters |
Use to |
---|---|---|
Cltreq |
UL, STRMVER, ACT, URL |
Perform web discussion operations such as adding, editing, or deleting a discussion associated with a web page or with a document stored in a document library. |
Get Essential SharePoint now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.