Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="/jquery-1.11.1.js"></script>
- <script src="/jquery.SPServices-2014.02.min.js"></script>
- <script type="text/javascript" language="javascript">
- $(document).ready(function() {
- $.ajax({
- type: "POST",
- url: "http://xxx/soap11/ValidateSourceCode?wsdl",
- username: "xyz",
- password: "xyz",
- dataType: "xml",
- data: {},
- processData: false,
- contentType:"text/xml; charset="utf-8"",
- success: function (msg) {
- alert($(msg).text());
- //console.log($(msg).text());
- },
- error: function(xhr, status, error){
- alert(xhr.status);
- alert(xhr.error);
- }
- }); });
- </script>
- $.ajax({
- type: "GET",
- url: "http://xxx/soap11/ValidateSourceCode?wsdl",
- data: {},
- contentType:"text/xml; charset="utf-8"",
- success: jqSuccess,
- error: jqError
- });
- $.ajax({
- type: "GET",
- url: "/api/yourLocalSoapClient.php",
- data: {query:'testApi'},
- contentType:"text/xml; charset="utf-8"",
- success: jqSuccess,
- error: jqError
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement