You can pass primitive datatypes in REST and Webservices.
Have a look at the Mendix documentation about integration, or try one of the learning paths available to find out about the possibilities.