Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2. var soapMessage =
  3.   "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" +
  4.   "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ser='http://service.execbo.ws.framework.totvs.com'>" +
  5.       "<soapenv:Header/>" +
  6.       "<soapenv:Body>" +
  7.       "<ser:userLogin>" +
  8.       "<arg0>user</arg0>" +
  9.       "</ser:userLogin>" +
  10.       "</soapenv:Body>" +
  11.   "</soapenv:Envelope>";
  12.  
  13.   var wsUrl = "http://IP:PORTA/wsexecbo/WebServiceExecBO?wsdl/userLogin";
  14.   $.ajax({
  15.       type: "POST",
  16.       dataType: "xml",
  17.       url: wsUrl,
  18.       data: soapMessage,
  19.       success: function(data) {
  20.           console.log(data);
  21.       },
  22.       error: function(error) {
  23.           console.log(error);
  24.       }
  25.   });
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement