2016-05-05 6 views

Antwort

0
 $.ajax({ 
      url : "www.webservice.com/someapi", 
      type : "POST", 
      data : request, // should you need to send request data 
      dataType : "text", 
      contentType : "text/xml; charset=\"utf-8\"", 
      success : function(data, textStatus, jqXHR) { 
        response = data; 
      }, 
      error: function(xhr, status) 
      { 
        jQuery.sap.log.info("Call to ws failed");   
      } 
      //do something with the **response** object (knowing that it's XML) 


     });