How can i receive my own vcard , or anyone from th - WeOnlyDo Discussion board

How can i receive my own vcard , or anyone from th (General questions)

by johnybe2003, Saturday, December 20, 2008, 20:19 (5816 days ago)

I have tried xmpp1.vcard.receive for myself...but no result
Finally i have tried using debugfile, and in that file i see an error
[code]SERVER: <iq type= error id= 30784 to= johnyb@home/wodXMPP from= johnyb@172.16.1.41 ><VCARD xmlns= vcard-temp /><error code= 404 type= cancel ><remote-server-not-found xmlns= urn:ietf:params:xml:ns:xmpp-stanzas /></error></iq>[/code]

Can anyone guide me ?

Thank you for your time,
Boboc Ionut

Re: How can i receive my own vcard , or anyone fro

by woddrazen, Sunday, December 21, 2008, 01:49 (5816 days ago) @ johnybe2003

Hi Johnny,


Please call Receive Method inside your code
[code]wodXMPP1.VCard.Receive[/code]
and then read output inside VCardDetails Event
[code]Private Sub wodXMPP1_VCardDetails(ByVal Contact As WODXMPPCOMLib.IXMPPContact, ByVal Partial As Boolean)
MsgBox wodXMPP1.VCard.FirstName
End Sub[/code]
More help for VCardDetails Event you can find here:
http://www.weonlydo.com/XMPP/Help/WODXMPPLib~wodXMPP~VCardDetails_EV.html

Let us know how it goes.


Regards,
Drazen

Re: How can i receive my own vcard , or anyone fro

by johnybe2003, Sunday, December 21, 2008, 10:06 (5815 days ago) @ woddrazen

that's exactly how i did, i'm using openfire web server, and when i call xmpp.vcard.receive, i get error from server, on the same server another client works and receives the information.

The error i get when trying to receive the details are in my first post.
Thank You

Re: How can i receive my own vcard , or anyone fro

by woddrazen, Sunday, December 21, 2008, 12:33 (5815 days ago) @ johnybe2003

Johnny,


Did you try same with some other XMPP client maybe? Does it work there?

Is there any chance we can connect to that server and duplicate your problem?


Drazen

Re: How can i receive my own vcard , or anyone fro

by johnybe2003, Sunday, December 21, 2008, 12:49 (5815 days ago) @ woddrazen

Johnny,


Did you try same with some other XMPP client maybe? Does it work there?

Is there any chance we can connect to that server and duplicate your problem?


Drazen

Unfortunately the server is installed only on my local pc, if you want to test, you can grab a server from here
http://www.igniterealtime.org/downloads/index.jsp
if i'm not allowed to post links, you can modify my post, in a week there will be an online version.

The server install is a clean standard one, the ideea is that with other clients, Spark, it gets the vcard.

Thank you for your time,
Boboc Ionut

Re: How can i receive my own vcard , or anyone fro

by woddrazen, Sunday, December 21, 2008, 15:29 (5815 days ago) @ johnybe2003

Johnny,


I manage to duplicate your problem using OpenFire Jabber server. I will now forward your problem to our developers.

You should receive response from them when we have more about your problem.


Drazen

Re: How can i receive my own vcard , or anyone fro

by woddrazen, Sunday, December 21, 2008, 18:44 (5815 days ago) @ woddrazen

Johnny,


Your problem should be fixed. Can you please request update and try it again?

Let us know how it goes.


Drazen

Re: How can i receive my own vcard , or anyone fro

by johnybe2003, Monday, December 22, 2008, 20:05 (5814 days ago) @ woddrazen

Johnny,


Your problem should be fixed. Can you please request update and try it again?

Let us know how it goes.


Drazen

Hello,
When i call xmpp.vcard.receive,I receive an error message Remote server not found but i am connected and i can send and receive messages

thank you,
Boboc Ionut

Re: How can i receive my own vcard , or anyone fro

by wodDamir, Monday, December 22, 2008, 20:58 (5814 days ago) @ johnybe2003

Boboc,

I assume you are logged in with an JID that has your IP instead of hostname.

