AdamEve
AdamEve

Reputation: 11

consumme a webservice by REST with authentication in full javaScript

I would like to consumme a webservice in REST, in full javaScript. It is not really difficult as we need to use xmlHttRequest, Ajax,etc.

My issue is that I don't understand how to use the login and the password. I read a lot of comments (token, http...) but there is no example of code. Can someone post a code in javascript?

I found this usefull link but there is no code in cas of you have to provide a login and password?

Example Rest service in full javaScript

Upvotes: 0

Views: 26

Answers (1)

AdamEve
AdamEve

Reputation: 11

thank you for your help. I found the solution. You have to add in the header X-WSSE and you have to generate a digest password. it is the more difficult part.

Hope it is helpful.

regards

Upvotes: 1

Related Questions