package CorbaMail; /**
#pragma prefix "CorbaMail" interface Mail { string SendMail( in string FROM, in string MESSAGE, in string SUBJECT, in string USERINFO ) raises( ::CorbaMail::MailError ); };*/ public class _st_Mail extends com.inprise.vbroker.CORBA.portable.ObjectImpl implements CorbaMail.Mail { protected CorbaMail.Mail _wrapper = null; public CorbaMail.Mail _this() { return this; } public java.lang.String[] _ids() { return __ids; } private static java.lang.String[] __ids = { "IDL:CorbaMail/Mail:1.0" }; /**
Operation: ::CorbaMail::Mail::SendMail.
#pragma prefix "CorbaMail/Mail" string SendMail( in string FROM, in string MESSAGE, in string SUBJECT, in string USERINFO ) raises( ::CorbaMail::MailError );*/ public java.lang.String SendMail( java.lang.String FROM, java.lang.String MESSAGE, java.lang.String SUBJECT, java.lang.String USERINFO ) throws CorbaMail.MailError { org.omg.CORBA.portable.OutputStream _output; org.omg.CORBA.portable.InputStream _input; java.lang.String _result; while(true) { _output = this._request("SendMail", true); _output.write_string(FROM); _output.write_string(MESSAGE); _output.write_string(SUBJECT); _output.write_string(USERINFO); org.omg.CORBA.StringHolder _exception_id = new org.omg.CORBA.StringHolder(); try { _input = this._invoke(_output, _exception_id); if(_exception_id.value != null) { if(_exception_id.value.equals(CorbaMail.MailErrorHelper.id())) { throw CorbaMail.MailErrorHelper.read(_input); } throw new org.omg.CORBA.MARSHAL ("Unexpected User Exception: " + _exception_id.value); } _result = _input.read_string(); } catch(org.omg.CORBA.TRANSIENT _exception) { continue; } break; } return _result; } }