Highlighted
Absent Member.
Absent Member.
4279 views

How to call SBM Restful webservices from outside of SBM

How to call SBM Restful webservices from outside of SBM. Can anyone share more information on it.

Thanks in Advance,
Sivabalan N.
0 Likes
5 Replies
Highlighted
Absent Member.
Absent Member.

Re: How to call SBM Restful webservices from outside of SBM

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to call SBM Restful webservices from outside of SBM

Even though you're not using SSO for everything SBM should accept valid SSO tokens. The steps listed in the doc should work for your system also, although it will be more difficult if you're using Integrated Windows Authentication.

Give it a shot and let us know how it works out for you!
0 Likes
Absent Member.
Absent Member.

Re: How to call SBM Restful webservices from outside of SBM

Thanks. How to set the credentials if we didn't use SSO. In the doc they specified only with SSO.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to call SBM Restful webservices from outside of SBM

Hi all,

I have tried the url to request token service.

http://Server:8085/idp/services/rest/TokenService/

{"status":"Error","error":{"reason":"'Content-Type' header must be present and set to 'application/json'"}}

Can anyone tell me how to pass the content type and credentials
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to call SBM Restful webservices from outside of SBM

I haven't tested but try something like this:

jQuerySBM.ajax({
url:"http://server:8085/idp/services/rest/TokenService",
type:"POST",
headers:{"Content-Type":"application/json", "Accept":"application/json"},
data:{"credentials":{"username":"you","password":"pwd"}}
});

You'll have to add your success/error handlers but the general request should look like that.
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.