cancel
Showing results for 
Search instead for 
Did you mean: 

Sample code Javascript calling a Webservice of SAP By Design with user/pw authorization

Pgeelen
Discoverer
0 Kudos

Does someone perhaps has a sample Javascript program how to call a SAP ByDesign webservice including a user and password ? Thanks a lot !!

I have created a webservice which has to be called buy an external application in JavaScript.

The webservice is working perfect...and I can test it with the tool SOAPUI.

But now we do not succeed in calling this webservice in a Java-Script program.

Allthough we provide the script with the correct user and password we get authorization error 501.

Do you have a sample code for me?

Accepted Solutions (0)

Answers (2)

Answers (2)

Pgeelen
Discoverer
0 Kudos

Sorry for my late respsonse ...i didn't see your answer. Problem is solved.

I found the code how to provide user and passwd and get results in JAVA.

former_member183363
Active Contributor
0 Kudos

That sounds like a question best suited for stackoverflow to be honest --- have you tried there?