Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 6524 invoked from network); 9 Aug 2007 01:24:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Aug 2007 01:24:43 -0000 Received: (qmail 27147 invoked by uid 500); 9 Aug 2007 01:24:41 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 27129 invoked by uid 500); 9 Aug 2007 01:24:41 -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 27118 invoked by uid 99); 9 Aug 2007 01:24:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 18:24:41 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.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; Thu, 09 Aug 2007 01:24:33 +0000 Received: (qmail 1380 invoked from network); 9 Aug 2007 01:24:11 -0000 Received: from 123.231.23.58 (HELO ?10.100.1.194?) (123.231.23.58) by relay00.pair.com with SMTP; 9 Aug 2007 01:24:11 -0000 X-pair-Authenticated: 123.231.23.58 Message-ID: <46BA65E7.6040206@wso2.com> Date: Thu, 09 Aug 2007 06:55:03 +0600 From: Samisa Abeysinghe User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: Apache AXIS C User List Subject: Re: Unable to run client code References: <489947c0708081651t685da7b0y8c189bc09697bf4d@mail.gmail.com> In-Reply-To: <489947c0708081651t685da7b0y8c189bc09697bf4d@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subra A Narayanan wrote: > Hello folks, > > I am trying to write a client using Axis2/C to connect to a Axis2/C > web service. These are the steps I followed > > 1. Created a wsdl file by hand for my web service. > > 2. Used the WSDL2C tool to generate the client stubs. Here is the > command I used > > java org.apache.axis2.wsdl.WSDL2C -D > org.apache.adb.properties=/org/apache/axis2/schema/c-schema-compile.properties > -uri myservice.wsdl -l c -d none > > 3. Added code to the generated .c file > > 4. Compiled the client code using the following command > > gcc -o hello_clnt -I /usr/local/axis2c/include/axis2-1.1/ -L > /usr/local/axis2c/lib/ -l axutil -l axis2_engine axis2_stub_myservice.c > > 5. Tried running the client and got this error > > ./hello_clnt: error while loading shared libraries: libaxutil.so.0: > cannot open shared object file: No such file or directory You probably need to add your Axis2/C lib folder to LD_LIBRARY_PATH environment variable. e.g. If you have installed Axis2/C to /usr/local/axis2c then you will find the .so files in /usr/local/axis2c/lib, hence you can use: export LD_LIBRARY_PATH=/usr/local/axis2c/lib:$LD_LIBRARY_PATH HTH Samisa... > > > What am I doing wrong? Am I missing any compiler options? > > Thank you everyone for the help! > > > Subra -- Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal) --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org