You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by bhanu prakash <bp...@yahoo.com> on 2005/02/28 08:32:24 UTC
AXIS C++ Webservices problem
Hi,
I am trying to write a webservice. When I execute
"java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
ownservice.wsdl -lc++ -sserver", It is giving the
following warnings:
log4j: WARN No appenders could be found for
logger(org.apache.axis.i18n.ProjectResourceBundle).
log4j: WARN Please initialise the log4j system
properly.
Code generation completed.
Now, All server side files are generated. But When I
am executing the following command
"gcc -shared -o ownservice.so *.cpp -lssl -I.
-I$AXISCPP_DEPLOY/include -L$AXISCPP_DEPLOY/lib", I am
getting a lot of errors. Those errors begin with
AxisServiceException.hpp file.
I have exported all the jar files as:
$ export TMP=$AXISCPP_DEPLOY/lib/axisjava
$ export
CLASSPATH=$AXISCPP_DEPLOY/lib/axis/wsdl2ws.jar:\
$TMP/axis-ant.jar:\
$TMP/axis.jar:\
$TMP/commons-discovery.jar:\
$TMP/commons-logging.jar:\
$TMP/jaxrpc.jar:\
$TMP/log4j-1.2.8.jar:\
$TMP/saaj.jar:\
$TMP/wsdl4j.jar:\
$TMP/xml-apis.jar
Can you please figure out what might be the mistake I
am doing?
Thanks,
Bhanu
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
RE: Compillation error
Posted by Tony Dodd <to...@btinternet.com>.
Sorry, I should have added that the version I am trying to build is 1.4
final.
>-----Original Message-----
>From: Tony Dodd [mailto:tony.dodd@btinternet.com]
>Sent: 11 March 2005 09:37
>To: 'Apache AXIS C User List'
>Subject: Compillation error
>
>Building on debian Linux I get the compiler error:
>
>In file included from ../wsdd/WSDDService.h:20,
> from ../wsdd/WSDDDeployment.h:24,
> from MessageData.cpp:25:
>../wsdd/WSDDHandler.h:62: `FILE' was not declared in this scope
>
>I expect I have dome something wrong in running automake &c,
>because I am new to these build tools.
>
>I'd be grateful for any suggestions.
>
>Thanks
>
>Tony Dodd
>
Compillation error
Posted by Tony Dodd <to...@btinternet.com>.
Building on debian Linux I get the compiler error:
In file included from ../wsdd/WSDDService.h:20,
from ../wsdd/WSDDDeployment.h:24,
from MessageData.cpp:25:
../wsdd/WSDDHandler.h:62: `FILE' was not declared in this scope
I expect I have dome something wrong in running automake &c, because I am
new to these build tools.
I'd be grateful for any suggestions.
Thanks
Tony Dodd
Re: AXIS C++ Webservices problem
Posted by Samisa Abeysinghe <sa...@gmail.com>.
Hi again, I made a little mistake here :(
please use -laxis_server (simple el) not -Iaxis_server (not capital i)
Thanks,
Samisa...
On Mon, 28 Feb 2005 13:44:38 +0600, Samisa Abeysinghe
<sa...@gmail.com> wrote:
> Use the command:
>
> g++ -shared -I$AXISCPP_DEPLOY/include -L$AXISCPP_DEPLOY/lib
> -oownservice.so -ldl -Iaxis_server *.cpp
>
> I assumed you used ant to build the source, if not replace
> -Iaxis_server with -lserver_engine.
>
> HTH.
>
> Samisa...
>
> On Sun, 27 Feb 2005 23:32:24 -0800 (PST), bhanu prakash
> <bp...@yahoo.com> wrote:
> > Hi,
> >
> > I am trying to write a webservice. When I execute
> > "java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
> > ownservice.wsdl -lc++ -sserver", It is giving the
> > following warnings:
> > log4j: WARN No appenders could be found for
> > logger(org.apache.axis.i18n.ProjectResourceBundle).
> > log4j: WARN Please initialise the log4j system
> > properly.
> >
> > Code generation completed.
> >
> > Now, All server side files are generated. But When I
> > am executing the following command
> > "gcc -shared -o ownservice.so *.cpp -lssl -I.
> > -I$AXISCPP_DEPLOY/include -L$AXISCPP_DEPLOY/lib", I am
> > getting a lot of errors. Those errors begin with
> > AxisServiceException.hpp file.
> >
> > I have exported all the jar files as:
> >
> > $ export TMP=$AXISCPP_DEPLOY/lib/axisjava
> > $ export
> > CLASSPATH=$AXISCPP_DEPLOY/lib/axis/wsdl2ws.jar:\
> > $TMP/axis-ant.jar:\
> > $TMP/axis.jar:\
> > $TMP/commons-discovery.jar:\
> > $TMP/commons-logging.jar:\
> > $TMP/jaxrpc.jar:\
> > $TMP/log4j-1.2.8.jar:\
> > $TMP/saaj.jar:\
> > $TMP/wsdl4j.jar:\
> > $TMP/xml-apis.jar
> >
> > Can you please figure out what might be the mistake I
> > am doing?
> >
> > Thanks,
> > Bhanu
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
Re: AXIS C++ Webservices problem
Posted by Samisa Abeysinghe <sa...@gmail.com>.
Use the command:
g++ -shared -I$AXISCPP_DEPLOY/include -L$AXISCPP_DEPLOY/lib
-oownservice.so -ldl -Iaxis_server *.cpp
I assumed you used ant to build the source, if not replace
-Iaxis_server with -lserver_engine.
HTH.
Samisa...
On Sun, 27 Feb 2005 23:32:24 -0800 (PST), bhanu prakash
<bp...@yahoo.com> wrote:
> Hi,
>
> I am trying to write a webservice. When I execute
> "java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
> ownservice.wsdl -lc++ -sserver", It is giving the
> following warnings:
> log4j: WARN No appenders could be found for
> logger(org.apache.axis.i18n.ProjectResourceBundle).
> log4j: WARN Please initialise the log4j system
> properly.
>
> Code generation completed.
>
> Now, All server side files are generated. But When I
> am executing the following command
> "gcc -shared -o ownservice.so *.cpp -lssl -I.
> -I$AXISCPP_DEPLOY/include -L$AXISCPP_DEPLOY/lib", I am
> getting a lot of errors. Those errors begin with
> AxisServiceException.hpp file.
>
> I have exported all the jar files as:
>
> $ export TMP=$AXISCPP_DEPLOY/lib/axisjava
> $ export
> CLASSPATH=$AXISCPP_DEPLOY/lib/axis/wsdl2ws.jar:\
> $TMP/axis-ant.jar:\
> $TMP/axis.jar:\
> $TMP/commons-discovery.jar:\
> $TMP/commons-logging.jar:\
> $TMP/jaxrpc.jar:\
> $TMP/log4j-1.2.8.jar:\
> $TMP/saaj.jar:\
> $TMP/wsdl4j.jar:\
> $TMP/xml-apis.jar
>
> Can you please figure out what might be the mistake I
> am doing?
>
> Thanks,
> Bhanu
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>