First of all let me clarify whether you have configured your service task as shown in my picture below:
Once you have selected this type of implementation you need to configure the Connector like shown below:
As you have mentioned correctly - You would need to import some dependencies in order to do so.
Let me know which Camunda Distribution you are using.
An example for Java can be found right here: