Types that are not displayed for service link

I integrate one of our applications with a third-party web service provider. I added a link to the service, but when I go to the size var as one of their types, the types do not appear to me in Intellisense.

I am using VB.NET/VS 2008 for Windows 7 and a 2.0 Framework website running on local IIS. I have imported System.Web and System.Web.Service into my code. I also took care to check the box "Always generate messages."

Does anyone have an idea what I need to do to map types?

+8
web-services web
source share
2 answers

Well, I finally found a solution. Firstly, I had to upgrade the code base from 2.0 to 3.5 in order to be able to add the option “Add service link” in VS 2008 or 2010. After that, I noticed that the svcinfo files were essentially empty (with closing tags) and no discos file was created.

I found an article online with a Windows Phone 7 developer reporting the same issue. There was a recommendation to clear the "Reuse types in reference assemblies" checkbox on the Advanced page of the Add Service Link dialog box. As soon as I did this, everything worked like a charm.

Hopefully this information will benefit others at some point.

SteveDog, thanks for all the ideas and help!

+8
source share

You need to import the namespace generated by the web service link. For example, if the namespace of your client project is MyClient , and your web link is called MyWebReference , you will need to import:

 Imports MyClient.MyWebReference 
0
source share

All Articles