submitting ecl workunits through soap
we can retrieve work unit information over soap utilizing the wsdl available from ecl watch (/wsworkunits/?ver_=1.34&wsdl). is there a way to submit an ecl query through soap using a combination of the methods available, essentially simulating the ecl ide submit button and the eclplus asynchronous submission?
- Verticon
- Posts: 1
- Joined: Mon Feb 27, 2012 5:31 pm
Yes, in fact both the ECL IDE and eclplus make SOAP calls to WsWorkunits in order to create and run workunits.
WsWorkunits has a lot of SOAP operations and quite a few parameters on top of those, and it isn't currently documented, but the basic steps would be:
You can get indiviual wsdls for each operation: /WsWorkunits/<operation_name>?wsdl
You can also access a test form and test the operations via browser: /WsWorkunits/<operation_name>?form
WsWorkunits has a lot of SOAP operations and quite a few parameters on top of those, and it isn't currently documented, but the basic steps would be:
- Create a Workunit by calling WUCreate.
- Update that Workunit by calling WUUPdate:
- Set Wuid to the value returned by WUCreate.
- Set QueryText to your ECL text or archive (if you have multiple files or library dependencies you will have to create an archive before sending).
- Set Action to 3 (Compile = 1, Check = 2, Run = 3)
- Typically set Result limit to something like the IDE default of 100.
- Set Wuid to the value returned by WUCreate.
- Run workunit by calling WUSubmit
- Set Wuid to the value returned by WUCreate.
- Set Cluster to target cluster to run on.
- Set MaxRunTime to wait (0) for async.
- Set Syntax check to false. (used for only doing syntax check).
- Set Wuid to the value returned by WUCreate.
- You can poll for state change by calling WUInfo, or maybe WUQuery.
- You can wait for completion synchronously by calling WUWaitComplete.
- There are multiple operations for retrieving results after completion.
You can get indiviual wsdls for each operation: /WsWorkunits/<operation_name>?wsdl
You can also access a test form and test the operations via browser: /WsWorkunits/<operation_name>?form
- [email protected]
- Community Advisory Board Member
- Posts: 35
- Joined: Tue Jun 14, 2011 9:38 pm
Hi,
Can you please help with excat steps and how we will be using this soap calls.
Can you please help with excat steps and how we will be using this soap calls.
- harshdesai
- Posts: 29
- Joined: Fri Feb 23, 2018 8:30 am
Can you describe the functionality you are trying to provide? For example is this a standalone client or part of a query or service? Do you want to wait asynchronously for results? How long will each workunit take to complete?
There are several ways of running jobs via SOAP and what you use depends on the client behavior you are trying to achieve.
There are several ways of running jobs via SOAP and what you use depends on the client behavior you are trying to achieve.
- anthony.fishbeck
- Posts: 61
- Joined: Wed Jan 30, 2013 10:18 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest