Subject: Getting VCard Data Error
I am using this following code for getting the data of particular user. First Thing when I call GetVcard(jid) function VCardResponse callback is call after completing all roster items,
after that when VCardResponse callback is call for each item it is giving following error.
after that when VCardResponse callback is call for each item it is giving following error.
- <iq type="error" id="MX_8" from="55555@192.168.101.209/Matrix-Windows-Phone" to="03234092397@192.168.101.209/Matrix-Windows-Phone" xmlns="jabber:client">
- <vCard xmlns="vcard-temp" />
- <error code="503" type="cancel">
- <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
- </error>
- </iq
- private void GetVcard(Jid jid)
- {
- Model.Utility.xmppClient.IqFilter.SendIq(viq, VcardResponse);
- }
- private void VcardResponse(object sender, IqEventArgs e)
- {
- if (e.Iq.Type == Matrix.Xmpp.IqType.result)
- {
- var vc = e.Iq.Query as Vcard;
- if (null != vc.Photo)
- {
- try
- {
- ContactPhoto = vc.Photo.Image.UriSource;
- }
- catch (Exception ex)
- {
- }
- }
- else
- {
- }
- }
- }