cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

Hi,

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

Regards,

Mithun

Accepted Solutions (0)

Answers (2)

Answers (2)

Suchita92
Participant

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[^].

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks a lot Suchita Phulkar and Tobias Kuhn...

Let me try....