WebOrb - Serializing an object as a string
Posted
by Robert Wagner
on Stack Overflow
See other posts from Stack Overflow
or by Robert Wagner
Published on 2010-03-09T23:26:46Z
Indexed on
2010/03/15
2:59 UTC
Read the original article
Hit count: 436
We have an Adobe Flex client talking to a .NET server using WebORB. Simplifying things, on the .NET side of things we have a struct that wraps a ulong like this:
public struct MyStruct
{
private ulong _val;
public override string ToString()
{
return _val.ToString("x16");
}
// Parse method
}
I want the Flex client to treat this as a string. So that for the following server method:
public void DoStuff(int i, MyStruct b);
It can call it as
DoStuff(1, "1234567890ABCDEF")
I've tried playing with custom WebORB serializers, but the documentation is a bit scarce. Is this possible? If so how?
© Stack Overflow or respective owner