Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

call sap webservice from java script

$
0
0

Hi All

 

I need to call sap  sap webservice from a java script i am  using below  code 

 

when i load above in html i m not able to get required  its getting blank page  whereas wsdl getting required o/p

 

<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>

<body>

 

alert ("1");

<script language="JavaScript">

     var iCallID;

 

     function InitializeService(){

      service.useService(xxxxxxxxxxxxxxxxxxxx,

    "HelloWorldService");

      service.HelloWorldService.callService("");

 

alert ("Hai");

     }

 

function ShowResult(){

      alert(event.result.value);

     }

    </script>

 

<h1>This is a Heading</h1>

<p>This is a paragraph.</p>

 

alert ("3");

 

  <body onload="InitializeService()" id="service"

    style="behavior:url(webservice.htc)" onresult="ShowResult()"> </body>

 

 

alert ("4");

 

 

 

</html>

</html>


Viewing all articles
Browse latest Browse all 8372

Trending Articles



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