Check expected parameters in invoke() function

Check which parameters the invoke() function expects.

function invoke( requestObj, headerObj, bEmitXsiTypeAttributes )

In this case, the headerObj and the bEmitXsiTypeAttributes are optional. They are “nullsub’ed” in the JavaScript code), so the requestObj is the only required argument.