tgriesel78 | 31 Mar 2008 11:00
Picon
Favicon

Sending Struct is not working ?


Hi all,

I am trying to implement an xmlrpc client into a given framework. I
have to use c/c++ for the developing the client. The struct to call
the server has to look like this:

<struct>
  <member>
    <name>source_id</name>
    <value>
      <i4>3</i4>
    </value>
  </member>
  <member>
    <name>message</name>
    <value>
      <string>Your Message Here</string>
    </value>
  </member>
</struct>

I wrote myself a client now which should - I believe so - send a
struct like that. It is not working ! To ensure that the server works
correctly, I build a python client - that just works fine. I do not
know why the c/c++ client is not working. I am on that since a week...
Any help or hint is highly appreciated !!!
This is my code:

#include <stdlib.h>
(Continue reading)

tgriesel78 | 31 Mar 2008 13:07
Picon
Favicon

Re: Sending Struct is not working ?


Sorry I forgott:

changing 
resultP = xmlrpc_client_call(&env, serverUrl,methodName,"({s:i,s:s})"
,sendStrctP);

or 

resultP = xmlrpc_client_call(&env, serverUrl,methodName,"S" ,sendStrctP);

doesn't makes a difference !
Cheers

--- In xml-rpc <at> yahoogroups.com, "tgriesel78" <tgriesel78 <at> ...> wrote:
>
> 
> Hi all,
> 
> I am trying to implement an xmlrpc client into a given framework. I
> have to use c/c++ for the developing the client. The struct to call
> the server has to look like this:
> 
> <struct>
>   <member>
>     <name>source_id</name>
>     <value>
>       <i4>3</i4>
>     </value>
>   </member>
(Continue reading)

Gaetano Giunta | 31 Mar 2008 20:34
Picon
Gravatar

Re: Sending Struct is not working ?

Sorry, why not start out with existing code? given the age of the spec, 
there are a bazillion implementations ready...

>
> Hi all,
>
> I am trying to implement an xmlrpc client into a given framework. I
> have to use c/c++ for the developing the client. The struct to call
> the server has to look like this:
>
> <struct>
> <member>
> <name>source_id</name>
> <value>
> <i4>3</i4>
> </value>
> </member>
> <member>
> <name>message</name>
> <value>
> <string>Your Message Here</string>
> </value>
> </member>
> </struct>
>
> I wrote myself a client now which should - I believe so - send a
> struct like that. It is not working ! To ensure that the server works
> correctly, I build a python client - that just works fine. I do not
> know why the c/c++ client is not working. I am on that since a week...
> Any help or hint is highly appreciated !!!
(Continue reading)


Gmane