Soap : get non-scalar params from client

Some soap clients may pass arrays or objects to the soap server. The trim() function used by jRequest converts scalars objects into empty value. We test the scalar type before the empty test, and we use the empty() function only with scalar types.