On 6/13/07, Rajika Kumarasiri <[EMAIL PROTECTED]> wrote:

hello everybody,
I started to work on Mail Transport Sender part first implementing the
following functions which implement the TransportSender interface.

1. axis2_status_t  AXIS2_CALL
    axis2_mail_transport_sender_init( axis2_transport_sender_t
*transport_sender,

const_axutil_env_t *env

axis2_conf_ctx_t *conf_ctx,

axis2_transport_out_desc_t *out_desc);
2. axis2_status_t AXIS2_CALL
    axis2_mail_transport_sender_invoke( axis2_transport_sender_t
*transport_sender,
                                                                 const
axutil_env_t *env,

axis2_msg_ctx_t *msg_ctx);

3. axis2_status_t  AXIS2_CALL
    axis2_mail_transport_sender_clean_up( axis2_transport_sender_t
*transport_sender,
                                                                     const
axutil_env_t *env,

axis2_msg_ctx_t *msg_ctx);
4. void AXIS2_CALL
    axis2_http_transport_sender_free( axis2_transport_sender_t
*transport_sender,
                                                             const
axutil_env_t *env);


Sorry this function deceleration should be as followed
void AXIS2_CALL
   axis2_mail_transport_sender

_free( axis2_transport_sender_t *transport_sender,
                                                             const
axutil_env_t *env);



Rajika

In addition to the above functions following two functions are going to use
internally.
 /**
 build the base64 encoded mime message
 @param stream is a pointer to a out put mail stream describe in the mail
API
*/
1. axis2_status_t  AXIS2_CALL

axis2_mail_transport_sender_create_mime_message(axis2_transport_sender_t
*transport_sender,

const axutil_env_t *env,

axis2_msg_ctx_t *msg_ctx,

axis2_endpoint_ref_t *epr,

                axiom_soap_envelope_t *out,

axiom_output_t *om_output,

SENDSTREAM *stream);

   /**
   Send the base64 encoded  SOAP message to the target
   @param stream is a pointer to a out put mail stream describe in the
mail API.
  */
2. axis2_status_t AXIS2_CALL
    axis2_mail_transport_sender_send_mime_message(SENDSTREAM *stream);

When naming the functions I followed http transport sender
(http_transport_sender.c). Your comments are welcome.
Regards
Rajika
--
http://rajikacc.blogspot.com/




--
http://rajikacc.blogspot.com/

Reply via email to