Menu

Error 5011 in 2nd part of XPT_REQUEST_SENDER

Help
2004-07-07
2004-07-19
  • Charles-Christophe

    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

     
    • Kidong Lee

      Kidong Lee - 2004-07-09

      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, ...)

       
    • Charles-Christophe

      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

       
    • Kidong Lee

      Kidong Lee - 2004-07-19

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.