axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Sutter <Michael.Sut...@ipe.fzk.de>
Subject Re: Writing web services with C++
Date Mon, 14 Apr 2008 13:57:26 GMT
Hello Alebu,

yes it is possible to compile and run a service using c and c++ code.
My only change is to use additional arguments (-ldl -lpthread) when 
compiling the service to a shared library.

Regards Michael

alebu wrote:
> Hi list.
> I have such a situation:
> I have some web-service which was generated from WSDL using WSDL2C 
> utility.
> Later I decided to write part of this web-service with C++. Before 
> functions that uses
> C++ code I put:
> #ifdef __cplusplus
> extern "C"
> #endif
> Then I tried to compile using g++. During compilation some errors were 
> found, but
> all of them was about incorrect conversion from void* into axis2 types.
> When I fixed them (I hope) but when I call this web-service I got axis 
> error:
> ...
>          <faultcode>soapenv:Server</faultcode>
>          <faultstring>Failed in creating DLL</faultstring>
> ...
> In axis2.log only one message was interesting for me:
> raw_xml_in_out_msg_recv.c(115) Impl object for service 'myService' not 
> set in message receiver. 100 :: Failed in creating DLL
>
> I understand that it probably was'nt very wise to compile .c files 
> using g++ but, compilation was sucessful, so I wonder
> where possible problem can be.
> Is it possible at all to compile axis2/C web serice from C++ sources 
> using C++ possibilities?

---------------------------------------------------------------------
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