delphi implementation

2 views
Skip to first unread message

elia.coan.promoservice

unread,
Oct 26, 2009, 11:04:11 AM10/26/09
to Fotolia API
Hello everybody,
The fact is that I'm trying with Delphi and using the JDSolutions
library.
http://www.jondavis.net/JDSolutions/XmlRpc/readme.htm
I've problems to retrieve the responses.

Using the "loginUser" method I get something like this
"session_idfcfdf9d7d096bbe26285a35b5f794f2b",
trim it at the end of "session_id" substr and store it in a session
variable. But when I try to use it to get the user data with
"getUserData" I get "Invalid session id" error. What is the matter?

Another trouble (really puzzling for me): with the "getMedia" I
retrieve a string containing various key and their values (an XML
struct type) and I can't catch them only implementing long and time-
wasting system.

Hopeful regards,

Elia

Olivier Sirven

unread,
Oct 26, 2009, 11:08:45 AM10/26/09
to fotol...@googlegroups.com
Hello,

Your XML-RPC connector has to support cookies to be functional.
That's why you get this "invalid session error" message.

About your question about getMedia, I'm not sure to get your point?

Olivier

elia.coan.promoservice

unread,
Oct 26, 2009, 11:19:01 AM10/26/09
to Fotolia API
Sorry, I made a mistake "and I can't catch" --> "and I can catch".
Exentially, for all the requests I get reponses and stored it into
string variables.
It contains a tipical xml struct in form of string with the member id
followed by
the member value. This for all the member of the struct. I want to get
them easier
than I do at the moment, operating on the string with trimming
functions.

Is it possible?

>On 26 Ott, 16:08, Olivier Sirven <oliv...@fotolia.com> wrote:
> Hello,
>
> Your XML-RPC connector has to support cookies to be functional.
> That's why you get this "invalid session error" message.
>
> About your question about getMedia, I'm not sure to get your point?
>
> Olivier
>

Olivier Sirven

unread,
Oct 26, 2009, 11:30:26 AM10/26/09
to fotol...@googlegroups.com
I don't know Delphi at all but I'm sure there is a XML-RPC class
available to help you manage this.

Olivier

elia.coan.promoservice

unread,
Oct 26, 2009, 11:36:57 AM10/26/09
to Fotolia API
Okay, I think I've found. Xmlrpctools.Serialize and
XmlRpctools.Deserialize provide
conversion function for the xmlrpc type to delphi type. I'll try.

>On 26 Ott, 16:30, Olivier Sirven <oliv...@fotolia.com> wrote:
> I don't know Delphi at all but I'm sure there is a XML-RPC class
> available to help you manage this.
>
> Olivier
>
Reply all
Reply to author
Forward
0 new messages