Accessing a Web Service Written in VS2005 Beta1 From Visual Studio 2003

I spent some time trying to figure this one out.  I had a web service that was written in Visual Studio 2005 Beta1.  I was accessing this web service from an app that was written in Visual Studio 2003. 

When adding a web reference or updating the reference, I was getting the error;

“Unable to download the following files. http://url_goes_here/service.asmx?wsdl.  Do you want to skip these files and continue?”

It turns out that the error is related to two values that are added the WebServiceBinding attribute of the class file in the service.  These two values are;

(ConformanceClaims = WsiClaims.BP10, EmitConformanceClaims = true)

When they are removed, the web reference works as expected. 

This was an especially strange occurrence as the app had been working all along.  Apparently, somebody made a change to the web service and updated it on the production server.  During this time, the changes made caused these values to be re-inserted in the attribute and the code file was checked into our source control app.  When I did a get latest, I D/L the modified code which broke my test app.

I guess I'll have to research these two values to determine their importance.

Gerry

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted @ Wednesday, January 05, 2005 11:00 AM

Comments on this entry:

Gravatar # re: Accessing a Web Service Written in VS2005 Beta1 From Visual Studio 2003
by Kapil at 1/28/2005 2:57 PM

your the man!

this has been a problem for a 3 days now. thanks.

and the solution was staring me in the face the whole time.
Gravatar # re: Accessing a Web Service Written in VS2005 Beta1 From Visual Studio 2003
by Gerry at 1/28/2005 2:59 PM

Glad it helped you out. I know I scratched my head here for awhile as well. Especially when it did work, then didn't work again.

Gerry
Gravatar # re: Accessing a Web Service Written in VS2005 Beta1 From Visual Studio 2003
by Jesse at 3/14/2005 1:07 PM

beautiful, someone just asked me about this and it solved the problem right quick.

I agree, you da man
Gravatar # re: Accessing a Web Service Written in VS2005 Beta1 From Visual Studio 2003
by Brian at 4/24/2005 7:39 PM

Awesome, I have no idea how you figured this out, but thanks for posting it! Much appreciated.
Brian
Gravatar # re: Accessing a Web Service Written in VS2005 Beta1 From Visual Studio 2003
by Gerry at 4/24/2005 8:31 PM

It took a little while but a couple of use the office had no choice but to dig deeper.

It was actually by chance that we noticed the attribute and thought, "Why not try to remove that?". It worked.

I'm glad it is helping others out.

Gerry
Gravatar # re: Accessing a Web Service Written in VS2005 Beta1 From Visual Studio 2003
by Narendra B K at 3/24/2006 4:51 AM

I have a different issue,
we had the WebService in 2003 first which was used by a 2003 application, now we are changing the WebService in to VS-2005 it is causing probs
Help meeeeeeeeeeeee
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 
Twitter