The iWay Application Adapter for MUMPS RPCS service allows you to invoke any M routine using the M "DO" statement. The request is similar to RPCS.
<tns:RPCD location="mumps/RPCD" xmlns:tns="http://schemas.ibi.com/iwmumps/services"> <tns:Namespace>VISTA</tns:Namespace> <tns:Routine>DID</tns:Routine> <tns:Tag>FILE</tns:Tag> <tns:Parameters> <tns:Param>100003</tns:Param> <tns:Param>N</tns:Param> <tns:Param>NAME;GLOBAL NAME</tns:Param> <tns:Param>iWay</tns:Param> </tns:Parameters> </tns:RPCD>
If the routine is known to store values in a set of globals, those globals are returned in the response. Otherwise, the response is empty.
<RPCDResponse xmlns="http://schemas.ibi.com/iwmumps/services"> <Global name="iWay"> <Subscript>GLOBAL NAME</Subscript> <Value>^DIZ(100003,</Value> </Global> <Global name="iWay"> <Subscript>NAME</Subscript> <Value>ZZINDIVIDUAL</Value> </Global> </RPCDResponse>