Highlighted
Absent Member.
Absent Member.
7451 views

Service manager 9.32 rest api

Jump to solution

Hi All,

In my one of client machine installed the service manager 9.32

But when i browser that hp service manager from browser it didn't show the service document

i try this http://<servername> :<port>/sm/7/rest it show some service document

but when i try this http://<servername> :<port>/sm/9/rest it didn't  show  service document.

From where i found the port is right or wrong ?

Want the steps to enable the rest api service in SM 9.32 

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Service manager 9.32 rest api

Jump to solution

Hi,

In most setups, HPE SM includes a webtier and a SM server, the deployment would like below:

SNAG- 5-10-2016 1.35.58 PM MENGL7.png

Your webservice call shall access http://sm2.abc.com:13080/SM/9/rest/ 

And if you have both SM webtier and SM server installed on one server like sm.abc.om, then you can access the restful API by 

http://sm.abc.com:13080/SM/9/rest/ . If you get a blank page, you need to follow the steps I mentioned in the first reply.

If you are not sure about your system setup, you need to ask your administrator.

For more information, please read the online help about HPE SM vertical/horizantal setups chapter.

Thanks,

Ling-Yan

 

View solution in original post

11 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Service manager 9.32 rest api

Jump to solution

Hi,

To test the Restful API on the browser, basically you need to do 3 things:

1. Add password to your user.

2. add RESTful API capability words for your user:

SNAG- 5-6-2016 10.51.27 PM MENGL7.png

3. add restaccessviabrowser:1 parameter in your sm.ini file. The description of the parameter is at:

 https://s3.amazonaws.com/smhelpcenter/smhelp941/codeless/index.html#parameters/reference/startup_parameter_restaccessviabrowser.htm

For more guidance on restful webservice, you may check 

http://community.hpe.com/t5/Service-Manager-Service-Center/Curl-command-for-HPSM-webservices/td-p/6852377

I described the restful request by command lines, you can view the request and response easily.

And also you can take a look at https://www.youtube.com/watch?v=-GGZo5KPlIo

Hope it helps,

Ling-Yan

Highlighted
Absent Member.
Absent Member.

Re: Service manager 9.32 rest api

Jump to solution

Thanks for guidance, Its working for SM 9.32. However my another client machine installed 9.30 and don't know how we can integrate the SOAP wcf service with any application.

I think 9.30 don't support the rest api

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Service manager 9.32 rest api

Jump to solution

The short answer is no, full functional restful API was introduced in 9.32 release.

There is a restful API in 9.30 with limited functions, I would not recommend you to use it. You can use the SOAP API in 9.30.

Best regards,

Ling-Yan from HPE RnD

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Service manager 9.32 rest api

Jump to solution

Hi , As per the above solution i am using soap api, i tried that

hit the below url on browser

http://<server-name>:<port>/sm/7/incidentmanagement.wsdl

it prompt me the enter username and password  , why it prompt to ask me for username and psw

Want to see the wsdl, 

I know using .NET application consume the wsdl and create the proxy and called the particular method of that wsdl will give the output.

but the issue is that it asking to enter the username and password.

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Service manager 9.32 rest api

Jump to solution

Hi, I have url like this

https://<server name >/webtier-9.32/login.do

or

https://<server name >/webtier-9.32/index.do

so don't know how the rest url is formed like that

 

https://<server name > : <port>/webtier-9.32/sm/9/rest

or 

https://<server name > : <port>/sm/9/rest

 

Please provide the guidance.

Using HP SM web tier 9.32

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Service manager 9.32 rest api

Jump to solution

Hi,

It's like 

http://yourSMServerurl:13080/SM/9/rest/

You need to connect to SM server instead of SM webtier. The default port is 13080 instead of 8080.

You can read 

http://community.hpe.com/t5/Service-Manager-Service-Center/Curl-command-for-HPSM-webservices/td-p/6852377

https://www.youtube.com/watch?v=-GGZo5KPlIo

Thanks,

Ling-Yan

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Service manager 9.32 rest api

Jump to solution

http://yourSMServerurl:13080/SM/9/rest/ 

my sm is hosted on domain like

http://sm.abc..com/webtier-9.32/index.do

so url will be 

http://sm.abc..com : 13080/sm/9/rest

or 

http://sm.abc..com/webtier-9.32 : 13080/sm/9/rest

Please confirm it as it consfued for me yoursmserverurl term

 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Service manager 9.32 rest api

Jump to solution

Hi,

In most setups, HPE SM includes a webtier and a SM server, the deployment would like below:

SNAG- 5-10-2016 1.35.58 PM MENGL7.png

Your webservice call shall access http://sm2.abc.com:13080/SM/9/rest/ 

And if you have both SM webtier and SM server installed on one server like sm.abc.om, then you can access the restful API by 

http://sm.abc.com:13080/SM/9/rest/ . If you get a blank page, you need to follow the steps I mentioned in the first reply.

If you are not sure about your system setup, you need to ask your administrator.

For more information, please read the online help about HPE SM vertical/horizantal setups chapter.

Thanks,

Ling-Yan

 

View solution in original post

Highlighted
Absent Member.
Absent Member.

Re: Service manager 9.32 rest api

Jump to solution

Thanks for clearning my doubt.

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Service manager 9.32 rest api

Jump to solution

Hi  Ling-Yan,

My System administrator told me that they installed the HP service manager server 9.30 and using web-tier 9.32 on tomact server.

So is it possible to access the rest services in this case ?

Please guide us.

 

 

 

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Service manager 9.32 rest api

Jump to solution

The answer is NO, if you want to use Restful Webservice, the version of SM SERVER is 9.32 or later is required, not SM Webserver.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.