Error consuming web service

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I am trying to access a web method which is on my local server from a vb.net
client which is also on the same server. In client I am using the below code
to access the web method. The problem is that I get an 'Object reference not
set to an instance of an object.' error on the indicated line when I run the
code. What am I doing wrong?

Thanks

Regards


Dim ws As localhost.StaffDiary
Dim ds As DataSet = ws.GetStaffDiary ' <=== error on this line
 
Hi,

Try this instead.

Dim ws As New localhost.StaffDiary

Ken
------------------
 

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

Back
Top