Create data subscription
The method part of the request shall be set to <Subscribe>.
This method has the following input parameters.
•  <requestedPort>: This is the local area network (LAN) port on the client application computer that shall be used to receive the information.
•  dataRequest: This is the actual specification of the subscription.
Note
It is not possible to use different ports for each data subscription. All data will be sent to the port specified in the first subscription that is requested.
This is an example of the contents of the <Request> field.
<request>
  <ClientInfo>
    <cid>1</cid>
    <rid>1</rid>
  </clientInfo>
  <type>invokeMethod</type>
  <targetComponent>RemoteDataServer</targetComponent>
  <method>
    <Subscribe>
      <requestedPort>12345</requestedPort>
      <dataRequest>BottomDetection</dataRequest>
    </Subscribe>
  <method>
</request>
The server application will respond with a Response message. This method has the following output parameters.
•  SubscriptionID: This is the identification of the current subscription. The identification can be used to differentiate between multiple subscriptions on the same port.
This is an example of the contents of the <Response> field.
<response>
  <ClientInfo>
    <cid dt="3">1</cid>
    <rid dt="3">1</rid>
  </clientInfo>
  <fault>
    <detail>
    <errorcode dt="3">0</errorcode>
    </detail>
  </fault>
  <SubscribeResponse>
    <subscriptionID dt=”3”></subscriptionID>
  </SubscribeResponse>
</response>