Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 76357 invoked from network); 5 Oct 2008 08:49:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2008 08:49:40 -0000 Received: (qmail 44058 invoked by uid 500); 5 Oct 2008 08:49:38 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 44049 invoked by uid 500); 5 Oct 2008 08:49:38 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 44036 invoked by uid 99); 5 Oct 2008 08:49:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Oct 2008 01:49:38 -0700 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,URIBL_RHS_DOB X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.68.5.9] (HELO relay00.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 05 Oct 2008 08:48:31 +0000 Received: (qmail 27657 invoked from network); 5 Oct 2008 08:48:03 -0000 Received: from 123.231.64.242 (HELO ?10.100.1.91?) (123.231.64.242) by relay00.pair.com with SMTP; 5 Oct 2008 08:48:03 -0000 X-pair-Authenticated: 123.231.64.242 Message-ID: <48E87F3F.6020105@wso2.com> Date: Sun, 05 Oct 2008 14:17:59 +0530 From: Samisa Abeysinghe User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Apache AXIS C User List Subject: Re: Embedding the Axis2/C HTTP server in an application References: <48E691C5.8010908@messagingdirect.com> <696bc1d50810032036h1f7344eaqfa55be73c848db25@mail.gmail.com> <48E71A14.10706@messagingdirect.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Or if you are looking for embedding seamlessly, then WSF/PHP style embedding can be done. You need to write your own stream, message receiver and a worker. WSF/PHP has implemented these three and embedded Axis2/C into the PHP engine. You can do the same very easily. Samisa... Supun Kamburugamuva wrote: > You can look at the http_server_main.c file for how to start Axis2/C > from your application. Axis2/C server is a running instance of a > transport receiver. What you need to do is create the configuration > and start the http transport receiver. That is what has been done in > axis2_http_server. > > Supun.. > > On Sat, Oct 4, 2008 at 12:24 PM, Chris Rose > > wrote: > > Right. I've read that, and it's a bit... PHP-oriented. I don't > want the PHP solution, I want an idea of what the bare Axis2/C API > way of doing this is. Is there a code sample somewhere that will > show me what the PHP code is doing under the hood? > > > Rajika Kumarasiri wrote: > > On Sat, Oct 4, 2008 at 3:12 AM, Chris Rose > >wrote: > http://wso2.org/library/271 > > -Rajika > > > What is the right way to embed Axis2/C in my application? I > want to > > make use of Axis2/C to provide web services, but within > our own > application framework. > > So, I want to start up a thread with the HTTP server > listening on a > specified port, and then eventually be able to shut it > down at some > later time when our service management framework tells the > server to > quit gracefully. In the meantime I want it to dispatch > all incoming > service requests to a library of my devising. > > Code samples would be fantastic, if anyone has any... > > -- > Chris Rose > Developer Planet Consulting Group > (780) 577-8433 > crose@planetci.com > > > > > > -- > Chris Rose > Developer Planet Consulting Group > (780) 577-8433 > crose@planetci.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > > > > > -- > Software Engineer, WSO2 Inc > http://wso2.org > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.173 / Virus Database: 270.7.5/1705 - Release Date: 10/3/2008 8:18 AM > > -- Samisa Abeysinghe Director, Engineering; WSO2 Inc. http://www.wso2.com/ - "The Open Source SOA Company" --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org