Web Services, Flex and RPC Fault from complex types
Web Services, Flex and RPC Fault from complex types
- Subject: Web Services, Flex and RPC Fault from complex types
- From: Thomas <email@hidden>
- Date: Tue, 9 Oct 2007 11:47:25 +1000
I am developing my first Flex application, and using it to consume a
Web Service generated by a WebObjects project. The project was
created in Eclipse as a WebObjects Application, as per the
instructions in
http://wiki.objectstyle.org/confluence/display/WO/Web+Services-Web
+Service+Provider
although I didn't need to add the jar files because they were already
included.
I have a model with a single entity "Product," using the Generation
Gap of EOGenericRecord > _Product > Product.
The application is working fine, as long as I convert Products into
HashMaps. But when I try to deliver EO entities, I get this error on
the Flex client:
[RPC Fault faultString="Cannot find base type definition 'http://
eocontrol.webobjects.com::EOGenericRecord'" faultCode="DecodingError"
faultDetail="null"]
I have followed the wiki instructions in "Complex Types with WO
Services." That got me as far as removing the error complaining about
my Product class. But now it's just gone up the chain.
I tried telling it about EOGenericRecord, but that didn't change
anything:
qname = new QName("http://
eocontrol.webobjects.com","EOGenericRecord");
_class = EOGenericRecord.class;
WOWebServiceRegistrar.registerFactoriesForClassWithQName(
new BeanSerializerFactory(_class, qname),
new BeanDeserializerFactory(_class, qname),
_class, qname);
I've built my own WOEnterpriseObjectSerializationStrategy for Product
as well, with no change.
Any ideas?
Regards
Thomas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden