add: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
context: SOAP_FMAC5 ns1__Item * SOAP_FMAC6 soap_instantiate_ns1__Item(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size){DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__Item(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns1__Item, n, soap_fdelete);	if (!cp)		return NULL;	soap->alloced = 1;	if (type && !soap_match_tag(soap, type, "ns1:AddressBook"))	{	cp->type = SOAP_TYPE_ns1__AddressBook;		if (n < 0)		{	cp->ptr = (void*)new ns1__AddressBook;			if (size)				*size = sizeof(ns1__AddressBook);			((ns1__AddressBook*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__AddressBook[n];			if (size)				*size = n * sizeof(ns1__AddressBook);			for (int i = 0; i < n; i++)				((ns1__AddressBook*)cp->ptr)[i].soap = soap;		}		return (ns1__AddressBook*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:Category"))	{	cp->type = SOAP_TYPE_ns1__Category;		if (n < 0)		{	cp->ptr = (void*)new ns1__Category;			if (size)				*size = sizeof(ns1__Category);			((ns1__Category*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__Category[n];			if (size)				*size = n * sizeof(ns1__Category);			for (int i = 0; i < n; i++)				((ns1__Category*)cp->ptr)[i].soap = soap;		}		return (ns1__Category*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:ContainerItem"))	{	cp->type = SOAP_TYPE_ns1__ContainerItem;		if (n < 0)		{	cp->ptr = (void*)new ns1__ContainerItem;			if (size)				*size = sizeof(ns1__ContainerItem);			((ns1__ContainerItem*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__ContainerItem[n];			if (size)				*size = n * sizeof(ns1__ContainerItem);			for (int i = 0; i < n; i++)				((ns1__ContainerItem*)cp->ptr)[i].soap = soap;		}		return (ns1__ContainerItem*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:Folder"))	{	cp->type = SOAP_TYPE_ns1__Folder;		if (n < 0)		{	cp->ptr = (void*)new ns1__Folder;			if (size)				*size = sizeof(ns1__Folder);			((ns1__Folder*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__Folder[n];			if (size)				*size = n * sizeof(ns1__Folder);			for (int i = 0; i < n; i++)				((ns1__Folder*)cp->ptr)[i].soap = soap;		}		return (ns1__Folder*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:AddressBookItem"))	{	cp->type = SOAP_TYPE_ns1__AddressBookItem;		if (n < 0)		{	cp->ptr = (void*)new ns1__AddressBookItem;			if (size)				*size = sizeof(ns1__AddressBookItem);			((ns1__AddressBookItem*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__AddressBookItem[n];			if (size)				*size = n * sizeof(ns1__AddressBookItem);			for (int i = 0; i < n; i++)				((ns1__AddressBookItem*)cp->ptr)[i].soap = soap;		}		return (ns1__AddressBookItem*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:BoxEntry"))	{	cp->type = SOAP_TYPE_ns1__BoxEntry;		if (n < 0)		{	cp->ptr = (void*)new ns1__BoxEntry;			if (size)				*size = sizeof(ns1__BoxEntry);			((ns1__BoxEntry*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__BoxEntry[n];			if (size)				*size = n * sizeof(ns1__BoxEntry);			for (int i = 0; i < n; i++)				((ns1__BoxEntry*)cp->ptr)[i].soap = soap;		}		return (ns1__BoxEntry*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:QueryFolder"))	{	cp->type = SOAP_TYPE_ns1__QueryFolder;		if (n < 0)		{	cp->ptr = (void*)new ns1__QueryFolder;			if (size)				*size = sizeof(ns1__QueryFolder);			((ns1__QueryFolder*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__QueryFolder[n];			if (size)				*size = n * sizeof(ns1__QueryFolder);			for (int i = 0; i < n; i++)				((ns1__QueryFolder*)cp->ptr)[i].soap = soap;		}		return (ns1__QueryFolder*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:SharedFolder"))	{	cp->type = SOAP_TYPE_ns1__SharedFolder;		if (n < 0)		{	cp->ptr = (void*)new ns1__SharedFolder;			if (size)				*size = sizeof(ns1__SharedFolder);			((ns1__SharedFolder*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__SharedFolder[n];			if (size)				*size = n * sizeof(ns1__SharedFolder);			for (int i = 0; i < n; i++)				((ns1__SharedFolder*)cp->ptr)[i].soap = soap;		}		return (ns1__SharedFolder*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:SystemFolder"))	{	cp->type = SOAP_TYPE_ns1__SystemFolder;		if (n < 0)		{	cp->ptr = (void*)new ns1__SystemFolder;			if (size)				*size = sizeof(ns1__SystemFolder);			((ns1__SystemFolder*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__SystemFolder[n];			if (size)				*size = n * sizeof(ns1__SystemFolder);			for (int i = 0; i < n; i++)				((ns1__SystemFolder*)cp->ptr)[i].soap = soap;		}		return (ns1__SystemFolder*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:Contact"))	{	cp->type = SOAP_TYPE_ns1__Contact;		if (n < 0)		{	cp->ptr = (void*)new ns1__Contact;			if (size)				*size = sizeof(ns1__Contact);			((ns1__Contact*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__Contact[n];			if (size)				*size = n * sizeof(ns1__Contact);			for (int i = 0; i < n; i++)				((ns1__Contact*)cp->ptr)[i].soap = soap;		}		return (ns1__Contact*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:ContactFolder"))	{	cp->type = SOAP_TYPE_ns1__ContactFolder;		if (n < 0)		{	cp->ptr = (void*)new ns1__ContactFolder;			if (size)				*size = sizeof(ns1__ContactFolder);			((ns1__ContactFolder*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__ContactFolder[n];			if (size)				*size = n * sizeof(ns1__ContactFolder);			for (int i = 0; i < n; i++)				((ns1__ContactFolder*)cp->ptr)[i].soap = soap;		}		return (ns1__ContactFolder*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:Group"))	{	cp->type = SOAP_TYPE_ns1__Group;		if (n < 0)		{	cp->ptr = (void*)new ns1__Group;			if (size)				*size = sizeof(ns1__Group);			((ns1__Group*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__Group[n];			if (size)				*size = n * sizeof(ns1__Group);			for (int i = 0; i < n; i++)				((ns1__Group*)cp->ptr)[i].soap = soap;		}		return (ns1__Group*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:Mail"))	{	cp->type = SOAP_TYPE_ns1__Mail;		if (n < 0)		{	cp->ptr = (void*)new ns1__Mail;			if (size)				*size = sizeof(ns1__Mail);			((ns1__Mail*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__Mail[n];			if (size)				*size = n * sizeof(ns1__Mail);			for (int i = 0; i < n; i++)				((ns1__Mail*)cp->ptr)[i].soap = soap;		}		return (ns1__Mail*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:Organization"))	{	cp->type = SOAP_TYPE_ns1__Organization;		if (n < 0)		{	cp->ptr = (void*)new ns1__Organization;			if (size)				*size = sizeof(ns1__Organization);			((ns1__Organization*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__Organization[n];			if (size)				*size = n * sizeof(ns1__Organization);			for (int i = 0; i < n; i++)				((ns1__Organization*)cp->ptr)[i].soap = soap;		}		return (ns1__Organization*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:Resource"))	{	cp->type = SOAP_TYPE_ns1__Resource;		if (n < 0)		{	cp->ptr = (void*)new ns1__Resource;			if (size)				*size = sizeof(ns1__Resource);			((ns1__Resource*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__Resource[n];			if (size)				*size = n * sizeof(ns1__Resource);			for (int i = 0; i < n; i++)				((ns1__Resource*)cp->ptr)[i].soap = soap;		}		return (ns1__Resource*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:CalendarItem"))	{	cp->type = SOAP_TYPE_ns1__CalendarItem;		if (n < 0)		{	cp->ptr = (void*)new ns1__CalendarItem;			if (size)				*size = sizeof(ns1__CalendarItem);			((ns1__CalendarItem*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__CalendarItem[n];			if (size)				*size = n * sizeof(ns1__CalendarItem);			for (int i = 0; i < n; i++)				((ns1__CalendarItem*)cp->ptr)[i].soap = soap;		}		return (ns1__CalendarItem*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:DocumentRef"))	{	cp->type = SOAP_TYPE_ns1__DocumentRef;		if (n < 0)		{	cp->ptr = (void*)new ns1__DocumentRef;			if (size)				*size = sizeof(ns1__DocumentRef);			((ns1__DocumentRef*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__DocumentRef[n];			if (size)				*size = n * sizeof(ns1__DocumentRef);			for (int i = 0; i < n; i++)				((ns1__DocumentRef*)cp->ptr)[i].soap = soap;		}		return (ns1__DocumentRef*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:PhoneMessage"))	{	cp->type = SOAP_TYPE_ns1__PhoneMessage;		if (n < 0)		{	cp->ptr = (void*)new ns1__PhoneMessage;			if (size)				*size = sizeof(ns1__PhoneMessage);			((ns1__PhoneMessage*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__PhoneMessage[n];			if (size)				*size = n * sizeof(ns1__PhoneMessage);			for (int i = 0; i < n; i++)				((ns1__PhoneMessage*)cp->ptr)[i].soap = soap;		}		return (ns1__PhoneMessage*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:Appointment"))	{	cp->type = SOAP_TYPE_ns1__Appointment;		if (n < 0)		{	cp->ptr = (void*)new ns1__Appointment;			if (size)				*size = sizeof(ns1__Appointment);			((ns1__Appointment*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__Appointment[n];			if (size)				*size = n * sizeof(ns1__Appointment);			for (int i = 0; i < n; i++)				((ns1__Appointment*)cp->ptr)[i].soap = soap;		}		return (ns1__Appointment*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:Note"))	{	cp->type = SOAP_TYPE_ns1__Note;		if (n < 0)		{	cp->ptr = (void*)new ns1__Note;			if (size)				*size = sizeof(ns1__Note);			((ns1__Note*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__Note[n];			if (size)				*size = n * sizeof(ns1__Note);			for (int i = 0; i < n; i++)				((ns1__Note*)cp->ptr)[i].soap = soap;		}		return (ns1__Note*)cp->ptr;	}	if (type && !soap_match_tag(soap, type, "ns1:Task"))	{	cp->type = SOAP_TYPE_ns1__Task;		if (n < 0)		{	cp->ptr = (void*)new ns1__Task;			if (size)				*size = sizeof(ns1__Task);			((ns1__Task*)cp->ptr)->soap = soap;		}		else		{	cp->ptr = (void*)new ns1__Task[n];			if (size)				*size = n * sizeof(ns1__Task);			for (int i = 0; i < n; i++)				((ns1__Task*)cp->ptr)[i].soap = soap;		}		return (ns1__Task*)cp->ptr;	}	if (n < 0)	{	cp->ptr = (void*)new ns1__Item;		if (size)			*size = sizeof(ns1__Item);		((ns1__Item*)cp->ptr)->soap = soap;	}	else	{	cp->ptr = (void*)new ns1__Item[n];		if (size)			*size = n * sizeof(ns1__Item);		for (int i = 0; i < n; i++)			((ns1__Item*)cp->ptr)[i].soap = soap;	}	return (ns1__Item*)cp->ptr;}