I can save the xml requests with this code:

soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_ns2__getListDevices(soap,&soap_tmp_ns2__getListDevices);
soap->sendfd = open("xml", O_RDWR | O_CREAT, NULL);
soap_put_ns2__getListDevices(soap, &soap_tmp_ns2__getListDevices,
"ns2:getListDevices", NULL);
soap_end(soap);
close(soap->sendfd);
soap->sendfd = 1;

But you have to adapt the functions "soap_serialize_ns2__getListDevices" and 
"soap_put_ns2__getListDevices" with what you want to save.


--- In [email protected], "dannox75" <dan...@...> wrote:
>
> Hi All,
> I'm new to gsoap, and in my first tests, I want to save the request xml and 
> response one in the filesystem. Has gsoap an API or a flag to do this?
> 
> thank you
> 
> Dan
>


Reply via email to