Marcos-
    /**
     * Return value can be a single a object or an object array (itself an 
object) , but it is
     * difficulty to figure the return object correctly unless we have 
TyepMapping in the client
     * side too. Until it is finalized lets return OMElement as return value. 
And the retuen
     * value will be the body first element user has to deal with that and 
create
     * his own object out of that.
     *
     * @param opName Operation QName (to get the body wrapper element)
     * @param args   Arraylist of objects
     * @return Response OMElement
     */
    public OMElement invokeBlocking(QName opName, Object [] args) throws 
AxisFault {

If you use the OMElement.getChildElements() you can get an iterator and iterate 
thru all of items contained within
Hard to determine what the return type is exactly without the WSDL (and XSD)

M-
--------------------------------------------------------------------------- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--------------------------------------------------------------------------- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
----- Original Message ----- 
From: "Marcos Vilela" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 22, 2007 8:41 PM
Subject: Always returned Array has length = 1


> 
> Hi,
> 
> I'm trying to return an Array from my WebService.
> 
> server side
>>public Employee[] testQuery(); I Created the WSDL for this service.
> 
> client side
>>Object[] opGetWeatherArgs = new Object[] { };
>>Class[] returnTypes = new Class[] { Empregado.class };
> 
>>Object[] response = serviceClient.invokeBlocking(opGetWeather,
>        opGetWeatherArgs, returnTypes);
> 
> * response should return an Array with lenght = N employees, but this always
> return only the first object.
> I do not have access to the others objects. If a run the service throw
> http://localhost/axis2/rest/ExecSql/testQuery, I will see all the object..
> 
> What's happening with my client?? Why do I get only the first object?
> 
> 
> any help?
> 
> thanks and best regards
> Marcos Vilela 
> 
> 
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Always-returned-Array-has-length-%3D-1-tf3451320.html#a9627163
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to