Muzzy B.
Muzzy B.

Reputation: 182

A local variable value is empty after processed and filled with data in asmx web service method

I have created an asmx web service and call a web method with its parameters using SOAP UI for testing. I used two parameters and they are both generic lists with custom types. In the method, I process them and after process operation, depending on condition, I store those values in a new generic list variable. That new generic list variable, is defined in method as local variable. That variable is my return value of the web method. Until this point, there is no problem.

I call the web method in my local developer machine, the method returns value correctly as i expected. But when I installed the web service in IIS and called the related method using SOAP UI again, the method's return value comes empty.

Couldn't understand what causes this kind of error here? Variable value is lost in method or what?

Upvotes: 0

Views: 360

Answers (1)

Muzzy B.
Muzzy B.

Reputation: 182

Sorry guys for whom I make busy with the problem! The error is caused by the SOAP request parameter value... It's all working correctly now! sorry again!

Upvotes: 0

Related Questions