Exchange Web Services jQuery AJAX call -
is possible call exchange web services using jquery's ajax function? if code examples work? hosting html file in same directory exchange.asmx iis. running script in file , "method not allowed" response. clues? (username, password, domain renamed in script below obvious reasons...)
$.ajax({ url: "exchange.asmx/finditem", data: '{"username":"username", "password":"password", "domain":"domain"}', type: "post", contenttype: "application / json; charset = utf-8", datatype: "json", success: function (data) { alert("success " + data); }, error: function (data) { alert("error " + data.statustext); } });
ews return xml, not json - quick google gives this: http://openlandscape.net/2009/09/25/call-soap-xm-web-services-with-jquery-ajax/ not 100% sure if it's right ews or not google on soap xml jquery or , should able figure out. looks it's on right track anyway.
also there's util out there testing ews soap packages lot: http://soape.codeplex.com/
if exchange server uses ntlm, won't need username/password authenticate user doing call.
Comments
Post a Comment