473,403 Members | 2,354 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,403 software developers and data experts.

ServicedComponents SOAP proxies

Hi,

I am having a great deal of trouble trying to return an object from my
ServicedComponent. The application is SOAP enabled and I have created a proxy
class using the wsdl.exe tool, but it keeps giving me problems.

Here are my two ServicedComponent classes:

[EventTrackingEnabled]
public class BasicSC: ServicedComponent
{
public BasicSC() { }

public String HelloSC()
{
return "Hello COM+ World";
}

public ReturnObject GetObj(int i, string a)
{
ReturnObject ro = new ReturnObject();
ro.id = i;
ro.descrip = a;
return ro;
}

}

[Serializable]
public class ReturnObject : ServicedComponent
{
public int id;
public string descrip;

public ReturnObject() { }

}

My client then runs the following code:

BasicSCService bsc = new BasicSCService();
ReturnObject ro = new ReturnObject();
ro = bsc.GetObj(1, "test");

If the ServicedComponent App is a server application I get this error:

InvalidCastException was caught
Unable to cast object of type 'System.Xml.XmlNode[]' to type 'ReturnObject'.

Any info would be greatly appreciated. I've been stuck on this for quite a
while.

Thanks,

Pete

Sep 20 '06 #1
0 894

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

Similar topics

0
by: | last post by:
I'm working with a Java (Axis) based Web Service that accepts and returns fairly complex object structures. Are there any Python libraries that supports clients for this type of a web service? ...
3
by: Johan Segernäs | last post by:
I'm put on building a system in Python and I haven't used either webservices, SOAP or Python so I'm a bit lost. This system will require callback functions, should I use Python thru Apache for...
10
by: Clive Backham | last post by:
I tried posting this on comp.infosystems.www.misc, but that group appears to get very little traffic. So now I'm trying here. If there is a more appropriate group, please let me know. I'm...
1
by: Dante | last post by:
I have developed a PHP web service that runs on a linux machine. I have also developed a windows forms client to the web service in C#. The only problem that I'm having is that the data that I...
4
by: martin.skarsaune | last post by:
We have some SOAP compatilibility issues with Visual Studio .NET. Procedure: 1. Add web reference by importing WSDL from an external system 2. Generate C# classes 3. Try to invoke the remote...
0
by: Oscar Thornell | last post by:
Hi, I have a web service (.NET 1.1) that is deployed into a heavily fortified area with a lot of different network segments/proxies/firewalls... The server(Win 2003) in itself is not...
1
by: tomazi75-nospam(at)gmail.com | last post by:
Hello all, I've a problem using urllib2 with a proxy which need authentication. I've tested the 'simple way' : -- code -- import urllib # example values for the post
2
by: Kevin Eldridge | last post by:
Hi, I'm trying to call a java web service and i need some help in creating a custom SOAP header in c#. I need to access to a Web service that implements authorization policy, by using a session...
0
by: NonNB | last post by:
Hi Please excuse the long message. We have users who want to access our Intranet systems via the Internet across an Aventail VPN - the VPN establishes a 'local' proxy on the user's PC, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.