This function is called sendWpsExecuteRequest and the data is called crateWpsExecuteXML.  The contentType should not be anything but text/xml, though this may be used incorrectly elsewhere.  I believe it is passed in in those cases to pass through to the createWpsExecuteXML where the mimeType is a useful thing.  Correct me if I'm wrong.