Spiros
Please can you send a clear description of what you are doing? Some
Java code and WSDL would really help.
Thanks
Paul
On 2/26/07, Spiros Vazaloukas <[EMAIL PROTECTED]> wrote:
Hi There,
Any help will be appreciated on this!
I am a bit confused on auto generated WSDL (java2wsdl).
My return object from the service is 'OrderMngReturnObj'. It contains getters
and setters returning either java Vector or 2 dimensional arrays
(Object[][])..... quite big object...
What do I need to do to have this object propagated to my applet client?
I am trying for one week now to make this work with no success.
The whole think was working fine on Axis, but not on Axis2.
I have generated the WSDL using the same service code that I was using on Axis
but on Axis 2 the 2 dimensional array is returned in one dimension and all the
Vector as OMElement object.
Any Help?
Regards,
Spiros
------------------------------------------------------
Hi Paul,
Thank you for your replay!
Yes you are right, I use xs:anyType in WSDL.
I have decided to replace the Object[] array with an object that contains
getters and setters (OrderMngReturnObj).
The funny story is now that the auto-generated XSD object (OrderMngReturnObj)
has one dimension array while my object has a 2 dimensions array.
Do I do something wrong?
Spiros
// XSD auto generated OrderMngReturnObj class
/**
* Auto generated setter method
* @param param FixedData
*/
public void setFixedData(java.lang.String[] param){
validateFixedData(param);
this.localFixedData=param;
}
// My OrderMngReturnObj class
/** Setter for property fixedData.
* @param fixedData New value of property fixedData.
*/
public void setFixedData(String[][] fixedData) {
this.fixedData = fixedData;
}
-----Original Message-----
From: Paul Fremantle [mailto:[EMAIL PROTECTED]
Sent: 26 February 2007 12:57
To: [email protected]
Subject: Re: OMElement.
Spiros
It looks like you started with WSDL and specified an xs:any. Is that right?
The problem with xs:any is that it could be arbitrary XML, so Axis2's
codegen decides to not to map this, but instead lets you deal with the
raw XML yourself (using OMElement).
Paul
On 2/26/07, Spiros Vazaloukas <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hello,
>
>
>
> My server side logic returns an Array of Objects (Object[]).
>
> But when I am trying to implement the relevant method in the Skeleton of the
> service the response object requites an OMElement[].
>
>
>
> How do I map/cast my Oblect[] to OMElement[] so that I return this to the
> client?
>
>
>
> Thanks
>
> Spiros
>
>
>
>
>
>
>
> /**
>
> * Auto generated method signature
>
>
>
> * @param param10
>
>
>
> */
>
> public
> org.apache.ws.axis2.xsd.GetModelsDataResponse getModelsData
>
> (
>
> org.apache.ws.axis2.xsd.GetModelsData param10
>
> )
>
>
>
> {
>
> OrderMngService ordermngservice = new OrderMngService();
>
>
> org.apache.ws.axis2.xsd.GetModelsDataResponse
> getmodelsdataresponse = new
> org.apache.ws.axis2.xsd.GetModelsDataResponse();
>
> return getmodelsdataresponse.setReturnData(
> ordermngservice.getModelsData(new Integer(1)) ); ß MY METHOD RETURNS
> Object[]
>
> //Todo fill this with the necessary business logic
>
> //throw new
> java.lang.UnsupportedOperationException("Please implement "
> + this.getClass().getName() + "#getModelsData");
>
> }
>
>
>
>
>
>
--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Click https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== to report this
email as spam.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]