Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 74328 invoked from network); 12 Oct 2007 01:20:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Oct 2007 01:20:12 -0000 Received: (qmail 94729 invoked by uid 500); 12 Oct 2007 01:19:59 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 94711 invoked by uid 500); 12 Oct 2007 01:19:59 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 94700 invoked by uid 99); 12 Oct 2007 01:19:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 18:19:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 01:20:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BB09971422E for ; Thu, 11 Oct 2007 18:19:50 -0700 (PDT) Message-ID: <9439768.1192151990763.JavaMail.jira@brutus> Date: Thu, 11 Oct 2007 18:19:50 -0700 (PDT) From: "Atsushi Monna (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Created: (AXIS2C-723) add new transport in Axis2/C MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org add new transport in Axis2/C ---------------------------- Key: AXIS2C-723 URL: https://issues.apache.org/jira/browse/AXIS2C-723 Project: Axis2-C Issue Type: Improvement Components: core/transport Affects Versions: 1.1.0 Environment: OS:WindowsXP Reporter: Atsushi Monna I have a desire for new trasnport in Axis2/C. I found a hard cording the transports in axis2_const.h like this. #define AXIS2_TRANSPORT_HTTP "http" #define AXIS2_TRANSPORT_SMTP "smtp" #define AXIS2_TRANSPORT_TCP "tcp" #define AXIS2_TRANSPORT_XMPP "xmpp" #define AXIS2_TRANSPORT_HTTPS "https" typedef enum { AXIS2_TRANSPORT_ENUM_HTTP = 0, AXIS2_TRANSPORT_ENUM_SMTP, AXIS2_TRANSPORT_ENUM_TCP, AXIS2_TRANSPORT_ENUM_XMPP, AXIS2_TRANSPORT_ENUM_HTTPS, AXIS2_TRANSPORT_ENUM_MAX } AXIS2_TRANSPORT_ENUMS; And using like this. /** * Adds a transport in description. * @param conf pointer to conf struct * @param env pointer to environment struct * @param transport pointer to transport in description. conf assumes * ownership of the struct * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE */ AXIS2_EXTERN axis2_status_t AXIS2_CALL axis2_conf_add_transport_in(axis2_conf_t *conf, const axutil_env_t *env, axis2_transport_in_desc_t *transport, const AXIS2_TRANSPORT_ENUMS trans_enum); If we want to add a new transport, we must defin a transport in axis2_const.h and re-build Axis2/C modules. In Axis2 (Java), we don't need to re-build Axis2 modules, if we think so. We can only provid a class implemented TransportProvider I/F and add a entry at axis2.xml file. Axis2 said in key features, engine is completely transport-independent at "Transport Fremework". I think the realization like Axis2 is advisable. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org