(No this is not the same as my last post, I'm trying something different here as in var type)
I stepped through the method that I called from my web service reference. I stepped through it actually right into the .asmx and back. It's definitely returning a valid complext object of type ServiceAuthResponse. Here is my .asmx method shell (I've removed all the logic for posting simplicity...just see that it returns ServiceAuthRequest as the type here):
public ServiceAuthResponse IssueDebit(...)
{
....
return debitResponse;
}
I can even mouse over the debitResponse var and see the object's properties and all just as always...so the object is definitely not null...it's got state when it's being returned during my debugging.
I'm calling this service method in a codebehind of an .aspx page in another web project that's referencing/using this web service.
Here you can see a couple shots of the web service in VS:
http://www.elbalazo.net/post/webservicespic1.jpg
http://www.elbalazo.net/post/webservicespic2.jpg
So in one of my methods in my code-behind I try to call and grab the return object. At the top of my code-behind I have this using statement to specify that the ServiceAuthResponse should come from the proxy class (because otherwise it would conflict with some other references I've added to this web project that contain this class):
using ServiceAuthResponse = WebServicesTesting.LitleService.ServiceAuthResponse;
No here's the problem. I don't know how quite to grab the return object successfully that IssueDebit is returning. The call to IssueDebit works and when I move past the debug point set to debitResponse = litleService.IssueDebit(...); and try to view the debitResponse, I get nothing. I can't see anything in that object.
All I see is this: http://www.elbalazo.net/post/objectempty.jpg meaning the variable debitResponse should have valid state but when I mouse over I get nothing but the namespace.
Here's the code again that calls that IssueDebit web service method:
private void IssueDebit()
{
ValidateFormData();
SetState();
if (string.IsNullOrEmpty(txtDebitAmount.Text))
throw new NullReferenceException("Debit amount is empty");
ServiceAuthResponse debitResponse;
debitResponse = litleService.IssueDebit(...);
pnlIssueDebitResults.Visible = true;
SetIssueDebitResults(debitResponse);
}
Am I doing something wrong in context to how I should be trying to grab and populate my variable with the complex type back coming back from the web service method call IssueDebit?