473,769 Members | 3,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.S ervices.Protoco ls.SoapExceptio n: Server was unable to process request. System.Exceptio n: Return argument has an invalid type. at MyComponent.Use rs.DoLogin(Stri ng 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 1756
Karuppasamy, please do not multi-post
http://www.ezine.com/netiquette.html
"Karuppasam y" <siva_prakash75 @-NOSPAM-hotmail.com> wrote in message
news:%2******** ********@tk2msf tngp13.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.S ervices.Protoco ls.SoapExceptio n: Server was unable to process request. System.Exceptio n: Return argument has an invalid type. at
MyComponent.Use rs.DoLogin(Stri ng 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
"Karuppasam y" <siva_prakash75 @-NOSPAM-hotmail.com> wrote in message
news:%2******** ********@tk2msf tngp13.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.S ervices.Protoco ls.SoapExceptio n: Server was unable to process request. System.Exceptio n: Return argument has an invalid type. at
MyComponent.Use rs.DoLogin(Stri ng 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
410
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 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. ...
0
2019
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 Remote Object. The Remot method Returns an Object. This Webservice also returns the same object All things are working fine when this Web Service is running in
1
7274
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 statusCode;
4
2591
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
19599
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 having a problem in the calling program. I searched online and found suggestions that I return an Array instead so I modified my code (below) to return an Array instead of an ArrayList. Now I get the message when I try to run just my webservice...
2
1360
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 WebService Proxy creates it's own implementation of my CustomObject which is causing issues. Is there some way to mark my object to use it's own namespace instead of using the namespace of the object being recreated by the WebService Proxy? ...
1
2928
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 like those found in the Duwamish 7 sample 2. WebServices project - wraps up business logic 3. C# winforms consumer connecting to the WebServices. This project has the data project as a reference.
2
1631
by: Asim Qazi | last post by:
Hi All public class MyResponse { public bool m_bStatus; public string m_szErrorCode; public string m_szMessage; }
1
1460
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 some right way to return the correct XML from my WebService? Just for example, the WebMethod looks like it:
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10205
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9851
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2811
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.