Consuming a webservice in .net

L

leslie_tighe

Hello,

Is it possible to consume a web service in VB .NET and if so are there
any tools in Visual Studio 2003 that facilitate this task? I have a
number of webservices running on a Java server that provide doc/literal
style webservice. If someone could point me to a tutorial or example
that would be great. Ideally, i would like to wrap this in a VB COM
class with COM Interop turned on so that I can use the resulting dll in
both .NET and VB 6 applications.

Thanks in advance
leslie
 
C

Cor Ligthert [MVP]

Leslie,

Did you already tried

Project -> Add WebReference

and follow than the wizards.

I hope this helps,

Cor
 
L

leslie_tighe

Thanks Cor. A quick followup question.

I have a project setup to create a dll as a VB.NET Class library
project. I see the wizard that you are refering to, but when I run it,
I get the following message:

The proxy settings on this computer are not configured correctly for
web discovery.

I don't see where I can define this. For now, my webservices are my
local machine, but they will eventually get moved to separate servers.
If I can using the wrong type of project, could you tell me what type
of project I should use to make it into a COM object and to turn on COM
Interop?

Thanks
 
C

Cor Ligthert [MVP]

Leslie,

I have had this problem as well for a while. I thougth that I solved it with
typing in the righ asmx url.

If not maybe you can try it than in a special webservice newsgroup. Because
I have this problem not at the moment, can I not simulate it. However, I had
it as well.

Sorry

Cor
 
L

leslie_tighe

Cor,

Thanks for your feedback. What's interesting is that if I type in the
url of the wsdl file, it shows all the methods in the service
correctly, but it does not allow me dig further.

I will keep digging.

Leslie
 

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

Top