axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Bruneau" <bruneaujul...@gmail.com>
Subject Re: How to compile WSDL2C generated files?
Date Fri, 09 Nov 2007 16:34:16 GMT
Hi Dimuthu,

Thank you so much for your explanations. It works now!!!

Julien

2007/11/9, Dimuthu Gamage <dimuthuc@gmail.com>:
>
> 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
>
> <http://users.actcom.co.il/%7Echoo/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
> > >
> > >
> >
>

Mime
View raw message