on 10-27-2015 7:50 AM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
"
and whether we can achive this using oData or not?
Thanks,
Kotesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.