void cg_soap_response_clear(CgSoapResponse *soapRes)
{
	cg_log_debug_l4("Entering...\n");

	cg_xml_nodelist_clear(soapRes->rootNodeList);

	if (soapRes->isHttpResCreated == TRUE)
		cg_http_response_delete(soapRes->httpRes);
	soapRes->httpRes = cg_http_response_new();
	soapRes->isHttpResCreated = TRUE;

	cg_log_debug_l4("Leaving...\n");
}
void cg_soap_request_clear(CgSoapRequest *soapReq)
{
    cg_log_debug_l4("Entering...\n");

    cg_xml_nodelist_clear(soapReq->rootNodeList);

    if (soapReq->isHttpReqCreated == TRUE)
        cg_http_request_delete(soapReq->httpReq);

    soapReq->httpReq = cg_http_request_new();
    soapReq->isHttpReqCreated = TRUE;
    cg_http_request_setcontenttype(soapReq->httpReq, CG_SOAP_CONTENT_TYPE);
    cg_http_request_setmethod(soapReq->httpReq, CG_HTTP_POST);

    cg_log_debug_l4("Leaving...\n");
}