<p>I bought an ASP.NET script about a year ago to retrieve FedEx shipping values.  It builds an XML string that passes to the FedEx server using an HttpWebRequest, then parses the raw XML.  The average response time for the script is about 900 milliseconds.    </p>

<p>So the other day I was poking around in the FedEx developer center and discovered that they provide some C# code samples for using their web service.  I built a little project using their code and WSDL file, and was surprised to find that the average response time is about 2.5 seconds.  </p>

<p>Can someone help me understand the difference in speed?  And is there a way to make it faster?  I have zero experience using web services.</p>

<p>Thanks.</p>

[{'answer_id': 66778, 'author': 'GEOCHET', 'author_id': 5640, 'author_profile': 'https://Stackoverflow.com/users/5640', 'pm_score': 4, 'selected': True, 'text': '<p>You can find a good article and a library to start with here: <a href="http://www.codeproject.com/KB/COM/opcdotnet.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/COM/opcdotnet.aspx</a></p>\n'}, {'answer_id': 90020, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': "<p>Be careful. I haven't used an OPC API yet that properly conforms to any sort of calling conventions, particularily in the area of freeing memory (COM, as documented, or otherwise). Expect a month of debugging memory leaks.</p>\n"}, {'answer_id': 227730, 'author': 'Mike Dillamore', 'author_id': 30039, 'author_profile': 'https://Stackoverflow.com/users/30039', 'pm_score': 2, 'selected': False, 'text': '<p>The Code Project article is from the early days of .NET and may not be the best option today.</p>\n\n<p>Alternatives include OPC Foundation\'s own <a href="http://www.opcfoundation.org/Downloads.aspx?CI=281" rel="nofollow noreferrer">.NET API</a> (requires OPC Foundation membership) or several commercial products.  <a href="http://opcconnect.com/dotnet.php" rel="nofollow noreferrer">OPCconnect.com</a> lists a number of these.</p>\n'}, {'answer_id': 282130, 'author': 'Garo Yeriazarian', 'author_id': 2655, 'author_profile': 'https://Stackoverflow.com/users/2655', 'pm_score': 1, 'selected': False, 'text': '<p>SoftwareToolbox\'s OPCData.NET (<a href="http://www.opcdata.net/" rel="nofollow noreferrer">http://www.opcdata.net/</a>) claims to be a 100% Managed code solution for OPC Client.  SoftwareToolbox also has some other OPC libraries to help with binding OPC data to forms and web interfaces.</p>\n'}, {'answer_id': 2089160, 'author': 'Matt Warren', 'author_id': 4500, 'author_profile': 'https://Stackoverflow.com/users/4500', 'pm_score': 0, 'selected': False, 'text': '<p>If buying a comercial toolkit is an option I\'ve used the Northern Dynamics <a href="http://www.nordyn.com/Main/Products/Main.htm" rel="nofollow noreferrer">server toolkit</a> and it worked fine. A toolkit will take away a lot of the issues mentioned in the other questions (or at least you should get support if there\'s a problem).</p>\n\n<p>They\'ve wrapped the OPC protocol up nicely so it makes it easy to use. See one of my questions here for a <a href="https://stackoverflow.com/questions/1649264/how-to-make-a-type-safe-wrapper-around-variant-values">type-safe Variant wrapper</a> that I wrote to help with this.</p>\n'}]
['https://Stackoverflow.com/questions/66777', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']