I am using the "sender.c" sample given with the toolkit.
In file sender.c, function mySendData, I have a 0x5011 (SML_ERR_A_XPT_COMMUNICATION) error during a connection configured in XPT_REQUEST_SENDER.
According to the "SyncML Reference Toolkit", this connection should be a XTP_SetDocumentInfo followed by a XTP_GetDocumentInfo. It is this second call that fails. (the previous xptSendData and xptSendComplete are successfull).
As I am not sure of the sync server, I'd like to know how to point out where the error is. Can somebody help?
Thanks,
Charles-Christophe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The only modification I made was the destination URL. It now points to an external server over which I have no control. Since this server accepts first part of transfert, I suppose the URL is correctly entered.
I am running it on Debian stable (well, VMWare in fact), compiling with gcc 2.95.4.
Charles-Christophe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The sender example cannnot interact with other sync server yet. You should modify response receiving part of sender - it receives zero-length response now but it's not conformable to SyncML standard. (when we implement it in example, complexity will be increased. it's a kind of dillema =)
There has to use the length return value of GetDocumentInfo() in xptReceiveData()
I'll test it when I have spare time.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all,
I am using the "sender.c" sample given with the toolkit.
In file sender.c, function mySendData, I have a 0x5011 (SML_ERR_A_XPT_COMMUNICATION) error during a connection configured in XPT_REQUEST_SENDER.
According to the "SyncML Reference Toolkit", this connection should be a XTP_SetDocumentInfo followed by a XTP_GetDocumentInfo. It is this second call that fails. (the previous xptSendData and xptSendComplete are successfull).
As I am not sure of the sync server, I'd like to know how to point out where the error is. Can somebody help?
Thanks,
Charles-Christophe
Did you modify the examples?
If you did, can you upload the modification as patch file?
And can you tell us your development environment(OS, compiler, ...)
The only modification I made was the destination URL. It now points to an external server over which I have no control. Since this server accepts first part of transfert, I suppose the URL is correctly entered.
I am running it on Debian stable (well, VMWare in fact), compiling with gcc 2.95.4.
Charles-Christophe
The sender example cannnot interact with other sync server yet. You should modify response receiving part of sender - it receives zero-length response now but it's not conformable to SyncML standard. (when we implement it in example, complexity will be increased. it's a kind of dillema =)
There has to use the length return value of GetDocumentInfo() in xptReceiveData()
I'll test it when I have spare time.