June 15, 2015

How to Invoke Siebel Business Service using URL?

SWEAPI is no doubt is one of the most neglected yet powerful feature of Siebel. It allows applications to integrate with Siebel as RESTful HTTP requests. SWEAPI is well documented and is powerful enough perform most of business operations similar to navigating around views and invoke methods of business services.

URL can be invoked from any HTTP client (likes of cURL) and is independent of User Agents. Output of business service can be transformed using XSLT style-sheets.

Following URL is an example for invoking business service through single URL. It is capable of logging into application and execute a business service(did I say workflows as well?).

This URL can give following output:

SWEDataOnly : Removes unnecessary navigational information from output
SWESetMarkup : Forces the output format to XML
SWEUserName : Application login user name
SWEPassword : Application password
SWEAC : Secondary command that is executed after login
SWEMethod : Method of business service to invoke
SWEService : Business service name

In this example there is no need to maintain the session keys. SWEAC argument does the heavy lifting for us, it allows to pass additional command along with default command.

In this example first command does the login and second command executes method on business service.
Don't forget to add your custom business service into the Application's Object ClientSideBusinessService user properties.

SWEAPI can help you to query business components and custom methods in case you are feeling a bit more creative.

See how to invoke Siebel workflow through command line.

No comments :

Post a Comment