Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <script src="/jquery-1.11.1.js"></script>
  2. <script src="/jquery.SPServices-2014.02.min.js"></script>
  3. <script type="text/javascript" language="javascript">
  4.  
  5. $(document).ready(function() {
  6. $.ajax({
  7. type: "POST",
  8. url: "http://xxx/soap11/ValidateSourceCode?wsdl",
  9. username: "xyz",
  10. password: "xyz",
  11. dataType: "xml",
  12. data: {},
  13. processData: false,
  14. contentType:"text/xml; charset="utf-8"",
  15. success: function (msg) {
  16. alert($(msg).text());
  17. //console.log($(msg).text());
  18. },
  19. error: function(xhr, status, error){
  20. alert(xhr.status);
  21. alert(xhr.error);
  22.  
  23. }
  24. }); });
  25.  
  26.  
  27. </script>
  28.  
  29. $.ajax({
  30. type: "GET",
  31. url: "http://xxx/soap11/ValidateSourceCode?wsdl",
  32. data: {},
  33. contentType:"text/xml; charset="utf-8"",
  34. success: jqSuccess,
  35. error: jqError
  36. });
  37.  
  38. $.ajax({
  39. type: "GET",
  40. url: "/api/yourLocalSoapClient.php",
  41. data: {query:'testApi'},
  42. contentType:"text/xml; charset="utf-8"",
  43. success: jqSuccess,
  44. error: jqError
  45. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement