473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

WebService – Returning an Object

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
---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
Nov 22 '05 #1
2 1719
Karuppasamy, please do not multi-post
http://www.ezine.com/netiquette.html
"Karuppasamy" <siva_prakash75@-NOSPAM-hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi

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.
?oSystem.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 Regards

Siva
---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/

Nov 22 '05 #2
Karuppasamy, please do not multi-post
http://www.ezine.com/netiquette.html
"Karuppasamy" <siva_prakash75@-NOSPAM-hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi

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.
?oSystem.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 Regards

Siva
---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Karuppasamy | last post by:
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...
0
by: ksams | last post by:
Hi Hope this mail finds you in the best of health and in good sprit. I have a problem with Web Service in a Windows 2000 Advanced Serve Machine. I have a WebService calling a Method in a...
1
by: Knecke | last post by:
Hi all. I have a problem with returning a custom Result object with webservice. The classes i use is described below (some fields and properties is removed) public class Result { int...
4
by: Martin Ehrlich | last post by:
Hello NG. I've got a little problem with sharing types between webservices and clients. I've created a business class with public fields within a shared assembly like: public class Item {
5
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was...
2
by: Techno_Dex | last post by:
I have a custom object that I have written which is serializable. I have put this object in it's own dll which is referenced by both the WebService and the Application using it. My problem is the...
1
by: rival | last post by:
Hi. I've a single solution with many projects. I'm using VS2003 and framework 1.1 1. Data project - contains UserData class, inheriting from DataSet, and setting up constants and columns...
2
by: Asim Qazi | last post by:
Hi All public class MyResponse { public bool m_bStatus; public string m_szErrorCode; public string m_szMessage; }
1
by: Ronchese | last post by:
Helllo. I need to return a XML from my WebService, but I'm not getting the result as a XML. I mean, instead of receiveing a tag (<xyy></xyz>), I'm receiving it encoded (with &lt; or &gt;). There is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.