• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Web Services, Flex and RPC Fault from complex types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Web Services, Flex and RPC Fault from complex types
      • From: Francis Labrie <email@hidden>
  • Prev by Date: Re: Web Service with PostgreSQL
  • Next by Date: Re: Web Service with PostgreSQL
  • Previous by thread: [Announce] WebObjects Marketplace Survey 2007
  • Next by thread: Re: Web Services, Flex and RPC Fault from complex types
  • Index(es):
    • Date
    • Thread