This doesn't seem right. Are you trying to read in a Vendor object or trying to pass a Vendor id to the RestService?