Hi,
I'm not able to understand what is in my case soap_tmp_ns2__getListDevices.
I try several possibilities but the olny struct that exist is not known in that
part of code, and if I try to define it, there is no result.
Instead I try something like this, but there is the problem that it serializes
only the first child node:
if (soap_call___ns4__getPatientsFromDataPatient(&soap, NULL, NULL,
&dataPatient, response) == SOAP_OK)
{
std::ofstream out("test.xml", 'w');
std::ostream *os = response->soap->os;
response->soap->os = &out;
soap_set_omode(response->soap, SOAP_XML_GRAPH);
response->soap_serialize(response->soap);
soap_begin_send(response->soap);
response->soap_put(&soap, ns:getPatientsFromDataPatientResponse", "");
soap_end_send(response->soap);
out.close();
}
in response variable, I can see xml part that regards other patients, but I can
retrieve them :(
>
> 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" <dannox@> 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
> >
>