cancel
Showing results for 
Search instead for 
Did you mean: 

Soap Calls in sapui5

Former Member
0 Kudos

Hi All,

i am developing an application using Sapui5 in that i need to use some soap calls ,

i have tried soap calls using SOAPUI plugin they have given two URL's

ending with WSDL and Ending with SOAP,

in SOAPUI plugin i have used WSDL url and supplied the required payload i am getting the response .

in aplication controller how can i achieve this whether i need to use WSDL or SOAP url .

Can any one help me.

Thanks,

Kotesh.

Accepted Solutions (1)

Accepted Solutions (1)

vijay_kumar49
Active Contributor
0 Kudos

Please look at

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi all

i am using following code,

var wsUrl = "//sapgDavdF.cdg.com:53000/findITS2Service/findTDS2SearchService.svc?WSDL";

        var soapRequest =

'<?xml version="1.0" encoding="utf-8"?>' +
'<soapenv:Envelope ' +
'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" ' +
'xmlns:web="http://www.helpitsystems.com/matchit_api/webservices/" ' +  'xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">'+
'<soapenv:Header/>' +
'<soapenv:Body>' +
  '<web:FindRecords>' + '<web:objFRInput>' +'<web:SearchRecord>' +   '<web:Address1>Barrington Rd</web:Address1>' +   '<web:Address2></web:Address2>' +   '<web:Address3></web:Address3>' +   '<web:Address4></web:Address4>' +   '<web:Address5></web:Address5>' +   '<web:Country>US</web:Country>'
   '<web:Organization>Vistex Inc.</web:Organization>' +   '<web:Postcode>60169</web:Postcode>' +
   '<web:Premise>2300</web:Premise>' +   '<web:Region>IL</web:Region>' +   '<web:Town>Hoffman Estates</web:Town>' +'</web:SearchRecord>' +'<web:SpecificDataSourcesDelimited></web:SpecificDataSourcesDelimited>' + '</web:objFRInput>' +  '</web:FindRecords>' +'</soapenv:Body>' +'</soapenv:Envelope>';

         

         

          $.ajax({ 

                 url : wsUrl, 

                 type : "POST", 

                 data : soapRequest, 

                 dataType : "text", 

                 contentType : "text/xml; charset=\"utf-8\"", 

                 success : function(data, textStatus, jqXHR) { 

                        response = data; 

                        console.log(response);       

                 }, 

                 error: function(xhr, status) 

                 { 

                        console.log("ERROR");       

                 }, 

                 complete : function(xhr,status) { 

                        uicontrols(); 

                 } 

          }); 

it is getting an error like

"

net::ERR_SSL_PROTOCOL_ERROR",

and whether we can achive this using oData or not?

Thanks,

Kotesh.

vijay_kumar49
Active Contributor
0 Kudos

provide me full error message

karthikarjun
Active Contributor
0 Kudos

Hi Kotesh,

SAPUI5 - It is independent of database. It will work on both sap and non sap systems.

So if you have SOAP url. Better you can use it in oDATA model.

for ex: JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.model.odata.ODataModel

Simple OData Binding with SAPUI5 | SCN

Thanks,

Karthik A