Candace,
This issue is related to an object variable in your code not being
initialized. You should have created the object using syntax like this:
YourClass oVariable = new YourClass("Constructor Params");
Then you can use the methods of that variable at will -
oVariable.DoSomething() or whatever.
You can also test to make sure your object variables are properly referenced
in your code by comparing them to null and then running exception code in
the event you have a null reference (or you could use proper programming
methods and throw an exception, of course). This is handy if you're
depending on an object being instantiated by another library (for example,
returning a proper XML DOM Document from a Web Service call):
if(oVariable = null)
{ Console.Writeline("Null oVariable"); }
If you send your code, we'd probably be able to help you quite a bit more.
Chris
-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] Behalf Of Candace DeCou
Sent: Friday, April 27, 2007 3:14 PM
To: [email protected]
Subject: Need Help Getting a WSDL Consumed with .NET C#
**
ARS 6.3 Patch 20
Mid-Tier 6.3 Patch 20
MS SQL 2000
I have built a web service for opGetList operations. The WSDL is working
correctly and we can see the resulting values in mid-tier logs. However, in
trying to consume my web service using .NET C# Visual Studio, we are getting
NULL results and the following error in the .NET side of things:
Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object.
at RemedyTest.Program.Main(String[] args) in
C:\c.projects\rem\RemedyTest\Rem edyTest\Program.cs:line 29 Press any key to
continue
Does anyone out there have a sample of .NET C# code that does work with a
Remedy web service, or any other hints on what we might look for.
Thanks in advance for any help.
Candace DeCou
Applications Support Analyst
Silicon Valley Bank
Office: 408-654-6358
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
__20060125_______________________This posting was submitted with HTML in
it___
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the
Answers Are"