D
David Jackson
Hello,
I'm presently developing a WinForms app in C# (VS.NET 2005) which needs to
interface with a web service running on the company's public Internet site.
The webservice is very simple - it receives a string, looks it up in a SQL
Server database, and returns another string based on the results of the
database query.
Problem now is the amount of time it takes to return a value to the
webservice over SSL.
If I point the WinForms client at the webservice without going over SSL, it
returns in approximately 0.1 seconds e.g.
http://www.xxx.com/webservices/testservice.asmx
However, as soon as I modify the call to the webservice to run over SSL, it
returns in approximately 10.5 seconds e.g.
https://www.xxx.com/webservices/testservice.asmx
Obviously, I expect a slight loss of performance because of the overhead of
SSL, but wasn't expecting it to be quite as bad as this.
When I point a web browser at
https://www.xxx.com/webservices/testservice.asmx, it shows the page almost
instantly, with the Service Description hyperlink and a bulleted list of the
methods contained in the webservice, so I don't think it's a networking
issue.
Similarly, when I point the WinForms client at other commercial webservices
which run over SSL, they seem to return almost instantly.
I've had a bit of a trawl round Google but haven't found anything which
helped to speed things up. One site suggested adding CacheDuration to the
[WebMethod] declaration but that has not helped.
Can anyone please give me any pointers about some things I could try to
speed this up?
Thanks
DJ
I'm presently developing a WinForms app in C# (VS.NET 2005) which needs to
interface with a web service running on the company's public Internet site.
The webservice is very simple - it receives a string, looks it up in a SQL
Server database, and returns another string based on the results of the
database query.
Problem now is the amount of time it takes to return a value to the
webservice over SSL.
If I point the WinForms client at the webservice without going over SSL, it
returns in approximately 0.1 seconds e.g.
http://www.xxx.com/webservices/testservice.asmx
However, as soon as I modify the call to the webservice to run over SSL, it
returns in approximately 10.5 seconds e.g.
https://www.xxx.com/webservices/testservice.asmx
Obviously, I expect a slight loss of performance because of the overhead of
SSL, but wasn't expecting it to be quite as bad as this.
When I point a web browser at
https://www.xxx.com/webservices/testservice.asmx, it shows the page almost
instantly, with the Service Description hyperlink and a bulleted list of the
methods contained in the webservice, so I don't think it's a networking
issue.
Similarly, when I point the WinForms client at other commercial webservices
which run over SSL, they seem to return almost instantly.
I've had a bit of a trawl round Google but haven't found anything which
helped to speed things up. One site suggested adding CacheDuration to the
[WebMethod] declaration but that has not helped.
Can anyone please give me any pointers about some things I could try to
speed this up?
Thanks
DJ