added compatibility with different version of gSOAP