-2

I'm new in c# and web services.

I can not use the classes that the web service offers me someone can help me or explain why it can not use, since I use the other services (identified in the image)

http://imageshack.us/photo/my-images/836/23770139.png/

http://imageshack.us/a/img818/5301/67546759.png

Thanks

user1671697
  • 271
  • 1
  • 2
  • 9
  • 2
    What do you mean you can't use it? What happens? Can you reference the assembly? Can you use the fully qualified name? – Dave Zych Sep 14 '12 at 15:04
  • i can't create object for this class, in my code don't recognize the name Teste.teste ex = new Teste(); – user1671697 Sep 14 '12 at 15:31

1 Answers1

0

at the top of your c# code put using then the name of the webservice , just like you would add any other namespace

ex.

using System.Data;
using System.Data.SqlClient;
using net.virtualearth.dev;

I use virtualearth webservice for Bing's geolocate service, and this is how you include it it code ,

This is assuming you have already added the reference to it in your project, which I think you were trying to show a picture of , but you blacked out everything

EDIT:

To Add a webservice to c# project

Right Click Project -> Add Service Reference

Click Advanced then Enter URL , if there is a webservice found it will show up

Click Add Reference

Scott Selby
  • 9,420
  • 12
  • 57
  • 96