Invoke Epicor Function in Product Configurator?

Is it possible to Invoke a Epicor Function (which calls a web service) inside of Product Configurator?

For example, this is how I am invoking it in a Data Directive but the same code does not compile in PC.

var result = (Tuple<System.Data.DataSet>)this.InvokeFunction(“WebService”, “CallWS”, Tuple.Create(param1,param2,param3));