added new methods to prepare instance variables before sending, so that we can get the xml request before having to send