Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function call2WS() {
- var soapEnv = "<?xml version='1.0' encoding='utf-8'?>
- <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/'>
- <soap:Body>
- <GetUserProfileByName xmlns='http://microsoft.com/webservices/SharePointPortalServer/UserProfileService'>
- <AccountName>domain\username</AccountName>
- </GetUserProfileByName>
- </soap:Body>
- </soap:Envelope>";
- var call = $.ajax({
- url: "http://sharepoint/_vti_bin/UserProfileService.asmx/GetUserProfileByName",
- type: "POST",
- dataType: "xml",
- username: "domain\username",
- password: "passwd",
- data: soapEnv,
- headers: {
- contentType: "text/xml; charset="utf-8""
- }
- });
Add Comment
Please, Sign In to add comment