Hello yall,

we had the same problem and realize that when you define in your 
server side that a WebService receive an ArrayList (Java) of an 
specific type of content you can´t pass an empty ArrayCollection from 
Flex to the Server. You must at least add an empty Item of the 
speficed type to the ArrayCollection and it´ll solve the problem

HTH
Gustavo Saume
CINet Consultores
+58412.224.17.58
Caracas-Venezuela

--- In flexcoders@yahoogroups.com, Paul Spitzer <[EMAIL PROTECTED]> wrote:
>
> Turns out this was caused by the images property which was an empty 
> ArrayCollection. The operation succeeds if I pass null for the 
images. I 
> have no idea why the error was reporting what it was.
> 
> 
> 
> Paul Spitzer wrote:
> > Hi all,
> >
> > Hoping someone can help me out here. We've recently switched our 
Web 
> > Services implementation on the server from Axis to XFire. With 
the 
> > switch one of the existing working operations is now failing. The 
> > failure happens somewhere in the Flex Web Service classes when 
the 
> > request to call the service operation occurs. The request never 
makes it 
> > to the server as Flex stops it and throws a fault. Here's some 
> > (simplified) code..
> >
> > ---
> > // AbstractWebServiceRequest class
> >
> > // constructor
> > this.service = new WebService();
> > this.service.makeObjectsBindable = false;
> > this.service.wsdl = this.getWsdlPath();
> > this.service.addEventListener(ResultEvent.RESULT, 
this.handleResult);
> > this.service.addEventListener(FaultEvent.FAULT, this.handleFault);
> > this.service.loadWSDL();
> >
> > ...
> >
> > // execute method
> > var args: Array = this.getOperationArguments();
> > var operationName: String = this.getOperationName();
> > var operation: Operation = this.service.getOperation
(operationName) as 
> > Operation;
> > operation.send.apply(this, args);
> > ---
> >
> > Everything is fine up to the point that the request is sent via 
the 
> > operation's send method. The request is never actually sent to 
the 
> > server. Instead the handleFault handler is called. The Fault 
object in 
> > the FaultEvent reports..
> >
> > faultCode:EncodingError
> > faultString:'Unknown Property: 'creationDate'.'
> > faultDetail:'null'
> >
> > The object that is sent as an argument to the operation has the 
> > following schema..
> >
> > <xsd:complexType name="TheObject">
> >   <xsd:sequence>
> >     <xsd:element minOccurs="0" name="creationDate" 
type="xsd:dateTime"/>
> >     <xsd:element minOccurs="0" name="customerId" type="xsd:long"/>
> >     <xsd:element minOccurs="0" name="height" type="xsd:int"/>
> >     <xsd:element minOccurs="0" name="id" type="xsd:long"/>
> >     <xsd:element minOccurs="0" name="images" nillable="true" 
> > type="ns1:ArrayOfScrollerImage"/>
> >     <xsd:element minOccurs="0" name="modificationDate" 
type="xsd:dateTime"/>
> >     <xsd:element minOccurs="0" name="name" nillable="true" 
> > type="xsd:string"/>
> >     <xsd:element minOccurs="0" name="version" type="xsd:long"/>
> >     <xsd:element minOccurs="0" name="width" type="xsd:int"/>
> >   </xsd:sequence>
> > </xsd:complexType>
> >
> > The actual object looks like (including the creationDate)..
> >
> > object = TheObject (@ee5f8b1)
> >    creationDate = Date (@f0695b1)
> >        date = 17 [0x11]
> >        dateUTC = 17 [0x11]
> >        day = 5 [0x5]
> >        dayUTC = 5 [0x5]
> >        fullYear = 2006 [0x7d6]
> >        fullYearUTC = 2006 [0x7d6]
> >        hours = 10 [0xa]
> >        hoursUTC = 17 [0x11]
> >        milliseconds = 234 [0xea]
> >        millisecondsUTC = 234 [0xea]
> >        minutes = 1 [0x1]
> >        minutesUTC = 1 [0x1]
> >        month = 10 [0xa]
> >        monthUTC = 10 [0xa]
> >        seconds = 23 [0x17]
> >        secondsUTC = 23 [0x17]
> >        time = 1163782883234 [0x10ef6dd87a2]
> >        timezoneOffset = 420 [0x1a4]
> >    customerId = 117 [0x75]
> >    height = 160 [0xa0]
> >    id = -1 [0xffffffffffffffff]
> >    images = mx.collections.ArrayCollection (@32dd551)
> >    imagesLength = 0 [0x0]
> >    imagesXmlString = "<images></images>"
> >    modificationDate = Date (@f069881)
> >    name = "TheObjectName"
> >    template = TheObjectTemplate (@eee6b31)
> >    templateId = 1 [0x1]
> >    version = -1 [0xffffffffffffffff]
> >    width = 266 [0x10a]
> >
> >
> > Anyone have any ideas what's causing the fault?
> >
> > thanks,
> >
> > Paul
> >
> >  
> >
> >
>


Reply via email to