Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 13907 invoked from network); 9 Nov 2007 15:41:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 15:41:51 -0000 Received: (qmail 93885 invoked by uid 500); 9 Nov 2007 15:41:38 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 93869 invoked by uid 500); 9 Nov 2007 15:41: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 93858 invoked by uid 99); 9 Nov 2007 15:41:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 07:41:38 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dimuthuc@gmail.com designates 209.85.146.179 as permitted sender) Received: from [209.85.146.179] (HELO wa-out-1112.google.com) (209.85.146.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 15:41:41 +0000 Received: by wa-out-1112.google.com with SMTP id k22so741154waf for ; Fri, 09 Nov 2007 07:41:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=5r2qBr2s0onAdt9+iGPMFjHl5Hk9MPUHk9avC8MH+Zo=; b=RKwhyoE6wHJHjZHtCSAcdYiTH+Y/zFWaZWQOXT/t+PwvrZmcTRLLXrFGBSx1RANwEQbkk/kJRyPakyAKzPCJfC/u98ymBCnxlryMKS3lj+6yZVXyvyW9Z/O+jD75xFmiZU/Xm7QcRqqdm7YPiAqzYhwL37ljBECMsagDIP8JSf8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Vp7Pom3fubAzT+ZzBBEPMDiPGmPfXEeYBnlGIFeKeKqe7xjI79QnrwrzTHLp8MujLIB5h8H2p7n8UXA5QgvsHgsYOHGcQwqn+hxPlFslZU1658WUmQ5gGBWAEPn3UzsHpFf9SEiG3lo+Dg2T5f5WuoZ+eGwEj29EQpCPKuzjD2E= Received: by 10.114.38.2 with SMTP id l2mr204059wal.1194622880112; Fri, 09 Nov 2007 07:41:20 -0800 (PST) Received: by 10.114.205.12 with HTTP; Fri, 9 Nov 2007 07:41:20 -0800 (PST) Message-ID: Date: Fri, 9 Nov 2007 21:11:20 +0530 From: "Dimuthu Gamage" To: "Apache AXIS C User List" Subject: Re: How to compile WSDL2C generated files? In-Reply-To: <66abaf320711090233wea4420fub268b0480b4ef325@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8797_8887913.1194622880097" References: <66abaf320711081649y4fecb4dfm79a5311cf8cb393b@mail.gmail.com> <66abaf320711090233wea4420fub268b0480b4ef325@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8797_8887913.1194622880097 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Julien, Please see the comments inline. On Nov 9, 2007 4:03 PM, Julien Bruneau wrote: > Hi Dimuthu, > > Thank you very much for your answer. > I'm working on Linux, so I tried the script you attached with your mail. > However, it doesn't work. > As you said, i set the AXIS2C_HOME environment variable and launched the > script in the directory where my sources are. But it just prints texts and > does nothing. > Am I doing something wrong? > > If I understand your script well, I have to apply this compilation line to > each .C file : > > $ gcc -g -fPIC -I \$(INCLUDES) -c myfile.c Here you are making object files (.o) for each c file. > > > Then, when each file is compiled, apply this command line : > > $gcc -g -shared -I $INCLUDES $EXEC_LDADD -o libgateway.so ${O_LIST} Then you link all the object files and other shared libraries and generates the result .so Check the below reference to more detail explanation. http://users.actcom.co.il/~choo/lupg/tutorials/libraries/unix-c-libraries.html#creating_shared_library Thanks Dimuthu > > > Did I understand well? > > Thanks again for your help! > > Julien > > 2007/11/9, Dimuthu Gamage < dimuthuc@gmail.com>: > > > > Hi, > > If you are in Linux, you should link with following libraries in > > AXIS2C_HOME/lib directory > > > > axutil > > axis2_axiom > > axis2_engine > > axis2_parser > > axis2_http_sender > > axis2_http_receiver > > axis2_libxml2 > > > > and you should set the header directory $(AXIS2C_HOME)/include/axis2-1.1 > > / > > > > And Here I am attaching a shell script (so_makefiler.sh) , you just set > > the AXIS2C_HOME environment variable in where you install axis2/c. And just > > run it within the direcotry where generated codes are. > > > > > > If you are in windows, check "1.1.6 Compiling the Service" in http://ws.apache.org/axis2/c/docs/axis2c_manual.html > > > > > > Thanks > > Dimuthu > > > > On Nov 9, 2007 6:19 AM, Julien Bruneau < bruneaujulien@gmail.com> wrote: > > > > > Hello everyone, > > > > > > I know this must be a dumb question, but after looking a long time on > > > the Internet, I didn't find how to compile the files that return this > > > command line : > > > > > > $ java -cp $AXIS2CLASSPATH org.apache.axis2.wsdl.WSDL2C -uri > > > gateway.wsdl -ss -sd -d adb -u > > > > > > It returns the following files in the src folder: > > > > > > adb_Describe.c adb_Pause.c > > > adb_Teardown.c > > > adb_Describe.h adb_Pause.h > > > adb_Teardown.h > > > adb_DescribeResponse.c adb_PauseResponse.c adb_TeardownResponse.c > > > adb_DescribeResponse.h adb_PauseResponse.h adb_TeardownResponse.h > > > adb_FirstSetup.c adb_Play.c > > > axis2_skel_Gateway.c > > > adb_FirstSetup.h adb_Play.h > > > axis2_skel_Gateway.h > > > adb_FirstSetupResponse.c adb_PlayResponse.c > > > axis2_svc_skel_Gateway.c > > > adb_FirstSetupResponse.h adb_PlayResponse.h > > > adb_Options.c adb_Setup.c > > > adb_Options.h adb_Setup.h > > > adb_OptionsResponse.c adb_SetupResponse.c > > > adb_OptionsResponse.h adb_SetupResponse.h > > > > > > How can I compile those files so that it becomes libraries that I will > > > be able to put the $AXIS2C_HOME/services/gateway folder? > > > > > > Julien > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > > > > ------=_Part_8797_8887913.1194622880097 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Julien,
Please see the comments inline.

On Nov 9, 2007 4:03 PM, Julien Bruneau <bruneaujulien@gmail.com> wrote:
Hi Dimuthu,

Thank you very much for your answer.
I'm working on Linux, so I tried the script you attached with your mail. However, it doesn't work.
As you said, i set the AXIS2C_HOME environment variable and launched the script in the directory where my sources are. But it just prints texts and does nothing.
Am I doing something wrong?

If I understand your script well, I have to apply this compilation line to each .C file :

$ gcc -g -fPIC -I \$(INCLUDES) -c myfile.c
Here you are making object files (.o) for each c file.


Then, when each file is compiled, apply this command line :

$gcc -g -shared -I $INCLUDES $EXEC_LDADD -o libgateway.so ${O_LIST}
Then you link all the object files and other shared libraries and generates the result .so

Check the below  reference to  more detail explanation.

http://users.actcom.co.il/~choo/lupg/tutorials/libraries/unix-c-libraries.html#creating_shared_library


Thanks
Dimuthu


Did I understand well?

Thanks again for your help!

Julien

2007/11/9, Dimuthu Gamage < dimuthuc@gmail.com>:
Hi,
If you are in Linux, you should link with following libraries in AXIS2C_HOME/lib directory

axutil
axis2_axiom
axis2_engine
axis2_parser
axis2_http_sender
axis2_http_receiver
axis2_libxml2

and you should set the header directory $(AXIS2C_HOME)/include/axis2-1.1/

And Here I am attaching a shell script (so_makefiler.sh) , you just set the AXIS2C_HOME environment variable in where you install axis2/c. And just run it within the direcotry where generated codes are.


If you are in windows, check  "1.1.6 Compiling the Service" in http://ws.apache.org/axis2/c/docs/axis2c_manual.html

Thanks
Dimuthu


On Nov 9, 2007 6:19 AM, Julien Bruneau < bruneaujulien@gmail.com> wrote:
Hello everyone,

I know this must be a dumb question, but after looking a long time on the Internet, I didn't find how to compile the files that return this command line :

$ java -cp $AXIS2CLASSPATH org.apache.axis2.wsdl.WSDL2C -uri gateway.wsdl -ss -sd -d adb -u

It returns the following files in the src folder:

adb_Describe.c                   adb_Pause.c                 adb_Teardown.c
adb_Describe.h                   adb_Pause.h                 adb_Teardown.h
adb_DescribeResponse.c    adb_PauseResponse.c  adb_TeardownResponse.c
adb_DescribeResponse.h    adb_PauseResponse.h  adb_TeardownResponse.h
adb_FirstSetup.c                 adb_Play.c                      axis2_skel_Gateway.c
adb_FirstSetup.h                 adb_Play.h                      axis2_skel_Gateway.h
adb_FirstSetupResponse.c  adb_PlayResponse.c      axis2_svc_skel_Gateway.c
adb_FirstSetupResponse.h  adb_PlayResponse.h     
adb_Options.c                     adb_Setup.c      
adb_Options.h                     adb_Setup.h       
adb_OptionsResponse.c      adb_SetupResponse.c
adb_OptionsResponse.h      adb_SetupResponse.h

How can I compile those files so that it becomes libraries that I will be able to put the $AXIS2C_HOME/services/gateway folder?

Julien


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org



------=_Part_8797_8887913.1194622880097--