This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Connecting to HPSM through REST api

Hi all, 

 

I'm new to the REST api I was wondering where I can find:

 

1) The documentation for using REST api in Java to connect to HPSM ticketing database?

 

2)Where can I find the configuration settings to connect to my HPSM?

 

Any help would be much appreciated.

 

Kind Regards, 

Mark

Parents
  • Hey, simply sign in to http://softwaresupport.hp.com and down load the Web Services manual for the version you are on.

     

    Here is a link to 9.34 document:-

     

    https://softwaresupport.hp.com/group/softwaresupport/search-result/-/facetsearch/document/KM01043337

     

    It's best to setup a seperate port for web service connections.

     

    Details are all in the manual.

     

    REST services can be set up via the extaccess records in the application.

     

     

  • I am using HPSM rest api to post incident and retirieving incidents, but when i invoke post(save incident) service through java with HTTP URL Connection,  Initially it is taking nearly 5 mins for creatign incident, and then it is taking 30 secs for saving incident, 10 secs form retrieving incidents.

    My client(java application) is reciding in different machine and hpsm is installed in different machine.

    I am using Normal java code to connect hpsm.

    URL url = new URL("<HPSM URL Located in remote machine>");
    		HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    		conn.setRequestMethod("GET Or POST");
    		conn.setRequestProperty("Accept", "application/json");

     It would be appreciable, if any one provide solution.

    Thanks.

Reply
  • I am using HPSM rest api to post incident and retirieving incidents, but when i invoke post(save incident) service through java with HTTP URL Connection,  Initially it is taking nearly 5 mins for creatign incident, and then it is taking 30 secs for saving incident, 10 secs form retrieving incidents.

    My client(java application) is reciding in different machine and hpsm is installed in different machine.

    I am using Normal java code to connect hpsm.

    URL url = new URL("<HPSM URL Located in remote machine>");
    		HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    		conn.setRequestMethod("GET Or POST");
    		conn.setRequestProperty("Accept", "application/json");

     It would be appreciable, if any one provide solution.

    Thanks.

Children