Version Mismatch Detection

The isCompatible method prevents version mismatch between incompatible versions of SAP Mobile WorkSpace and SAP Mobile Server.

Examples include:

  • A later version of SAP Mobile WorkSpace connecting to an earlier version of SAP Mobile Server.
  • An earlier version of SAP Mobile WorkSpace connecting to a later version of SAP Mobile Server.

If the two are incompatible, an error message is generated. For this version of SAP Mobile Platform, when SAP Mobile WorkSpace attempts to connect to an older SAP Mobile Server version from a connection profile, the error "UnsupportedOperationException" displays and connection fails.

boolean isCompatible(string server_host, int iiop_port, int client_version)

SAP Mobile Server responds with true or false based on the version identifier passed from the client and is checked for support of that version. This method works with any SAP Mobile Server in a cluster, without the need to specify the host and port of the primary.