Creating new items thru scheduled tasks

I am using a scheduled task extension to create new content items. The API that I am calling is:

IPSContentWs cws = PSContentWsLocator.getContentWebservice();
cws.createItems(“rffGeneric”, 1);

Generally, this API works perfectly fine if called from a pre processor extension. However, now when I am invoking it thru a Scheduled Task extension, it is giving me the following Java Extension:

15:55:00,398 INFO [STDOUT] java.lang.IllegalStateException: No request initiali
zed for the current thread
15:55:00,398 INFO [STDOUT] at com.percussion.webservices.content.impl.PSCon
tentWs.getRequest(Unknown Source)
15:55:00,398 INFO [STDOUT] at com.percussion.webservices.content.impl.PSCon
tentWs.getItemDefinition(Unknown Source)
15:55:00,398 INFO [STDOUT] at com.percussion.webservices.content.impl.PSCon
tentWs.createItems(Unknown Source)

Any clues?? Or is it even possible to invoke this API from within the Scheduled task extension?

thanks
Manvinder

I’m not sure who / what runs the scheduled task so I would login (using webservices) first. I may be completely off track here though…