SoapException
- From: "Mary White via DotNetMonster.com" <forum@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Apr 2005 17:30:44 GMT
I am having difficulty consuming a Web Service from a C# Pocket PC
application. I receive the message:
***
An unhandled exception of type
'System.Web.Services.Protocols.SoapException' occurred in
System.Web.Services.dll
Additional information: Server was unable to process request. --> Object
reference not set to an instance of an object.
***
This is an excerpt from my Web Service (which runs on an ISP and I cannot
remotely debug):
[WebMethod]
public String PutStaticData(DataSet staticDataSet)
{
try
{
// do some SQL Server Stuff
return null;
}
catch (SqlException e)
{
return e.Message.ToString();
}
}
[WebMethod]
public String PutUserData(DataSet userDataSet)
{
try
{
// do some SQL Server Stuff
return null;
}
catch (SqlException e)
{
return e.Message.ToString();
}
catch (SoapException f)
{
return f.Message.ToString();
}
}
*****
C# Pocket PC App -- Code Snippet
function
{
String returnValue=null;
DataSet txnDataSet = new DataSet();
try
{
// Load txnDataSet using SqlDataAdapter
SyncServices.Service1 ss = new SyncServices.Service1();
returnValue = ss.PutUserData(txnDataSet);
***** This call fails with above message *****
}
catch
......
}
function
{
String returnValue=null;
DataSet staticDataSet = new DataSet();
try
{
// Load staticDataSet using SqlDataAdapter
SyncServices.Service1 ss = new SyncServices.Service1();
returnValue = ss.PutStaticData(staticDataSet);
***** This call succeeds *****
}
catch
.....
}
Since the exception is unhandled, and I have a catch statement for this
exception, I am assuming that it never actually gets far enough to execute
my Web Service code.
Any ideas?
--
Message posted via http://www.dotnetmonster.com
.
- Follow-Ups:
- Re: SoapException
- From: Mary White via DotNetMonster.com
- Re: SoapException
- Prev by Date: Problem retrieving data from SQL Server
- Next by Date: Re: SoapException
- Previous by thread: Problem retrieving data from SQL Server
- Next by thread: Re: SoapException
- Index(es):
Relevant Pages
|