Example: Defining an RPC to Mark an Object Published
The StandardESIService has a method, recordExport(), which flags an object as published. The method has a void return type. Exposing the method as a Windchill ESI SOAP RPC requires the following:
Define an appropriate delegate type identifier. This is the name of the RPC class. The example type identifier is com.ptc.windchill.esi.Example3RPC.
Create a delegate definition. The example delegate definition is Example3RecordExport.
Windchill ESI services provide an LDIF file which contains the delegate type identifier and delegate definitions. You can import using the Delegate Administrator, the file <Windchill>/codebase/com/ptc/windchill/esi/examples/Example3.ldif.
Write the task that was defined in the delegate. The example delegate defines the task to be com/ptc/windchill/esi/examples/Example3RecordExport.xml. When ERP Connector is installed, the task is stored in the appropriate directory for Info*Engine to execute it. In a typical installation, the directory is <Windchill>/tasks/com/ptc/windchill/esi/examples and the task is stored in <Windchill>/tasks/com/ptc/windchill/esi/examples/Example3RecordExport.xml.
Was this helpful?