WebService – Returning an Object

K

Karuppasamy

H

I have a WebService calling a Method in a Remote Object. The Remote method Returns an Object. This Webservice also returns the same object. All things are working fine when this Web Service is running in a Windows XP. But when I am trying to run the same webservice in a Windows 2000 Advanced Server Machine, I am getting the following error

“System.Web.Services.Protocols.SoapException: Server was unable to process request. System.Exception: Return argument has an invalid type. at MyComponent.Users.DoLogin(String userName, String password)â€

When I am running some other Web Methods returning void or string or integer, its working fine

So when I am running a webmethod returning an object in a Windows 2000 Advanced Server machine, anything has to be done related security, etc.

Why am I getting such error in Windows 2000 Advanced Server machine only

Thanks and Regard

Siv
 
P

Patrick Steele [MVP]

siva_prakash75@- said:
I have a WebService calling a Method in a Remote Object. The Remote method Returns an Object. This Webservice also returns the same object. All things are working fine when this Web Service is running in a Windows XP. But when I am trying to run the same webservice in a Windows 2000 Advanced Server Machine, I am getting the following error.

“System.Web.Services.Protocols.SoapException: Server was unable to process request. System.Exception: Return argument has an invalid type. at MyComponent.Users.DoLogin(String userName, String password)â€

When I am running some other Web Methods returning void or string or integer, its working fine.

So when I am running a webmethod returning an object in a Windows 2000 Advanced Server machine, anything has to be done related security, etc..

Why am I getting such error in Windows 2000 Advanced Server machine only?

I haven't done much with web services, but do both machines have the
same version of the .NET framework?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top