Solved! Go to Solution.
//function call for fetching a rest Services Page. This will return a dojo.deferred var fetchRestServicesPage = function (path){   return dojo.io.script.get({       url: url,       callbackParamName: "callback"   }); };   //sample usage var serviceInfoCall = fetchPage("http://services.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer");  //wait for a response before proceeding               serviceInfoCall.then(function(serviceInfo){   var documentTitle = serviceInfo.documentInfo.Title;      //do what you want with the title here    )}; //function call for fetching a rest Services Page. This will return a dojo.deferred var fetchRestServicesPage = function (path){   return dojo.io.script.get({       url: url,       callbackParamName: "callback"   }); };   //sample usage var serviceInfoCall = fetchPage("http://services.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer");  //wait for a response before proceeding               serviceInfoCall.then(function(serviceInfo){   var documentTitle = serviceInfo.documentInfo.Title;      //do what you want with the title here    )}; I was trying to build this into PrintPlus custom widget without any succes. I have a webapp where you can reach several map services, what are seeded from different MXD-s with appropriate metadata (title, author ect.). Right now, i can only set the config file to fill the titleblock. Do you have any solution for this? It would be a really good feature.