I have two test apps that call my webservice with the exact same code in
each. One is running in VS2003, the other in VS2005. The 2003 version takes
1 second, the 2005 version takes 20-30 seconds. It only takes that long on
the first call though, after that it too returns in 1 second. The code is
very simple:
private void button1_Click(object sender, EventArgs e) {
MyWebService n = new MyWebService();
n.MyMethod();
MessageBox.Show("done");
}
For what it's worth, the web service is a Java application but I don't think
that should matter should it? Are there any known issues with calling web
services in Dotnet 2.0? Any suggestions at all?
Andrew Sharpe - 30 Apr 2008 16:28 GMT
Fixed this by adding the following to my app.config:
<configuration>
...
<system.net>
<defaultProxy>
<proxy bypassonlocal="true" usesystemdefault="false" />
</defaultProxy>
</system.net>
</configuration>