I wrote a code like this.
Code:
HandlerObjectName.prototype._searchGal =
function() {
var url = "/service/soap";
var reqHeader = {};
var data = '<?xml version="1.0" encoding="utf-8"?>' +
'<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">' +
'<soap:Header>' +
'<context xmlns="urn:zimbraAccount">' +
'<nosession/>' +
'</context>' +
'</soap:Header>' +
'<soap:Body>' +
'<SearchGalRequest><name>"userName"</name></SearchGalRequest>' +
'</soap:Body>' +
'</soap:Envelope>';
AjxRpc.invoke(data,
url,
reqHeader,
new AjxCallback(this, this._callback));
};
HandlerObjectName.prototype._callback =
function(obj, result) {
alert("obj.text = " + obj.text);
}; It occurred UNKNOWN_DOCUMENT Exception.