Skip to Content
avatar image
Former Member

Soap Calls in sapui5

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 27, 2015 at 08:01 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Oct 27, 2015 at 09:34 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 27, 2015 at 10:30 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded