Skip to Content

How to consume SOAP based webservice in SAPUI5

Hi All,

I am trying to consuming SOAP based websrvice in SAP UI5 application, but dont know how to do this.

I have found a tutorial where we can use SAPUI5 views in dynamic Java web project.

Integrating Business ByDesign with HCP - Drag and Drop

In this tutorial SOAP webservie have almost done it, I can run servlet and it returns OK status.

But I want to pass data from SAPUI view to servlet, which I again dont know how to do it.

if I want to pass parameter in servlet from JAVASCRIPT then how to do that.

Thanks

sunil Maurya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 20, 2014 at 12:03 PM

    Hope you have created servlet and declared it in web.xml file

    If not check below link.

    Servlets First Examples

    Check below sample for calling servlet from jquery

    $.ajax({
               type: "POST/GET",
               url: 'servletname in web.xml file',
               dataType: "json", //if you want to return xml file, then chagne the datatype as xml
               success: function(data)
               {
    // your servlet data
               }, 
               error: function (xhr, ajaxOptions, thrownError) {
    // you will get error details here
               },
               beforeSend: function(){
    //call busy indicator here. in success hide the busy indicator.
               }
             });
    
    
    Add comment
    10|10000 characters needed characters exceeded