I have invoked it from Info*Engine task. Check the following.
----------------------------------------------------------------------------------
<?xml version="1.0" standalone="yes"?>
<%@page access="http"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>
<%@page import="com.infoengine.object.factory.Att"%>
<%@page import="com.infoengine.object.factory.Element"%>
<%@page import="com.infoengine.object.factory.Group"%>
<%
try{
Task task = new Task();
task.setTaskURI("com/ptc/windchill/ws/create.xml");
task.addParam("INSTANCE", "com.ptc.Windchill");
task.addParam("supporting-adapter", "com.ptc.Windchill");
Element element = new Element();
element.setFti("wt.part.WTPart");
Att att1 = new Att("name");
att1.setValue("Part_created_from_InfoEngine12333");
Att att2 = new Att("number");
att2.setValue("IS100012333");
element.addAtt(att1);
element.addAtt(att2);
Group grp = new Group("objects");
grp.addElement(element);
task.addGroup(grp);
task.invoke();
}catch (IEException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("End");
%>