<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Web service instances</title><link>https://www.infopathdev.com:443/forums/thread/17954.aspx</link><pubDate>Wed, 07 Feb 2007 08:35:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17954</guid><dc:creator>ekzarov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17954</wfw:commentRss><description>:) Well, you think very bad about me :) I`d already tried this ... So the template assamble compiles succesfuly, but when I try to verify it with "stsadm -0 verifyformtemplate ...." I get an error:&lt;br /&gt;"FatalErrorNoThrow: An issue was found the following with variable 'MyForm.MyFormCodeNameSpace.myService'. Member variables are not supported. Use the FormState property to store data.". So I write this topic &lt;a href='http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=4301' target='_blank' title='http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=4301'&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=4301&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=4301&lt;/a&gt;&lt;/a&gt;. Do you understand me now? :)</description></item><item><title>Re: Web service instances</title><link>https://www.infopathdev.com:443/forums/thread/17953.aspx</link><pubDate>Tue, 06 Feb 2007 18:40:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17953</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17953</wfw:commentRss><description>Hi Alexander,&lt;br /&gt;&lt;br /&gt;You should be able to do this:&lt;br /&gt;&lt;br /&gt;private MyService myService;&lt;br /&gt;&lt;br /&gt;OnLoad()&lt;br /&gt;{&lt;br /&gt;myService = newMyService();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then you can reference this global myService variable from any of the functions in the class. To generate the OnLoad event, click Tools -&amp;gt; Programming -&amp;gt; OnLoad event.</description></item><item><title>Web service instances</title><link>https://www.infopathdev.com:443/forums/thread/17577.aspx</link><pubDate>Mon, 29 Jan 2007 10:59:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17577</guid><dc:creator>ekzarov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17577.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17577</wfw:commentRss><description>Is there a posibility to save Service object in FormState ???&lt;br /&gt;For example I have two methods of my web-service named "MyService" : GetClientData and GetOtherData. So in my form I need to write something like this:&lt;br /&gt;&lt;br /&gt;private void SetClientData()&lt;br /&gt;{&lt;br /&gt; MyService myService = new MyService();&lt;br /&gt; XmlNode myNode = myService.GetClientData();&lt;br /&gt; ...&lt;br /&gt; ...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private void SetOtherData()&lt;br /&gt;{&lt;br /&gt; MyService myService = new MyService();&lt;br /&gt; XmlNode myNode = myService.GetInfoData();&lt;br /&gt; ...&lt;br /&gt; ...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;So, I need to create MyService two times... Can I do it once ???</description></item></channel></rss>