# Persistent Instance Vars on Soap Server

**URL:** <https://www.ruby-forum.com/t/persistent-instance-vars-on-soap-server/185585>\
**Category:** Ruby\
**Created:** [March 23, 2010, 4:50am UTC](https://www.ruby-forum.com/t/persistent-instance-vars-on-soap-server/185585 "2010-03-23T04:50:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaime\_Fournier](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f17d59/32.png) [@Jaime\_Fournier](https://www.ruby-forum.com/u/Jaime_Fournier)\
**Post date:** [March 23, 2010, 4:50am UTC](https://www.ruby-forum.com/t/persistent-instance-vars-on-soap-server/185585/1 "2010-03-23T04:50:28Z")

</div>

Hello,  
I have code at [http://mauthesis.com/test.rb](http://mauthesis.com/test.rb)  
I was under the assumption that each connection to this soap server  
would spawn a new instance of the main class and thus never have error  
on line 8 trigger.  
What would be the right way to assure every call was initializing these  
to prevent this persistence of instance variables between calls?

Thanks.
