I see that SharePoint 2010 makes javascript ajax calls to some pretty slick internal services like
https://<server>/_vti_bin/socialdatainternalservice.json
https://<server>/_vti_bin/TaxonomyInternalService.json
how are these different than something like https://<server>/_vti_bin/SocialDataService.asmx which has documentation. There are some requests used by those internal calls which I would really like to be able to duplicate. Any help would be appreciated.
Watching the console which pressing the “Tags & Notes” button you can see SharePoint make a single ajax post to https://<server>/_vti_bin/socialdatainternalservice.json/GetSocialTagInternal which it sends a very concise data : '{"targetPage":"your url here","maximumItemsToReturn":"12"}' and receives in kind a very pretty:
{
"d":{
"MyTags":[
{
"Term":"I like it",
"TermFullPathName":"[Keywords:I like it]",
"TermID":"9f2d5361-a23f-4d95-be9b-f9d385a0f5b9",
"Path":"I like it",
"IsPrivate":false
}
],
"OtherTags":[
{
"Term":"I like it",
"TermFullPathName":"[Keywords:I like it]",
"TermID":"9f2d5361-a23f-4d95-be9b-f9d385a0f5b9",
"Path":"I like it",
"IsPrivate":false
},
...
If anyone can think of any way to get that kind of a return from an existing SP web service I would be eternally grateful.
From what I see this is the exact web service call you are looking for. Tt is SOAP and not JSON but other than that it does what you ask and returns the Tags of the current user on the specified URL, namely an array of
SocialTagDetailwith all details…To call a SOAP web service via javascript see these: