Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3180

SAP UI5 call SAP consume webwervice

$
0
0

hi all,

i create webservice in the sap system.i call the soapui and webservice working fine.i want to call this webservice from sapui5 page,(after convert to apk,ipa application)....

can you help me please ?

1-webservice wsdl url

qmlist.jpg

2-soapui call the webservice work fine

e2.PNG

 

3-call the from sapui5 page not working.

$.ajax({  url: "http://host:8024/sap/bc/srt/wsdl/srvc_0050568C36051ED5BBC34D5DE35A22CE/wsdl11/allinone/ws_policy/document?sap-client=500",    type: "GET",  dataType: "xml", //""json",//"     data: "ARBPL=65-MEK",    contentType: "text/xml", //"application/atom+xml",//"text/xml", //"application/json",//"text/xml; charset=\"utf-8\"",  success: jQuery.proxy(function(data, textStatus) {  console.log("data" + data);     }, this),  error: jQuery.proxy(function(data, status, error) {  console.log("hata oluştuERROR");
  }, this)  });

4-i try to add soap syntax but not working

create_request:function (value1){     var request =      '<soapenv:Envelope xmlns:soapenv='+     '"http://schemas.xmlsoap.org/soap/envelope/"'+     'xmlns:urn='+     '"urn:sap-com:document:sap:rfc:functions">'+   '<soapenv:Header/>'+   '<soapenv:Body>'+      '<urn:ZQM_GET_LIST>'+         '<ARBPL>65-MEK</ARBPL>'+         '<QMLIST>'+            '<item>'+               '<QMNUM></QMNUM>'+               '<QMDAT></QMDAT>'+               '<QMTXT></QMTXT>'+            '</item>'+         '</QMLIST>'+      '</urn:ZQM_GET_LIST>'+   '</soapenv:Body>'+
'</soapenv:Envelope>';     return request;
}

Viewing all articles
Browse latest Browse all 3180

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>