This isn't same as if you log in with your Hostname in JID. I.e: when you log in as Johnnybe@192.168.0.1 and try to receive VCard, it would fail, since server will try to send VCard to Johnnybe@your-host which doesn't exist.

If you simply log in with Johnnybe@your_hostname it should work. I get the same result if i try logging in as Damir@127.0.0.1 and try to receive VCard.

However, everything works if I log in as Damir@Damir-PC .

Regards,
Damba

Re: How can i receive my own vcard , or anyone fro

by johnybe2003, Tuesday, December 23, 2008, 11:20 (5813 days ago) @ wodDamir

Boboc,

I assume you are logged in with an JID that has your IP instead of hostname.

This isn't same as if you log in with your Hostname in JID. I.e: when you log in as Johnnybe@192.168.0.1 and try to receive VCard, it would fail, since server will try to send VCard to Johnnybe@your-host which doesn't exist.

If you simply log in with Johnnybe@your_hostname it should work. I get the same result if i try logging in as Damir@127.0.0.1 and try to receive VCard.

However, everything works if I log in as Damir@Damir-PC .

Regards,
Damba


[:smile:] Indeed, this was the problem,
Thank you again for your support.

Re: How can i receive my own vcard , or anyone fro

by johnybe2003, Saturday, January 03, 2009, 17:44 (5802 days ago) @ johnybe2003

I have another problem...
[code]procedure TMainForm.xmppVCardDetails(ASender: TObject;
const Contact: IXMPPContact; Partial: WordBool);
[/code]
I can't use any information conained into Contact for example contact.name or contact.jid...i get a read adress error....

or am i doing it wrong ?

thank you,
Boboc Ionut

Re: How can i receive my own vcard , or anyone fro

by woddrazen, Sunday, January 04, 2009, 00:21 (5802 days ago) @ johnybe2003

Johnny,


I have try to duplicate your issue but unfortunately didn't have luck.

That issue happened with any Jabber server or with some specific one? You are using VCardDetails Event to receive contact details for your account or for some other contact from your list?

In which environment you are using wodXMPP?

Sorry for all my questions but we hae to isolate your problem somehow and try to resolve it.


Drazen

Re: How can i receive my own vcard , or anyone fro

by johnybe2003, Sunday, January 04, 2009, 10:16 (5801 days ago) @ woddrazen

Johnny,


I have try to duplicate your issue but unfortunately didn't have luck.

That issue happened with any Jabber server or with some specific one? You are using VCardDetails Event to receive contact details for your account or for some other contact from your list?

In which environment you are using wodXMPP?

Sorry for all my questions but we hae to isolate your problem somehow and try to resolve it.


Drazen

I am using delphi ( tried with 7 and 2007 ) and openfire webserver (i have the latest versions...wodxmpp, openfire)

I think i have found the problem, it is from when i request my own vcard
xmpp.vcard.receive;

on this procedure i get the error while trying to access contact object in onvcarddetails .

Re: How can i receive my own vcard , or anyone fro

by wodDamir, Sunday, January 04, 2009, 12:58 (5801 days ago) @ johnybe2003

Hi Boboc,

I believe I duplicated this problem. I've forwarded it to our programmers to check why this is causing.

We will let you know as soon as we know more on this problem.

Regards,
Damba

Re: How can i receive my own vcard , or anyone fro

by wodDamir, Sunday, January 04, 2009, 17:03 (5801 days ago) @ wodDamir

Boboc,

After discussing with our programmers, we actually agreed that this isn't a bug. We don't provide reference to Contact (is null) in case where contact requests his own VCard. We populate VCard object instead.

Contact reference in VCardDetails event will only be provided if requested VCard is someone elses.

Regards,
Damba

Re: How can i receive my own vcard , or anyone fro

by johnybe2003, Sunday, January 04, 2009, 21:26 (5801 days ago) @ wodDamir

Boboc,

After discussing with our programmers, we actually agreed that this isn't a bug. We don't provide reference to Contact (is null) in case where contact requests his own VCard. We populate VCard object instead.

Contact reference in VCardDetails event will only be provided if requested VCard is someone elses.

Regards,
Damba

I understand, i have used it like so, after your earlier questions and it was ok,
Thank you,
Boboc Ionut