Why would a webservice call be slower from dotnet 2.0 than 1.1?

A

Andrew Sharpe

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?
 
A

Andrew Sharpe

Fixed this by adding the following to my app.config:

<configuration>

...

<system.net>
<defaultProxy>
<proxy bypassonlocal="true" usesystemdefault="false" />
</defaultProxy>
</system.net>

</configuration>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top