473,320 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Using web services to retun a data set

I have a web service that I have created that reads information from a
database and returns the results in a dataset. When I am trying to retrieve
this information, I keep getting a null reference error message. This is the
syntax I am using:

DataSet dsNew = localhost.EmployeeSearch(someString);

How should I be handling this?
Nov 15 '05 #1
2 987
Jeremy,

Is the exception being thrown by the EmployeeSearch method, or is it
being thrown because localhost is not set to a reference of an object? If
it is in the EmployeeSearch method, then you need to trace through the code
in the web service. Otherwise, you have to trace through the code calling
the web service, determining why localhost is null.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jeremy Ames" <yo******@here.com> wrote in message
news:eB**************@tk2msftngp13.phx.gbl...
I have a web service that I have created that reads information from a
database and returns the results in a dataset. When I am trying to retrieve this information, I keep getting a null reference error message. This is the syntax I am using:

DataSet dsNew = localhost.EmployeeSearch(someString);

How should I be handling this?

Nov 15 '05 #2
I found that I forgot to instantiate the object. That was my bad.
Although that opened a new problem. I am now receiving a 401 error when I
try to execute the web services method. This is all local so it should have
the same permissions, I would think. Do you have any suggestions to resolve
this?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:eW**************@tk2msftngp13.phx.gbl...
Jeremy,

Is the exception being thrown by the EmployeeSearch method, or is it
being thrown because localhost is not set to a reference of an object? If
it is in the EmployeeSearch method, then you need to trace through the code
in the web service. Otherwise, you have to trace through the code calling
the web service, determining why localhost is null.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jeremy Ames" <yo******@here.com> wrote in message
news:eB**************@tk2msftngp13.phx.gbl...
I have a web service that I have created that reads information from a
database and returns the results in a dataset. When I am trying to retrieve this information, I keep getting a null reference error message. This is the syntax I am using:

DataSet dsNew = localhost.EmployeeSearch(someString);

How should I be handling this?


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gagans | last post by:
Hi My web service has a method which accepts byte array as parameter. <WebMethod()> _ Public Function SendLoan(ByVal data As Byte()) As String Dim filePath As String filePath =...
3
by: David Jubinville | last post by:
Hi All, I'm developing a 'testing' page for the current courseware solution I'm working on. Currently I have a single page with each question residing in it's own layer <DIV>. I want to make...
0
by: josephrthomas | last post by:
hi, i am utilizing a web service in a C# windows application for a smart client. there is a method public int ValidateUser(string userName, string password) { object results =...
6
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
3
by: Matt D | last post by:
In my web service project I've imported an assembly (that I also have the source to) that contains structs that are serializable. I've created some web service methods that return and take as...
3
by: Michael Hoehne | last post by:
Hi, I'm currently facing a problem with a mixed environment using .NET 1.1 and ..NET 2.0 web services. We have a client application (the "client", system 1) running on .NET 2.0/WinXP, calling...
0
by: Al Fatykhov | last post by:
Using MABLE logic engine with existing .NET applications. MABLE web services provide an interface to MABLE business objects and logic. Let us review some technical details of the MABLE web...
2
by: srinivasan.shanmugapillai | last post by:
Hi, I'm running a VB.NET windows applicatrion that is using the enterprise services transactions. While running this application without enterprise services support, a connection is...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.