Advertisement
Guest User

Untitled

a guest
May 27th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var soapDataString = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> \
  2.  <soap:Body> \
  3.    <Login xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \
  4.      <username>username</username> \
  5.      <password>password</password> \
  6.    </Login> \
  7.  </soap:Body> \
  8. </soap:Envelope>"
  9.  
  10. // Call web service
  11. $.ajax({
  12.   url: "http://mywebsitename:2355/_vti_bin/authentication.asmx",
  13.   type: "POST",
  14.   dataType: "xml",
  15.   data: soapDataString,
  16.   success: resultsFeedback,
  17.   contentType: "text/xml; charset=\"utf-8\""
  18. });
  19.  
  20. function resultsFeedback(xData, status) {
  21.    alert(xData);
  22.    alert(status);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement