Removed old function declarations
Replaced malloc with soap_malloc, let soap proxy handle memory management