For those who attended, Here is the code that I used in Live Demo. This basically tells the steps to follow if you want to call an External Web Service from Clarity (Say Google's Search Web Service ) using GEL Scripts.
In this Example, A Custom Object instance is created and any google Search string is provided in "Name" field of the instance. When Save/Submit is clicked, a Process runs which calls a Gel script. Gel Script then calls Google Web Service and gets the data in XML format. Gel Script breaks the XML, Loops through, extracts required data elements, stores them in variables and then finally Inserts them into a Custom Table. Portlet is created and NSQL query based on that Custom Table displays the Google Search Result data.
In this Example, for simplicity Google Search Web Service is used, but in Real life scenarios you can pull Stock/Currency Exchange etc information on Periodic basis through Clarity job. Likewise you can also pull and use other Web Services provided by Internal applications like SAP, .NET/Java Applications, CA Service Desk, HR/Asset Management applications or product Suites.
In similar fashion, Other Internal Apps can also access Clarity's data through Web service. Clarity exposes it's Web Services at http://clarity-server-name/niku/xog that others can use.
Post a comment or mail me if you need some other/related examples or have any specific query.
Do have any example which shows how to call clarity webservices from SAP.I tried to create client proxy for WSDL :http://portfoliomanagement.ca.com/niku/wsdl/Object/Projects
ReplyDeletebut it is giving error as below. Please suggest.
Proxy generation terminated: Message must have exactly one part
Message no. SPRX046
Background
During proxy generation, an interface description in WSDL format is fetched from the Integration Builder or another source and interpreted. This WSDL document must describe the whole interface correctly.
==> Display WSDL Document
Diagnosis
In a WSDL document, a must contain exactly one , therefore:
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI am working with the Clarity, and the intention is when the Project end date is changed, the entire plan should be updated accordingly.
ReplyDeleteI am trying to invoke the AutoScheduleJob from the GEL script.
I have created a process with the step containing the GEL script
In the class AutoschedulerJob, the method to be invoked is
public void scheduledEventFired(JobSchedulerContext _jobContext) throws Exception
Thing is that I need to create an object of JobSchedulerContext and it is an interface. I am looking for JobSchedulerContext implementation classes.
Or is there any other way of achieving the functionality.
I am also looking for all the webservices available to communicate with Clarity
Thanks in Advance.
Google SOAP UI has been depreciated. Have you figured out a workaround it?
ReplyDeleteJohn