Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var soapMessage =
- "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" +
- "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ser='http://service.execbo.ws.framework.totvs.com'>" +
- "<soapenv:Header/>" +
- "<soapenv:Body>" +
- "<ser:userLogin>" +
- "<arg0>user</arg0>" +
- "</ser:userLogin>" +
- "</soapenv:Body>" +
- "</soapenv:Envelope>";
- var wsUrl = "http://IP:PORTA/wsexecbo/WebServiceExecBO?wsdl/userLogin";
- $.ajax({
- type: "POST",
- dataType: "xml",
- url: wsUrl,
- data: soapMessage,
- success: function(data) {
- console.log(data);
- },
- error: function(error) {
- console.log(error);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement