<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>WEB-Services / SOAP Forum RSS Feed (Replies Included)</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the 'WEB-Services / SOAP' forum at Programmer's Heaven, including replies.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 13:10:19 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 13:10:19 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>I'm in need of a domain hosting</title>
      <link>http://www.programmersheaven.com/mb/web-services/432147/432147/im-in-need-of-a-domain-hosting/</link>
      <description>I'm in need of a domain hosting. &lt;br /&gt;
&lt;br /&gt;
The one that will help me will get 25% of company incomes. Although, Instead of domain hosting, I'm just in need of 10$ rent, so I can pay everything by my self in cheap hosts. &lt;br /&gt;
&lt;br /&gt;
For more information add me in my Skype 'Nikola_No3'.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/432147/432147/im-in-need-of-a-domain-hosting/</guid>
      <pubDate>Mon, 27 May 2013 14:31:51 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Consume a web service with form authentication from a jsp</title>
      <link>http://www.programmersheaven.com/mb/web-services/431969/431969/consume-a-web-service-with-form-authentication-from-a-jsp/</link>
      <description>Hi to everybody, &lt;br /&gt;
&lt;br /&gt;
I am trying to consume a web service from a web application that requires form authentication. It seems that if I create a client, I have tried with jersey or ApacheHttpClient, it somehow creates a new instance of the browser session. After that the web app send me again the login page . This seems weird to me. Is it possible to pass the session data to the client or get the current session? The only solution that I have now is making the calls trough Ajax which leads to build most of the web applicacion again!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/431969/431969/consume-a-web-service-with-form-authentication-from-a-jsp/</guid>
      <pubDate>Sun, 05 May 2013 11:15:53 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Consume a web service with form authentication from a jsp</title>
      <link>http://www.programmersheaven.com/mb/web-services/431968/431968/consume-a-web-service-with-form-authentication-from-a-jsp/</link>
      <description>Hi to everybody, &lt;br /&gt;
&lt;br /&gt;
I am trying to consume a web service from a web application that requires form authentication. It seems that if I create a client, I have tried with jersey or ApacheHttpClient, it somehow creates a new instance of the browser session. After that the web app send me again the login page . This seems weird to me. Is it possible to pass the session data to the client or get the current session? The only solution that I have now is making the calls trough Ajax which leads to build most of the web applicacion again!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/431968/431968/consume-a-web-service-with-form-authentication-from-a-jsp/</guid>
      <pubDate>Sun, 05 May 2013 11:14:02 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Building client and service stubs using WSDL2Java</title>
      <link>http://www.programmersheaven.com/mb/web-services/431890/431890/building-client-and-service-stubs-using-wsdl2java/</link>
      <description>Hi I tried to &lt;span style="color: Blue;"&gt;generate the client sub from the windows command line&lt;/span&gt;&lt;strong&gt;&lt;/strong&gt; but unfortunately the serviceStub class does not contains the submit method for sending the request to the server!&lt;br /&gt;
could anyone please let me know how the client stub will be generated for sending the request?&lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/431890/431890/building-client-and-service-stubs-using-wsdl2java/</guid>
      <pubDate>Thu, 11 Apr 2013 14:55:04 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Building client and service stubs using WSDL2Java</title>
      <link>http://www.programmersheaven.com/mb/web-services/431888/431888/building-client-and-service-stubs-using-wsdl2java/</link>
      <description>Hi I tried to &lt;span style="color: Blue;"&gt;generate the client sub from the windows command line&lt;/span&gt;&lt;strong&gt;&lt;/strong&gt; but unfortunately the serviceStub class does not contains the submit method for sending the request to the server!&lt;br /&gt;
could anyone please let me know how the client stub will be generated for sending the request?&lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/431888/431888/building-client-and-service-stubs-using-wsdl2java/</guid>
      <pubDate>Thu, 11 Apr 2013 14:51:36 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Some questions about API design (why did they do that?)</title>
      <link>http://www.programmersheaven.com/mb/web-services/431829/431829/some-questions-about-api-design-why-did-they-do-that/</link>
      <description>I've been hired to document a family of SOAP APIs. I've got a couple of "Why are they doing that?" questions.&lt;br /&gt;
&lt;br /&gt;
Yes, these really are questions for the engineers who developed the APIs I'm documenting. I've tried to get answers from them, though, and have had no luck. Either they don't know the answers -- they're just doing what someone taught them to do -- are they know, but they don't know how to explain.&lt;br /&gt;
&lt;br /&gt;
I hope that experienced designers of SOAP APIs can answer these questions for me, either by pointing out some design pattern that I don't recognize, or by informing me that the design really &lt;em&gt;doesn't&lt;/em&gt; make sense, and needs to be changed.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Required vs optional elements&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Like almost any API, these contain both required and optional elements in both requests and responses. But many elements which are in fact required (a request will always fail if they're absent) are formally optional (the WSDL defines them as minOccurs="0").&lt;br /&gt;
&lt;br /&gt;
These are not cases where elements are required in some use cases but not others -- something that the WSDL could not represent. I'm speaking of cases where an element is always required.&lt;br /&gt;
&lt;br /&gt;
For example, the &amp;lt;request&amp;gt; element in every operation's request is defined as optional, although a request with no &amp;lt;request&amp;gt; element would be meaningless. The &amp;lt;response&amp;gt; element in every operation's response is defined as optional, although a response with no &amp;lt;response&amp;gt; element would be useless.&lt;br /&gt;
&lt;br /&gt;
For another example, the response messages are defined with many parts like this (the tag names are made-up):&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;response&amp;gt;                       minOccurs="0"
  &amp;lt;flavors&amp;gt;                      minOccurs="0"
    &amp;lt;flavor&amp;gt;string&amp;lt;/flavor&amp;gt;      minOccurs="0" maxOccurs="unbounded"
  &amp;lt;/flavors&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
This construction poses a problem: there are two ways for a response to convey the fact "there are no flavors." The &amp;lt;flavors&amp;gt; element may be absent, or it may present but contain zero &amp;lt;flavor&amp;gt; elements. If I am writing code to process this response, which type of response should I check for? Or must I check for both? If I must check for both, how can I test the code when there's no apparent way to control which type of response the API gives in any particular case?&lt;br /&gt;
&lt;br /&gt;
This situation reminds me of orthogonality violations in a relational database. The types of problems that it poses for the API user seem to be similar, and similarly nasty. (By the way, if the situation I've described has an accepted name, I'd like to know what it is. I've been calling it a violation of "encoding orthogonality.")&lt;br /&gt;
&lt;br /&gt;
I consider the situation a nightmare that has got to be eliminated or explained. So far the engineers seem to consider it too trivial to require answers... or perhaps too overwhelming to be answerable. In any case, they are not offering enlightenment.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;The incredible nillable optional element&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
The other problem is related; actually it's a complication of the first one. Some elements are both optional and nillable. In the example above, for example, &amp;lt;flavor&amp;gt; could be defined as minOccurs="0" maxOccurs="unbounded" nillable="true". Now there are &lt;em&gt;three&lt;/em&gt; ways to say "there are no flavors": &amp;lt;flavors&amp;gt; may be absent, &amp;lt;flavors&amp;gt; may contain zero &amp;lt;flavor&amp;gt; elements, or &amp;lt;flavors&amp;gt; may contain one &amp;lt;flavor&amp;gt; element whose value is NULL. Why?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/431829/431829/some-questions-about-api-design-why-did-they-do-that/</guid>
      <pubDate>Sun, 07 Apr 2013 13:22:55 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Affordable Offshore hosting plans only in $1.99/mo at Tronichost.com</title>
      <link>http://www.programmersheaven.com/mb/web-services/431709/431709/affordable-offshore-hosting-plans-only-in-199mo-at-tronichostcom/</link>
      <description>Affordable Offshore hosting plans only in $1.99/mo at Tronichost.com&lt;br /&gt;
&lt;strong&gt;TronicHost Offshore Hosting Solutions&lt;/strong&gt; is the leading cheap offshore hosting provider in hosting industry. We offer 100% Anonymous hosting solutions along with 99% uptime and best 24x7 ticket and live chat Support. We've been in business &lt;strong&gt;since 2011&lt;/strong&gt;, however the founders of Tronichost have more than 5 years experience in the field. We use our own hardware that enables us to offer hosting at cheap price.&lt;br /&gt;
TronicHost Offshore Hosting Solutions is the pioneer in providing affordable yet fast, secure and stable non-oversold total offshore cPanel shared, reseller and dedicated server hosting solutions for client who would prefer to keep their personal as well as business information to themselves. &lt;br /&gt;
&lt;br /&gt;
Feel free to contact one of our representatives on our 24x7 live chat at tronichost.com if you have any questions, our highly trained engineers will provide you with the absolute best quality of service. &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;span style="color: Red;"&gt;All Shared Hosting plans include:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
24x7 Live Chat and Ticket Support&lt;br /&gt;
99.9% UpTime Guarantee&lt;br /&gt;
30 Day Money Back Guarantee&lt;br /&gt;
FREE Online Site Builder&lt;br /&gt;
FREE Site transfer from your old host.&lt;br /&gt;
FREE Fantastico Installer with all latest PHP scripts.&lt;br /&gt;
FREE Hosting duration with all plans for specific billing cycle.&lt;br /&gt;
FREE &amp;amp; instant Account Setup&lt;br /&gt;
FREE Private Name Servers &lt;br /&gt;
Easy Domain Transfer to Tronichost.com&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Indigo;"&gt;Linux Shared Entry&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
10 GB Web Space &lt;br /&gt;
100 GB Bandwidth &lt;br /&gt;
1 Domain&lt;br /&gt;
10 Sub domains&lt;br /&gt;
10 Parked domains&lt;br /&gt;
10 Mysql Databases.&lt;br /&gt;
10 Email accounts&lt;br /&gt;
10 FTP accounts&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Red;"&gt;Price: $1.99/Month&lt;/span&gt; &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Indigo;"&gt;Linux Shared Pro&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
25 GB Web Space &lt;br /&gt;
250 GB Bandwidth &lt;br /&gt;
5 Domains &lt;br /&gt;
25 Sub domains&lt;br /&gt;
25 Parked domains&lt;br /&gt;
25 Mysql Databases.&lt;br /&gt;
25 Email accounts &lt;br /&gt;
25 FTP accounts&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Red;"&gt;Price: $2.99/Month&lt;/span&gt; &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Indigo;"&gt;Linux Shared Premium&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
50 GB Web Space &lt;br /&gt;
500 GB Bandwidth &lt;br /&gt;
10 Domains &lt;br /&gt;
50 Sub domains&lt;br /&gt;
50 Parked domains&lt;br /&gt;
50 Mysql Databases.&lt;br /&gt;
50 Email accounts &lt;br /&gt;
50 FTP accounts&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Red;"&gt;Price: $6.99/Month&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Navy;"&gt;Linux Shared Enterprise&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
100 GB Web Space &lt;br /&gt;
Unlimited Bandwidth &lt;br /&gt;
Unlimited Domains &lt;br /&gt;
Unlimited Sub domains&lt;br /&gt;
Unlimited Parked domains&lt;br /&gt;
Unlimited Mysql Databases.&lt;br /&gt;
Unlimited Email accounts &lt;br /&gt;
Unlimited FTP accounts&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Red;"&gt;Price: $16.99/Month&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Please visit Tronichost.comto know complete list of features included in our hosting plans. In case of any queries, you can email us at sales@tronichost.comor contact our 24x7 Online Chat representative through our website.&lt;br /&gt;
&lt;br /&gt;
TronicHost.com - Offshore hosting Solutions&lt;br /&gt;
Offshore shared | Offshore reseller | Offshore dedicated server's.&lt;br /&gt;
Since 2011.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/431709/431709/affordable-offshore-hosting-plans-only-in-199mo-at-tronichostcom/</guid>
      <pubDate>Tue, 26 Mar 2013 05:26:03 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>$1 Web Hosting,99.9% Uptime,24*7 LiveChat Support at MyTrueHost.com</title>
      <link>http://www.programmersheaven.com/mb/web-services/431597/431597/1-web-hosting999-uptime247-livechat-support-at-mytruehostcom/</link>
      <description>&lt;strong&gt;Hello All,&lt;br /&gt;
&lt;br /&gt;
MyTrueHost.com&lt;/strong&gt; is providing good quality service at cheapest cost. Our Hosting is the cheapest hosting on internet, this was done deliberately so as to maintain a viable business over long term. In fact, everything we do at MyTrueHost.com has a long-term view in mind, from the selection of hardware to software, and, especially, our staffs! We believe that we must make the best investment on our human resources so that we could provide the best support to our customers.&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
All Shared Hosting plans include:&lt;/strong&gt;&lt;br /&gt;
1) 24x7 Live Support&lt;br /&gt;
2) 99.9% UpTime Guarantee&lt;br /&gt;
3) 30 Day Money Back Guarantee&lt;br /&gt;
4) FREE Online Site Builder&lt;br /&gt;
5) FREE Fantastico Installer with all latest PHP scripts. &lt;br /&gt;
6) FREE &amp;amp; instant Account Setup&lt;br /&gt;
7) FREE Private Name Servers &lt;br /&gt;
8) Free Account migration from old host to MyTrueHost&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;MyTrueHost:  Bronze($1/month) &lt;/strong&gt;&lt;br /&gt;
  &lt;br /&gt;
Unlimited Webspace&lt;br /&gt;
Unlimited Bandwidth&lt;br /&gt;
Unlimited FTP Accounts &lt;br /&gt;
Number of separate site you can host 01 &lt;br /&gt;
Free Online Sitebuilder(RvSitebuilder)&lt;br /&gt;
24/7/365 Technical Support Chat and Ticket &lt;br /&gt;
Average response time 30 min. &lt;br /&gt;
  &lt;br /&gt;
&lt;strong&gt;Cost: $12.00/year&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;MyTrueHost:  Silver($3/month) &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Unlimited Webspace&lt;br /&gt;
Unlimited Bandwidth&lt;br /&gt;
Unlimited FTP Accounts &lt;br /&gt;
Number of separate site you can host 05&lt;br /&gt;
Free Online Sitebuilder(RvSitebuilder)&lt;br /&gt;
24/7/365 Technical Support Chat and Ticket &lt;br /&gt;
Average response time 30 min. &lt;br /&gt;
  &lt;br /&gt;
&lt;strong&gt;Cost: $36.00/year&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;MyTrueHost:  Gold($5/month) &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Unlimited Webspace&lt;br /&gt;
Unlimited Bandwidth&lt;br /&gt;
Unlimited FTP Accounts &lt;br /&gt;
Number of separate site you can host 26&lt;br /&gt;
Free Online Sitebuilder(RvSitebuilder)&lt;br /&gt;
24/7/365 Technical Support Chat and Ticket &lt;br /&gt;
Average response time 30 min. &lt;br /&gt;
  &lt;br /&gt;
&lt;strong&gt;Cost: $60.00/year&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;MyTrueHost:  Platinum($7/month) &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Unlimited Webspace&lt;br /&gt;
Unlimited Bandwidth&lt;br /&gt;
Unlimited FTP Accounts &lt;br /&gt;
Number of separate site you can host Unlimited&lt;br /&gt;
Free Online Sitebuilder(RvSitebuilder)&lt;br /&gt;
24/7/365 Technical Support Chat and Ticket &lt;br /&gt;
Average response time 30 min. &lt;br /&gt;
  &lt;br /&gt;
&lt;strong&gt;Cost: $84.00/year&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please visit &lt;a href="http://www.mytruehost.com/linux_cpanel_web_hosting_plans.html"&gt;http://www.mytruehost.com/linux_cpanel_web_hosting_plans.html&lt;/a&gt; to view the complete list of features. In case of any queries, you can email us at sales@mytruehost.com or contact our 24x7 Online Chat through our website.&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
MyTrueHost.com&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/431597/431597/1-web-hosting999-uptime247-livechat-support-at-mytruehostcom/</guid>
      <pubDate>Sun, 17 Mar 2013 08:41:29 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>How to remove top blank line from SOAP response in browser</title>
      <link>http://www.programmersheaven.com/mb/web-services/431271/431271/how-to-remove-top-blank-line-from-soap-response-in-browser/</link>
      <description>How to remove top blank line from SOAP response in browser.Given below.&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;--Blank Line--&amp;gt;&lt;br /&gt;
  version="1.0" encoding="ISO-8859-1" ?&amp;gt; &lt;br /&gt;
- &amp;lt;message&amp;gt;&lt;br /&gt;
  &amp;lt;level&amp;gt;9&amp;lt;/level&amp;gt; &lt;br /&gt;
  &amp;lt;number&amp;gt;1125&amp;lt;/number&amp;gt; &lt;br /&gt;
  &amp;lt;description&amp;gt;Invalid parameter: kundenummer&amp;lt;/description&amp;gt; &lt;br /&gt;
  &amp;lt;/message&amp;gt;&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=2548"&gt;Requirement_Clarification.JPG&lt;/a&gt; (39240 bytes | downloaded 32 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/431271/431271/how-to-remove-top-blank-line-from-soap-response-in-browser/</guid>
      <pubDate>Tue, 12 Feb 2013 02:11:26 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Affordable Offshore hosting plans only in $1.99/mo at Tronichost.com</title>
      <link>http://www.programmersheaven.com/mb/web-services/430765/430765/affordable-offshore-hosting-plans-only-in-199mo-at-tronichostcom/</link>
      <description>&lt;strong&gt;TronicHost Offshore Hosting Solutions&lt;/strong&gt; is the leading affordable offshore hosting provider in hosting industry. We offer 100% Anonymous hosting solutions along with 99% uptime and best 24x7 ticket and live chat Support. We've been in business since 2011, however the founders of Tronichost have more than 5 years experience in the field. We use our own hardware that enables us to offer hosting at affordable price.&lt;br /&gt;
&lt;br /&gt;
Feel free to contact one of our representatives on our 24x7 live chat at tronichost.com if you have any questions, our highly trained engineers will provide you with the absolute best quality of service. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;All Shared Hosting plans include:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
24x7 Live Chat and Ticket Support&lt;br /&gt;
99.9% UpTime Guarantee&lt;br /&gt;
30 Day Money Back Guarantee&lt;br /&gt;
FREE Online Site Builder&lt;br /&gt;
FREE Site transfer from your old host.&lt;br /&gt;
FREE Fantastico Installer with all latest PHP scripts.&lt;br /&gt;
FREE Hosting duration with all plans for specific billing cycle.&lt;br /&gt;
FREE &amp;amp; instant Account Setup&lt;br /&gt;
FREE Private Name Servers &lt;br /&gt;
Easy Domain Transfer to Tronichost.com&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Linux Shared Entry :&lt;/strong&gt;&lt;br /&gt;
10 GB Web Space &lt;br /&gt;
100 GB Bandwidth &lt;br /&gt;
1 Domain&lt;br /&gt;
10 Sub domains&lt;br /&gt;
10 Parked domains&lt;br /&gt;
10 Mysql Databases.&lt;br /&gt;
10 Email accounts&lt;br /&gt;
10 FTP accounts&lt;br /&gt;
Price: $1.99/Month &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Linux Shared Pro&lt;/strong&gt;&lt;br /&gt;
25 GB Web Space &lt;br /&gt;
250 GB Bandwidth &lt;br /&gt;
5 Domains &lt;br /&gt;
25 Sub domains&lt;br /&gt;
25 Parked domains&lt;br /&gt;
25 Mysql Databases.&lt;br /&gt;
25 Email accounts &lt;br /&gt;
25 FTP accounts&lt;br /&gt;
Price: $2.99/Month &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Linux Shared Premium&lt;/strong&gt;&lt;br /&gt;
50 GB Web Space &lt;br /&gt;
500 GB Bandwidth &lt;br /&gt;
10 Domains &lt;br /&gt;
50 Sub domains&lt;br /&gt;
50 Parked domains&lt;br /&gt;
50 Mysql Databases.&lt;br /&gt;
50 Email accounts &lt;br /&gt;
50 FTP accounts&lt;br /&gt;
Price: $6.99/Month&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Linux Shared Enterprise&lt;/strong&gt;&lt;br /&gt;
100 GB Web Space &lt;br /&gt;
Unlimited Bandwidth &lt;br /&gt;
Unlimited Domains &lt;br /&gt;
Unlimited Sub domains&lt;br /&gt;
Unlimited Parked domains&lt;br /&gt;
Unlimited Mysql Databases.&lt;br /&gt;
Unlimited Email accounts &lt;br /&gt;
Unlimited FTP accounts&lt;br /&gt;
Price: $16.99/Month&lt;br /&gt;
&lt;br /&gt;
Please visit Tronichost.com to know complete list of features included in our hosting plans. In case of any queries, you can email us at sales@tronichost.comor contact our 24x7 Online Chat representative through our website.&lt;br /&gt;
&lt;br /&gt;
TronicHost.com - Offshore hosting Solutions&lt;br /&gt;
Offshore shared | Offshore reseller | Offshore dedicated server's.&lt;br /&gt;
Since 2011.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/430765/430765/affordable-offshore-hosting-plans-only-in-199mo-at-tronichostcom/</guid>
      <pubDate>Fri, 28 Dec 2012 06:21:15 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Need Help with Web Service Output</title>
      <link>http://www.programmersheaven.com/mb/web-services/430284/430284/need-help-with-web-service-output/</link>
      <description>Hi,  I'm new to this forum. I'm hoping someone could point me in the right direction to start troubleshooting my problem. I've created my first Web Services project.  My output is an xml which is correct, but the data that's being returned is also in xml. My output looks something like this below.  My xml data is being passed as a string instead of xml:&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;string hmln="http://vimeo.com"&amp;gt;&lt;/strong&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;
&amp;lt;rsp generated_in="0.6478" stat="ok"&amp;gt;&amp;lt;videos&amp;gt;&amp;lt;video&amp;gt;&amp;lt;tags&amp;gt;&amp;lt;tag&amp;gt;.......&lt;br /&gt;
&amp;lt;/tag&amp;gt;&amp;lt;tag&amp;gt;........&amp;lt;/tag&amp;gt;&amp;lt;/tags&amp;gt;&amp;lt;/video&amp;gt;&amp;lt;/videos&amp;gt;&amp;lt;
/rsp&amp;gt;&lt;strong&gt;&amp;lt;/string&amp;gt; &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Is there anything I can do in get my xml data to format properly. Below is the WebMethod used to retrieve the data from my .cs files.  I think I will need to make the changes here.  Any advice would be appreciated.&lt;br /&gt;
&lt;br /&gt;
 [WebMethod(CacheDuration=60)] &lt;br /&gt;
    public string GetVimeoXMLPage(int PageNumber)&lt;br /&gt;
    {&lt;br /&gt;
        int pnum = PageNumber;&lt;br /&gt;
        VimeoXML page = new VimeoXML();&lt;br /&gt;
        string xmlResult;&lt;br /&gt;
        xmlResult = page.getVimeoXML(pnum);&lt;br /&gt;
        return xmlResult;&lt;br /&gt;
        &lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/430284/430284/need-help-with-web-service-output/</guid>
      <pubDate>Fri, 16 Nov 2012 12:28:15 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Re</title>
      <link>http://www.programmersheaven.com/mb/web-services/416286/429893/re/#429893</link>
      <description>Hello friends,&lt;br /&gt;
&lt;br /&gt;
just friendly,firstly you check your subject "service" spelling. you can search on Google many sites are available for guide you for any programing language.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/416286/429893/re/#429893</guid>
      <pubDate>Sat, 20 Oct 2012 00:41:29 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Re</title>
      <link>http://www.programmersheaven.com/mb/web-services/416286/429892/re/#429892</link>
      <description>Hello friends,&lt;br /&gt;
&lt;br /&gt;
just friendly,firstly you check your subject "service" spelling. you can search on Google many sites are available for guide you for any programing language.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/416286/429892/re/#429892</guid>
      <pubDate>Sat, 20 Oct 2012 00:38:58 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Re: SOAP Compression activating GZIP</title>
      <link>http://www.programmersheaven.com/mb/web-services/418448/428750/re-soap-compression-activating-gzip/#428750</link>
      <description>SOAP messages generated by both the sforce API client and the sforce API service can become very large. In the case of mobile devices on slow connections, this issue is magnified. Because increasing client performance capabilities is often much cheaper and easier than increasing network bandwidth, performing pre- and post-processing of SOAP messages to reduce their size is a reasonable solution. &lt;br /&gt;
&lt;a href="http://www.upwebhosting.com/"&gt;Liberty Reserve Hosting&lt;/a&gt;  &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/418448/428750/re-soap-compression-activating-gzip/#428750</guid>
      <pubDate>Mon, 11 Jun 2012 04:12:43 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Re: Web service in same time work as client?</title>
      <link>http://www.programmersheaven.com/mb/web-services/424266/428688/re-web-service-in-same-time-work-as-client/#428688</link>
      <description>A Web Service and the client application that invokes it may communicate multiple times ... might communicate with the same Web Service at the same time&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/424266/428688/re-web-service-in-same-time-work-as-client/#428688</guid>
      <pubDate>Mon, 04 Jun 2012 04:54:13 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Stateful web services</title>
      <link>http://www.programmersheaven.com/mb/web-services/428600/428600/stateful-web-services/</link>
      <description>is there a way to build stateful web services using jax ws..&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/428600/428600/stateful-web-services/</guid>
      <pubDate>Sun, 27 May 2012 06:33:49 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Stateful web services</title>
      <link>http://www.programmersheaven.com/mb/web-services/428599/428599/stateful-web-services/</link>
      <description>is there a way to build a staful web service using jax ws&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/428599/428599/stateful-web-services/</guid>
      <pubDate>Sun, 27 May 2012 06:28:14 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Configure WSDD with exceptions info</title>
      <link>http://www.programmersheaven.com/mb/web-services/428452/428452/configure-wsdd-with-exceptions-info/</link>
      <description>Hello, &lt;br /&gt;
&lt;br /&gt;
I have created a class that want to deploy as a Web Service. &lt;br /&gt;
&lt;br /&gt;
With this WSDD file, it works fine: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;service name="MyClass" provider="java:RPC"&amp;gt;&lt;br /&gt;
    &amp;lt;parameter name="allowedMethods" value="*"/&amp;gt;&lt;br /&gt;
    &amp;lt;parameter name="className" value="lo.webServices.MyClass"/&amp;gt;&lt;br /&gt;
&amp;lt;/service&amp;gt; &lt;br /&gt;
&lt;br /&gt;
But my class also can throw an exception: lo.webServices.MyFault and I do not know how to add this information to the file server-config.wsdd &lt;br /&gt;
&lt;br /&gt;
If I don´t add the exception info in the WSDD, when the server throws the exception 'MyFault', in the client I receive 'AxisException', not the original exception. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Can anyone help me?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/428452/428452/configure-wsdd-with-exceptions-info/</guid>
      <pubDate>Tue, 15 May 2012 01:56:39 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Error in post</title>
      <link>http://www.programmersheaven.com/mb/web-services/428451/428451/error-in-post/</link>
      <description>Internal error. Something very bad just happened. Please contact us and inform us about this error.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/428451/428451/error-in-post/</guid>
      <pubDate>Tue, 15 May 2012 01:52:00 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>services.xml could not be found for a web service at tomcat startup</title>
      <link>http://www.programmersheaven.com/mb/web-services/428168/428168/servicesxml-could-not-be-found-for-a-web-service-at-tomcat-startup/</link>
      <description>hello everyone, &lt;br /&gt;
&lt;br /&gt;
i have a web service and when i start tomcat (v7.0.8) i get the error org.apache.axis2.deployment.deploymentexception the services.xml file cannot be found for the service &lt;br /&gt;
C:\apache-tomcat-7.0.8\webapps\axis2\WEB-INF\services\ProfileDataWS\lib for every jar file in my lib folder. &lt;br /&gt;
&lt;br /&gt;
I would appreciate any help I can get because it's really important for me. &lt;br /&gt;
&lt;br /&gt;
Please help me, &lt;br /&gt;
&lt;br /&gt;
Thanks a lot! &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/428168/428168/servicesxml-could-not-be-found-for-a-web-service-at-tomcat-startup/</guid>
      <pubDate>Fri, 06 Apr 2012 12:59:14 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Chunked Download</title>
      <link>http://www.programmersheaven.com/mb/web-services/426925/426925/chunked-download/</link>
      <description>I have the download working. EZ Q's I hope:&lt;br /&gt;
&lt;br /&gt;
1) Is there a way to set the name of the downloaded file?&lt;br /&gt;
It arrives something like: Axis124.att&lt;br /&gt;
Can I set an attachment setting to alter the name on my C: drive, or&lt;br /&gt;
do I have to rename it that separately after the file is downloaded.&lt;br /&gt;
&lt;br /&gt;
2) It comes down to C:\Documents and Settings\User\Local Settings\Temp&lt;br /&gt;
Q: Can I alter this? Either permanently or for each download?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank&lt;br /&gt;
Milton.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/426925/426925/chunked-download/</guid>
      <pubDate>Sun, 22 Jan 2012 18:16:33 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>[WSDL 2.0] How to write a namespace which contains a variable?</title>
      <link>http://www.programmersheaven.com/mb/web-services/426864/426864/wsdl-20-how-to-write-a-namespace-which-contains-a-variable/</link>
      <description>Hello everyone,&lt;br /&gt;
my problem is that i'm trying to write a namespace such as:&lt;br /&gt;
&lt;a href="http://www.yyy.com/"&gt;http://www.yyy.com/&lt;/a&gt;&lt;strong&gt;id&lt;/strong&gt;/zzz&lt;br /&gt;
&lt;br /&gt;
where "&lt;strong&gt;id&lt;/strong&gt;" is a variable. How can i do this?&lt;br /&gt;
&lt;br /&gt;
Thanks for your attention&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/426864/426864/wsdl-20-how-to-write-a-namespace-which-contains-a-variable/</guid>
      <pubDate>Wed, 18 Jan 2012 04:10:27 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>[WSDL 2.0] How to write a namespace which contains a variable?</title>
      <link>http://www.programmersheaven.com/mb/web-services/426863/426863/wsdl-20-how-to-write-a-namespace-which-contains-a-variable/</link>
      <description>Hello everyone,&lt;br /&gt;
my problem is that i'm trying to write a namespace such as:&lt;br /&gt;
&lt;a href="http://www.yyy.com/"&gt;http://www.yyy.com/&lt;/a&gt;&lt;strong&gt;id&lt;/strong&gt;/zzz&lt;br /&gt;
&lt;br /&gt;
where "&lt;strong&gt;id&lt;/strong&gt;" is a variable. How can i do this?&lt;br /&gt;
&lt;br /&gt;
Thanks for your attention&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/426863/426863/wsdl-20-how-to-write-a-namespace-which-contains-a-variable/</guid>
      <pubDate>Wed, 18 Jan 2012 04:08:09 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Web services in .NET console and Form</title>
      <link>http://www.programmersheaven.com/mb/web-services/425886/425886/web-services-in-net-console-and-form/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I've encountered the following problem with console applicaiton calling web service. If I call the Web Service asynchronously it works ok as many times as I want. But if I add just the following line Form f = new Form(); - i.e. create a class that is a Form or inherits Form, then the async calls do not work any more - the completion call back is never called. Any suggestions? I'm attaching here a very simple source that reproduces the problem. Note the Form f = new Form line. If I comment it out - then the second call to Web Service returns ok. If is not commented the second call not completed - i.e. the DataCallBack is never called.&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using TestWebServiceConsoleApplication.com.eoddata.ws;&lt;br /&gt;
using System.Threading;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
namespace TestWebServiceConsoleApplication&lt;br /&gt;
{&lt;br /&gt;
    class Program&lt;br /&gt;
    {&lt;br /&gt;
&lt;br /&gt;
        public com.eoddata.ws.Data service = null;&lt;br /&gt;
        string token = null;&lt;br /&gt;
&lt;br /&gt;
        static void Main(string[] args)&lt;br /&gt;
        {&lt;br /&gt;
&lt;br /&gt;
            //create class&lt;br /&gt;
            Program p = new Program();&lt;br /&gt;
&lt;br /&gt;
            //create web service proxy&lt;br /&gt;
            p.service = new com.eoddata.ws.Data();&lt;br /&gt;
&lt;br /&gt;
            //perform synchronous login&lt;br /&gt;
            p.Login("user", "password");&lt;br /&gt;
&lt;br /&gt;
            //invoke async. method&lt;br /&gt;
            p.GetSymbolHistory();&lt;br /&gt;
&lt;br /&gt;
            //just wait for 30 sec. - didn't want to make this more complex with events&lt;br /&gt;
            Thread.Sleep(30000);&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt; //THIS LINE IS THE TROUBLEMAKER!!! if you comment it out - the next call will be successful&lt;br /&gt;
 Form f = new Form();&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
            //invoke the async. method again.&lt;br /&gt;
            p.GetSymbolHistory();&lt;br /&gt;
&lt;br /&gt;
            //wait for the call back. Without Form f = new Form() line the answer to call back arrives quite in time - about few second later.&lt;br /&gt;
            Thread.Sleep(3000000);&lt;br /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        //login&lt;br /&gt;
        public string Login(string userName, string password)&lt;br /&gt;
        {&lt;br /&gt;
            string token = null;&lt;br /&gt;
&lt;br /&gt;
            LOGINRESPONSE response = service.Login(userName, password);&lt;br /&gt;
            if (!string.IsNullOrEmpty(response.Token))&lt;br /&gt;
            {&lt;br /&gt;
              &lt;br /&gt;
                token = response.Token;&lt;br /&gt;
                service.SymbolHistoryPeriodByDateRangeCompleted += new SymbolHistoryPeriodByDateRangeCompletedEventHandle
r(DataCallback);&lt;br /&gt;
                System.Console.WriteLine("Login successful " + token);&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            this.token = token;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            return token;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        public void GetSymbolHistory()&lt;br /&gt;
        {&lt;br /&gt;
            service.SymbolHistoryPeriodByDateRangeAsync(this.t
oken, "NYSE", "X", "20111117", "20111118", "1", null);&lt;br /&gt;
            System.Console.WriteLine("Request sent");&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void DataCallback(object sender, SymbolHistoryPeriodByDateRangeCompletedEventArgs args)&lt;br /&gt;
        {&lt;br /&gt;
&lt;br /&gt;
            try&lt;br /&gt;
            {&lt;br /&gt;
                if (args.Cancelled)&lt;br /&gt;
                {&lt;br /&gt;
                    System.Console.WriteLine("Cancelled");&lt;br /&gt;
                    return;&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
                if (args.Error != null)&lt;br /&gt;
                {&lt;br /&gt;
                    System.Console.WriteLine(args.Error.ToString());&lt;br /&gt;
                    return;&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
                RESPONSE response = args.Result;&lt;br /&gt;
&lt;br /&gt;
                if ((response.Message != "Success")&lt;br /&gt;
                    &amp;amp;&amp;amp; (response.Message != "No data available")&lt;br /&gt;
                    &amp;amp;&amp;amp; (response.Message != "Invalid Exchange Code")&lt;br /&gt;
                    )&lt;br /&gt;
                {&lt;br /&gt;
                    System.Console.WriteLine("Error getting response");&lt;br /&gt;
                }&lt;br /&gt;
                else&lt;br /&gt;
                {&lt;br /&gt;
                    System.Console.WriteLine("Got response!!!");&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            }&lt;br /&gt;
            catch (Exception e)&lt;br /&gt;
            {&lt;br /&gt;
                System.Console.WriteLine(e.ToString());&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/425886/425886/web-services-in-net-console-and-form/</guid>
      <pubDate>Fri, 18 Nov 2011 04:40:13 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
    <item>
      <title>Web services in .NET console and Form</title>
      <link>http://www.programmersheaven.com/mb/web-services/425885/425885/web-services-in-net-console-and-form/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I've encountered the following problem with console applicaiton calling web service. If I call the Web Service asynchronously it works ok as many times as I want. But if I add just the following line Form f = new Form(); - i.e. create a class that is a Form or inherits Form, then the async calls do not work any more - the completion call back is never called. Any suggestions? I'm attaching here a very simple source that reproduces the problem. Note the Form f = new Form line. If I comment it out - then the second call to Web Service returns ok. If is not commented the second call not completed - i.e. the DataCallBack is never called.&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using TestWebServiceConsoleApplication.com.eoddata.ws;&lt;br /&gt;
using System.Threading;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
namespace TestWebServiceConsoleApplication&lt;br /&gt;
{&lt;br /&gt;
    class Program&lt;br /&gt;
    {&lt;br /&gt;
&lt;br /&gt;
        public com.eoddata.ws.Data service = null;&lt;br /&gt;
        string token = null;&lt;br /&gt;
&lt;br /&gt;
        static void Main(string[] args)&lt;br /&gt;
        {&lt;br /&gt;
&lt;br /&gt;
            //create class&lt;br /&gt;
            Program p = new Program();&lt;br /&gt;
&lt;br /&gt;
            //create web service proxy&lt;br /&gt;
            p.service = new com.eoddata.ws.Data();&lt;br /&gt;
&lt;br /&gt;
            //perform synchronous login&lt;br /&gt;
            p.Login("user", "password");&lt;br /&gt;
&lt;br /&gt;
            //invoke async. method&lt;br /&gt;
            p.GetSymbolHistory();&lt;br /&gt;
&lt;br /&gt;
            //just wait for 30 sec. - didn't want to make this more complex with events&lt;br /&gt;
            Thread.Sleep(30000);&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt; //THIS LINE IS THE TROUBLEMAKER!!! if you comment it out - the next call will be successful&lt;br /&gt;
 Form f = new Form();&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
            //invoke the async. method again.&lt;br /&gt;
            p.GetSymbolHistory();&lt;br /&gt;
&lt;br /&gt;
            //wait for the call back. Without Form f = new Form() line the answer to call back arrives quite in time - about few second later.&lt;br /&gt;
            Thread.Sleep(3000000);&lt;br /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        //login&lt;br /&gt;
        public string Login(string userName, string password)&lt;br /&gt;
        {&lt;br /&gt;
            string token = null;&lt;br /&gt;
&lt;br /&gt;
            LOGINRESPONSE response = service.Login(userName, password);&lt;br /&gt;
            if (!string.IsNullOrEmpty(response.Token))&lt;br /&gt;
            {&lt;br /&gt;
              &lt;br /&gt;
                token = response.Token;&lt;br /&gt;
                service.SymbolHistoryPeriodByDateRangeCompleted += new SymbolHistoryPeriodByDateRangeCompletedEventHandle
r(DataCallback);&lt;br /&gt;
                System.Console.WriteLine("Login successful " + token);&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            this.token = token;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            return token;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        public void GetSymbolHistory()&lt;br /&gt;
        {&lt;br /&gt;
            service.SymbolHistoryPeriodByDateRangeAsync(this.t
oken, "NYSE", "X", "20111117", "20111118", "1", null);&lt;br /&gt;
            System.Console.WriteLine("Request sent");&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void DataCallback(object sender, SymbolHistoryPeriodByDateRangeCompletedEventArgs args)&lt;br /&gt;
        {&lt;br /&gt;
&lt;br /&gt;
            try&lt;br /&gt;
            {&lt;br /&gt;
                if (args.Cancelled)&lt;br /&gt;
                {&lt;br /&gt;
                    System.Console.WriteLine("Cancelled");&lt;br /&gt;
                    return;&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
                if (args.Error != null)&lt;br /&gt;
                {&lt;br /&gt;
                    System.Console.WriteLine(args.Error.ToString());&lt;br /&gt;
                    return;&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
                RESPONSE response = args.Result;&lt;br /&gt;
&lt;br /&gt;
                if ((response.Message != "Success")&lt;br /&gt;
                    &amp;amp;&amp;amp; (response.Message != "No data available")&lt;br /&gt;
                    &amp;amp;&amp;amp; (response.Message != "Invalid Exchange Code")&lt;br /&gt;
                    )&lt;br /&gt;
                {&lt;br /&gt;
                    System.Console.WriteLine("Error getting response");&lt;br /&gt;
                }&lt;br /&gt;
                else&lt;br /&gt;
                {&lt;br /&gt;
                    System.Console.WriteLine("Got response!!!");&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            }&lt;br /&gt;
            catch (Exception e)&lt;br /&gt;
            {&lt;br /&gt;
                System.Console.WriteLine(e.ToString());&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/425885/425885/web-services-in-net-console-and-form/</guid>
      <pubDate>Fri, 18 Nov 2011 04:38:22 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
  </channel>
</rss>