Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Integration

Highlighted
Anusha Karuppai
Occasional Advisor

Integration

HI, Can I get documents related to 'Integration with API'
2 REPLIES
Err_1
Honored Contributor

Re: Integration

Hi,

Can you specify better what is API and what is the product you want to integrate to?

If you have Service Desk 4.5, and you are talking about web-API, then within each service pack installation bits you can see the web-API guide and some examples to start with.

regards;
Randall Barrantes
SW Support Delivery Manager
Alan_7
Collector

Re: Integration

If you know Java and read the following code, that's easy, otherwise, start from Java first. :)

String server = login.getHostname();
String username = login.getUsername();
String password = login.getPassword();


/* Open a session to a running Service Desk application Server.
* Once you have a connection, you can use it to communicate with
* the server. The connection is to an instance of the workflow layer
* in the server that keeps state information for this client.
*/
try {
session = ApiSDSession.openSession(server, username, password);
} catch (RuntimeException e) {
/* Connecting can go wrong for various reasons. E.G. No server is
* running on this particular computer/port combination
* or the user/password combination was wrong. Catch the exception and
* print an error message for the user or for the log. The Web-API makes
* an effort to give sensible messages in the exceptions that it throws,
* and if possible, the messages are localised.
*
* NOTE that using System.out.println() can be problematic in some
* applications.
*/
System.out.println(e.getMessage());
return;
}

Consultant
//Add this to "OnDomLoad" event