SHOW:
|
|
- or go back to the newest paste.
1 | - | var xmlhttp = new XMLHttpRequest(); |
1 | + | var xmlhttp = new XMLHttpRequest(); |
2 | - | xmlhttp.open("POST", "http://service.project-development-site.de/soap.php",true); |
2 | + | xmlhttp.open("POST", "http://service.project-development-site.de/soap.php",true); |
3 | - | xmlhttp.onreadystatechange=function() { |
3 | + | xmlhttp.onreadystatechange=function() { |
4 | - | if (xmlhttp.readyState == 4) { |
4 | + | if (xmlhttp.readyState == 4) { |
5 | - | alert(xmlhttp.responseText); |
5 | + | alert(xmlhttp.responseText); |
6 | - | } |
6 | + | } |
7 | - | } |
7 | + | } |
8 | - | var Username = "ALL"; |
8 | + | var Username = "ALL"; |
9 | - | xmlhttp.setRequestHeader("SOAPAction", "http://service.project-development-site.de/soap.php"); |
9 | + | xmlhttp.setRequestHeader("SOAPAction", "http://service.project-development-site.de/soap.php"); |
10 | - | xmlhttp.setRequestHeader("Content-Type", "text/xml"); |
10 | + | xmlhttp.setRequestHeader("Content-Type", "text/xml"); |
11 | - | var myCars=new Array(); // regular array (add an optional integer |
11 | + | var myCars=new Array(); // regular array (add an optional integer |
12 | - | |
12 | + | |
13 | - | |
13 | + | |
14 | - | var xml = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' + |
14 | + | var xml = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' + |
15 | - | '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">' + |
15 | + | '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">' + |
16 | - | '<soapenv:Header/>' + |
16 | + | '<soapenv:Header/>' + |
17 | - | '<soapenv:Body>' + |
17 | + | '<soapenv:Body>' + |
18 | - | '<tem:getAccessTokenSoapInPart>' + |
18 | + | '<tem:getAccessTokenSoapInPart>' + |
19 | - | '<tem:soapIn>' + |
19 | + | '<tem:soapIn>' + |
20 | - | '<tem:random>sss</tem:random>' + |
20 | + | '<tem:random>sss</tem:random>' + |
21 | - | '</tem:soapIn>' + |
21 | + | '</tem:soapIn>' + |
22 | - | '</tem:getAccessTokenSoapInPart>' + |
22 | + | '</tem:getAccessTokenSoapInPart>' + |
23 | - | '</soapenv:Body>' + |
23 | + | '</soapenv:Body>' + |
24 | - | '</soapenv:Envelope>'; |
24 | + | '</soapenv:Envelope>'; |
25 | xmlhttp.send(xml); |