Some SOAP related functions.