If you want to pass complex objects via dynamic client you need to register these object first. You can find some sample in mailing list history and XFire test cases source code.
On 2/12/07, Artem Melentyev <[EMAIL PROTECTED]> wrote:
Hello. (Sorry for empty previous mail. My web mail works strange.) I use xfire+aegis 1.2.3 (1.2.4 has critical a bug for me: http://jira.codehaus.org/browse/XFIRE-831) without aegis configs. I want to transfer Objects of unknown (at compile time) type: public static class TestRpc implements ITestRpc { public Object call1() { return new myclass(); } // fail public myclass call0() { return new myclass(); } // ok public Object[] call2() { return new Object[]{new myclass()}; } // fail public Object[] call3() { return new Object[]{"123"}; } // ok } //myclass is a normal pojo class. got: [INFO] DefaultFaultHandler - Fault occurred! <org.codehaus.xfire.fault.XFireFault: Unable to write '[EMAIL PROTECTED]' [test.WSTest$myclass]. Type is unknown.>org.codehaus.xfire.fault.XFireFault: Unable to write '[EMAIL PROTECTED]' [test.WSTest$myclass]. Type is unknown. at org.codehaus.xfire.aegis.type.basic.ObjectType.handleNullType(ObjectType.java:255) How can I get around this? (How can I transfer Objects of unknown (at compile time) type) attached simple junit test of it. -- Artem Melentyev, UralSU, CS401 --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
-- ----- When one of our products stops working, we'll blame another vendor within 24 hours. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
