Update: I was able to get around Geronimo's wsgen error by using
@XmlRootElement instead of @XmlType:
http://trac2.assembla.com/d5Z24gWSer3lvHabIlDkbG/browser/ComplexDataTypeWSExampleEJB/ejbModule/com/gmail/at/cedrichurst/complexDataTypeWSExampleEJB/domain/Customer.java?rev=25
But now, if I change the return type to Customer[] on my session bean:
http://trac2.assembla.com/d5Z24gWSer3lvHabIlDkbG/browser/ComplexDataTypeWSExampleEJB/ejbModule/com/gmail/at/cedrichurst/complexDataTypeWSExampleEJB/ejb/CustomerSearchBean.java?rev=25
...I get the following error:
[javax.xml.bind.JAXBException:
[Lcom.gmail.at.cedrichurst.complexDataTypeWSExampleEJB.domain.Customer; is
not known to this context]
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:295)
at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:148)
at
org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl$2.run(JAXBBlockImpl.java:402)
... 46 more
There must be something else I'm missing.
--
View this message in context: http://www.nabble.com/Returning-complex-data-types-in-%40WebResult-tp15114306p15116554.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
|