Hi Marc,
You can use the below code to create a web-i Service in 4.0
ReportEngine reportEngine = (ReportEngine)session.getService("", "WebiReportEngine");
infoStore = (IInfoStore)ession.getService("InfoStore");
This worked in our environment.
-Cimbu