Skip to Content
0

SAP C4C Web Service SOAP and REST API Consume in JQuery or JavaScript with Basic Authorization

Mar 09 at 10:05 AM

135

avatar image
Former Member

Hi,

Is it possible to consume or call C4C SOAP or OData from JavaScript or Jquery with username and password.

Regards,

Mithun

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Suchita Phulkar Mar 12 at 01:24 PM
1

I think it should be possible !! SOAP & OData are just the protocols - since technically its possible to consume WSDL via JQuery & Javascript, it should be fine with C4C WSDL too. Only that SOAP consumption would be too cumbersome in case one had to do the XML build. JSON (& hence REST) is preferred in that regards

http://fahadismy.name/soap-calls-using-jquery-ajax[^],
http://openlandscape.net/2009/09/25/call-soap-xm-web-services-with-jquery-ajax[^],
http://www.lm-tech.it/Blog/post/2013/05/08/How-to-consume-a-RESTful-service-using-jQuery.aspx[^],
http://www.cnblogs.com/clearforever/archive/2011/10/09/2203628.html[^],
https://spring.io/guides/gs/consuming-rest-jquery[^].

Show 1 Share
10 |10000 characters needed characters left characters exceeded

It should be possible but be aware that if you build such functionality that will run in an browser that you don't run into problems with cross site scripting.

0
avatar image
Former Member Mar 22 at 03:14 PM
0

Thanks a lot Suchita Phulkar and Tobias Kuhn...

Let me try....

Share
10 |10000 characters needed characters left characters exceeded