Web Service return XML

Discussions

XML & Web services: Web Service return XML

  1. Web Service return XML (1 messages)

    Please help to give the detailed steps for creating Web Service able to return complicated data type, e.g. ResultSet, Vector, etc. IDE: Netbeans 6.0.1 with Tomcat P.S. Has gone through the tutorial on Sun Java JEE Document, the JAXB portion sample codes, but still cannot get a clear picture on the role of JAXB in Web Service. Appreciate your great help!
  2. Re: Web Service return XML[ Go to top ]

    never return a resultset (it doesn't work anyway), neither a vector (list would be better) best practice: Use in-/outobjects (to -> TransferObjects) public GetCustomersOut(GetCustomersIn inGetCustomerIn){ // data access // wrapp into GetCustomersOut // return } where a GetCustomerOut contains a List (don't forget serializable) slowfly ps: jaxb means java architecture xml-binding. maps java to xml and other way round (with jbossws/jaxws we never 'used' jaxb directly)