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
------------------
 
Back
Top