xml = "" di varietà +
"" +
"" +
GenerateAuthenticationHeader () + " “+
“ “+
“ “+
“ “+
“ “+
"" +
"";
ActiveXObject più xmlHttpRequest = nuovo di varietà (“Msxml2.XMLHTTP„);
xmlHttpRequest.Open (“ALBERINO„,„ /mscrmservices/2007/CrmService.asmx ", falsi);
xmlHttpRequest.setRequestHeader (“SOAPAction„, “http://schemas.microsoft.com/crm/2007/WebServices/Execute ");
xmlHttpRequest.setRequestHeader (“Soddisfare-Tipo„, “testo/xml; charset=utf-8„);
xmlHttpRequest.setRequestHeader (“Soddisfare-Lunghezza„, xml.length);
xmlHttpRequest.send (xml);
resultXml di varietà = xmlHttpRequest.responseXML;
varietà userId = resultXml.selectSingleNode (“//UserId„) .text;
xml = "" di varietà +
"" +
"" +
GenerateAuthenticationHeader () + " “+
“ “+
“ systemuser„ +
“ “+ userId + "" +
“ “+
“ “+
“ firstname„ +
“ “+
“ “+
“ “+
“ “+
"" +
"";
ActiveXObject più xmlHttpRequest = nuovo di varietà (“Msxml2.XMLHTTP„);
xmlHttpRequest.Open (“ALBERINO„,„ /mscrmservices/2007/CrmService.asmx ", falsi);
xmlHttpRequest.setRequestHeader (“SOAPAction„, “http://schemas.microsoft.com/crm/2007/WebServices/Retrieve ");
xmlHttpRequest.setRequestHeader (“Soddisfare-Tipo„, “testo/xml; charset=utf-8„);
xmlHttpRequest.setRequestHeader (“Soddisfare-Lunghezza„, xml.length);
xmlHttpRequest.send (xml);
resultXml di varietà = xmlHttpRequest.responseXML;
crmForm.all.new_currentuser.DataValue = resultXml.selectSingleNode (“//q1: firstname„) .text;
|