<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=RPC_HELP_M_Entry_Relationship</id>
	<title>RPC HELP M Entry Relationship - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=RPC_HELP_M_Entry_Relationship"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_M_Entry_Relationship&amp;action=history"/>
	<updated>2026-05-03T03:51:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=RPC_HELP_M_Entry_Relationship&amp;diff=16688&amp;oldid=prev</id>
		<title>Kdtop: Created page with &quot; RPC Broker Help Home &lt;h2&gt;Relationship Between an M Entry Point and an RPC&lt;/h2&gt; An RPC can be thought of as a wrapper placed around an M entry point for us...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_M_Entry_Relationship&amp;diff=16688&amp;oldid=prev"/>
		<updated>2015-07-06T00:27:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/RPC_Broker_Help&quot; title=&quot;RPC Broker Help&quot;&gt; RPC Broker Help Home&lt;/a&gt; &amp;lt;h2&amp;gt;Relationship Between an M Entry Point and an RPC&amp;lt;/h2&amp;gt; An RPC can be thought of as a wrapper placed around an M entry point for us...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[RPC_Broker_Help| RPC Broker Help Home]]&lt;br /&gt;
&amp;lt;h2&amp;gt;Relationship Between an M Entry Point and an RPC&amp;lt;/h2&amp;gt;&lt;br /&gt;
An RPC can be thought of as a wrapper placed around an M entry point for use with client applications. Each RPC invokes a single M entry point.&lt;br /&gt;
	&lt;br /&gt;
An M entry point has defined input and output values/parameters that are passed via the standard M invoking methods. An RPC, however, needs to do the following:&lt;br /&gt;
* Accept input from the Broker (i.e., passing data/parameters from the client application).&lt;br /&gt;
* Pass data to the M entry point in a specified manner.&lt;br /&gt;
* Receive values back from the M code in a pre-determined format.&lt;br /&gt;
* Pass M code output back through the Broker to the client application.&lt;br /&gt;
	&lt;br /&gt;
You can use the [[RPC_HELP_BROKER_XWBLIB|$$BROKER^XWBLIB]] function in M code to determine whether the code is being run in an environment where it was invoked by the Broker. This can help you use M code simultaneously for Broker and non-Broker applications.&lt;br /&gt;
&lt;br /&gt;
You can use the [[RPC_HELP_TRPCBroker_RPCVersion|RPCVersion]] property to support multiple versions of an RPC. The RPCVersion [[RPC_HELP_TRPCBroker_RPCVersion_Example|RPCVersion Example]] shows you how to do this on the client and server sides.&lt;/div&gt;</summary>
		<author><name>Kdtop</name></author>
	</entry>
</feed>