axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pallavi Desai <pallavi.b.de...@gmail.com>
Subject Re: getting "Hello" to work using Axis 1.6 with Apace 2.2
Date Thu, 31 Mar 2011 05:48:20 GMT
Hi Nandika,

Thank you for the response.

I was able to fix this issue yesterday. The problem was that I saved the
server part of the code in .cpp file. The names of the exported functions
axis2_get_instance and axis2_remove_instance get mangled (no extern C is
used) and hence are not recognized on loading the dll.

Regards
Pallavi


On Thu, Mar 31, 2011 at 9:43 AM, Nandika Jayawardana <jayawark@gmail.com>wrote:

> I think you are missing the functions axis2_get_instance and
> axis2_remove_instance functions in your service.
>
> Regards
> Nandika
>
>
>
>
> On Mon, Mar 28, 2011 at 1:59 PM, Pallavi Desai <pallavi.b.desai@gmail.com>wrote:
>
>>
>> I forgot to mention/highlight the error  :)
>>
>> Hi,
>>>
>>> I have installed Apache 2.2 and Axi2C binaries version 1.6.
>>> Have copied the axis2_mod.dll into Apache folder and am able to view the
>>> services of Aixs2 under http://localhost/axis2/services.
>>> Also the sample provided with Axis2C like echo work with Apache. I now
>>> want to test the Hello program, mentioned at
>>> http://axis.apache.org/axis2/c/core/docs/axis2c_manual.html#mod_axis2with Apache.
Following  is what I did.
>>>
>>> 1. Created the server hello.dll (tried both ways, visual studio 2010
>>> express edition and also using the command line cl.exe...). Copied the
>>> hello.dll and the services .xml file under axis2/services
>>>
>>> 2. Able to view the new hello service under http:///localhost/axis2/services
>>>
>>>
>>> 3. Created the hello.exe client , whiose end point address is
>>> http://localhost/axis2/services/hello.
>>> When I run the client executable, I get the following error*: Impl
>>> object for service 'hello' not set in message receiver. 107 :: DLL
>>> description has invalid state of not having valid DLL create function,    of
>>> valid delete function or valid dll_handler*
>>>
>>
>> Am cut pasting part of the Apache log file.
>>
>>>
>>> [Sat Mar 26 22:48:55 2011] [debug]
>>> ..\..\src\core\engine\req_uri_disp.c(100) Checking for service using target
>>> endpoint address : http://127.0.0.1:8090/axis2/services/hello
>>> [Sat Mar 26 22:48:55 2011] [debug]
>>> ..\..\src\core\engine\req_uri_disp.c(121) Service found using target
>>> endpoint address
>>> [Sat Mar 26 22:48:55 2011] [debug] ..\..\src\core\engine\phase.c(210)
>>> Invoke the handler AddressingInHandler within the phase Transport
>>> [Sat Mar 26 22:48:55 2011] [info]  Starting addressing in handler
>>> [Sat Mar 26 22:48:55 2011] [debug] ..\..\src\core\engine\phase.c(210)
>>> Invoke the handler addressing_based_dispatcher within the phase Transport
>>> [Sat Mar 26 22:48:55 2011] [debug] ..\..\src\core\engine\phase.c(210)
>>> Invoke the handler rest_dispatcher within the phase Dispatch
>>> [Sat Mar 26 22:48:55 2011] [debug] ..\..\src\core\engine\phase.c(210)
>>> Invoke the handler soap_message_body_based_dispatcher within the phase
>>> Dispatch
>>> [Sat Mar 26 22:48:55 2011] [debug]
>>> ..\..\src\core\engine\soap_body_disp.c(231) Checking for operation using
>>> SOAP messagebody's first child's local name : greet
>>> [Sat Mar 26 22:48:55 2011] [debug]
>>> ..\..\src\core\engine\soap_body_disp.c(240) Operation found using SOAP
>>> message body's first child's local name
>>> [Sat Mar 26 22:48:55 2011] [debug] ..\..\src\core\engine\phase.c(210)
>>> Invoke the handler soap_action_based_dispatcher within the phase Dispatch
>>> [Sat Mar 26 22:48:55 2011] [debug] ..\..\src\core\engine\phase.c(210)
>>> Invoke the handler dispatch_post_conditions_evaluator within the phase
>>> PostDispatch
>>> [Sat Mar 26 22:48:55 2011] [debug] ..\..\src\core\engine\phase.c(210)
>>> Invoke the handler context_handler within the phase PostDispatch
>>> [Sat Mar 26 22:48:55 2011] [error]
>>> ..\..\src\core\receivers\raw_xml_in_out_msg_recv.c(115) *Impl object for
>>> service 'hello' not set in message receiver. 107 :: DLL description has
>>> invalid state of not having valid DLL create function,         of valid
>>> delete function or valid dll_handler*
>>> [Sat Mar 26 22:48:55 2011] [debug] ..\..\src\core\engine\phase.c(210)
>>> Invoke the handler AddressingOutHandler within the phase MessageOut
>>> [Sat Mar 26 22:48:55 2011] [info]  Starting addressing out handler
>>> [Sat Mar 26 22:48:55 2011] [debug]
>>> ..\..\src\modules\mod_addr\addr_out_handler.
>>>
>>>
>>>
>>> Searching for help on this error, gave me an idea of what could be the
>>> issue, but still that does not help me, as I have the hello_svn.c file from
>>> the apache axis2c site.
>>> Can anybody give me pointers to what that problem could be?
>>>
>>> Also I noticed the difference is the dll size generated using the VS 2010
>>> express version. and using the command line as mentioned on the site.
>>>
>>> Regards
>>> Pallavi
>>>
>>>
>>>
>>>
>>>
>>
>

Mime
View raw message