Hi,

Could anyone explain why I get exception with soapsuds generated code.
For example on the server side,

[Serializable]
public class Data
{
    public int i=-1;
}
public class ServerType : MarshalByRefObject
{
    public Data GetData()
    {
        return new Data();
    }
}

I exposed ServerType as SAO or CAO.

Generated the metadata for the client using soapsuds.exe as:
soapsuds -ia:assembly -gc -nowp

Added the code, and trying to use it on the client everything is fine
(I can call any other methods with simple return types), untill
GetData is called. Then i get exception:
"Unhandled Exception: System.InvalidCastException:
Return argument has an invalid type.  at
System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg,
Type paramType) [...] at General.ServerType.GetData() [...]"

It works great if i just add the interfaces/implementation dll
(shared by both server and client) to the client.

I'm interested to know what the problem is.

Thanx a lot

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to