add: soap_set_recv_logfile(copy, "RECV.log"); soap_set_sent_logfile(copy, "SENT.log"); soap_set_test_logfile(copy, "TEST.log");
context: soap_copy_context(struct soap *copy, struct soap *soap){ if (copy)  { register struct soap_plugin *p;    memcpy(copy, soap, sizeof(struct soap));    copy->copy = 1;    copy->user = NULL;    copy->userid = NULL;    copy->passwd = NULL;    copy->nlist = NULL;    copy->blist = NULL;    copy->clist = NULL;    copy->alist = NULL;    copy->attributes = NULL;    copy->local_namespaces = NULL;    soap_set_local_namespaces(copy);    soap_init_iht(copy);    soap_init_pht(copy);    copy->header = NULL;    copy->fault = NULL;    copy->action = NULL;    *copy->host = '\0';#ifndef WITH_LEAN#ifdef WITH_COOKIES    copy->cookies = soap_copy_cookies(soap);#else    copy->cookies = NULL;#endif    soap_init_logs(copy);#endif    copy->plugins = NULL;    for (p = soap->plugins; p; p = p->next)    { register struct soap_plugin *q = (struct soap_plugin*)SOAP_MALLOC(sizeof(struct soap_plugin));      if (!q)        return NULL;      DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying plugin '%s'\n", p->id));      *q = *p;      if (p->fcopy && (soap->error = p->fcopy(soap, q, p)))      { SOAP_FREE(q);        return NULL;      }      q->next = copy->plugins;      copy->plugins = q;    }  }  else    soap->error = SOAP_EOM;  return copy;}