Let me explain. 
I have this object:
public class Alert {
        private String name;
        private String approximateStartDate;
        private String startDate;
        private String stopDate;
        ...
}
And in my webservice, I have this method:
        public Alert[] getAlerts() throws Exception{
                Vector<Alert> vetorAlerts = new Vector<Alert>();
                vetorAlerts = leitor.readAlerts();

        Alert[] Alerts = new Alert[vetorAlerts.size()];
        for(int i=0; i<vetorAlerts.size(); i++){
            Alerts[i]=vetorAlerts.get(i);
        }
                return Alerts;
        }

But When I'm trying to access this with J2SE, just like this:
                Call call = (Call) new Service().createCall();
                call.setTargetEndpointAddress(local);
                call.setOperationName("getAlerts");
                Object[] param = null;
                Alert alerts[] = (Alert[])call.invoke(param);

I'm getting this error:

Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
- Exception:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element,
which is NOT expected, in something it was trying to deserialize.
        at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
...

I have no idea what I need to do to solve this problem =(

-- 
View this message in context: 
http://www.nabble.com/Help-with-Deserialization-of-complex-object-with-Java-Webservice-tp24709922p24709922.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to