Re: Axis 2, POJO, Exceptions and Faults
Hi Joe !!! : Many thanks by your answer, I'm really a newbie in the Axis world and I'm still lost, spending a lot of time reading the Axis 2 docs and samples but not finding answers to thowsands of questions in that docs and samples. So, I'm trying to find the easiest way to do what I need quickly and in a few months (if a better Axis 2 docs and samples are available) I'll try to do it better using my own AxisFaults, Axis 2 sessions, Rampart, and so on. Again, many thanks by spending your time with my newbie questions. Regards. 2007/7/16, Joe Nathan [EMAIL PROTECTED]: albert quinn wrote: I've been trying to do something like that but i couldn't make it work . My test Web Service returns a String and the client receives the AxisFault/RemoteException message throwed from the Web Service as it was the returned value from the Web Service !!, so I'd been able to know in the client side if an error happened in the server side. POJO is a plain Java objects that you cannot throw things! I tend to return results wrapped in XML strings containing types (=ok, error, ...) and contents. For clients, any exceptions happened in transport will be captured by try {} catch blocks. Errors occured in POJO servers will be embedded in return strings as XML strings. Note that use of SOAP means that you should live with XML! regards. -- View this message in context: http://www.nabble.com/Axis-2%2C-POJO%2C-Exceptions-and-Faults-tf4080311.html#a11606621 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 2, POJO, Exceptions and Faults
albert quinn wrote: I've been trying to do something like that but i couldn't make it work . My test Web Service returns a String and the client receives the AxisFault/RemoteException message throwed from the Web Service as it was the returned value from the Web Service !!, so I'd been able to know in the client side if an error happened in the server side. POJO is a plain Java objects that you cannot throw things! I tend to return results wrapped in XML strings containing types (=ok, error, ...) and contents. For clients, any exceptions happened in transport will be captured by try {} catch blocks. Errors occured in POJO servers will be embedded in return strings as XML strings. Note that use of SOAP means that you should live with XML! regards. -- View this message in context: http://www.nabble.com/Axis-2%2C-POJO%2C-Exceptions-and-Faults-tf4080311.html#a11606621 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis 2, POJO, Exceptions and Faults
Hi !! : I'd like to develop a web service in Axis 2 the easiest way possible. So, I'd like to develop a POJO, and then generate a POJO Web Service from it with the Axis 2 Service Archiver Eclipse plugin. I'd like my POJO Web Service throwed RemoteExceptions or AxisFaults and develop a RPCServiceClient catching that exceptions/faults, something like this : [web service] ... if(anErrorHappened) throw AxisFault/RemoteException; ... [web service] [RPCServiceClient] ... try { ... returned_object = call_the_pojo_web_service(parameters); ... } catch (AxisFault e) { // AxisFault or RemoteException print_an_error(e); } ... [RPCServiceClient] I've been trying to do something like that but i couldn't make it work . My test Web Service returns a String and the client receives the AxisFault/RemoteException message throwed from the Web Service as it was the returned value from the Web Service !!, so I'd been able to know in the client side if an error happened in the server side. The question is : is that scenario supported? If not... which is the best choice to do it easy and with AxisFaults/RemoteExceptions? where could i find more information about that (I've already read the Axis 2 docs)? Thanks to everybody!. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]