Do you have the Axis2/C libs on you library path, so that the program
that loads your library file with client logic can locate the required
Axis2/C libs? (As far as I can tell form your compile command, you
should have /opt/axis2c-bin-0.92-linux/lib on your LD_LIBRARY_PATH)

BTW, you could use the easy to use service client API rather than the
stub API for consuming services.

Thanks,
Samisa...

Chen LC Li wrote:
>
> Hello friends,
>
> I worked out a Axis2c client on linux that can successfully invoke a
> web service implemented by Java ... I've been trying to build it into
> a library file (.so) so that it can be called from other C program
> ....but it failed to call the web service anymore. I added a bunch of
> debugging statements printing out infomation so that I could see which
> step it was stuck on. Finally I found out that every time it gets
> trouble on calling the function
> axis2_stub_create_with_endpoint_ref_and_client_home in the client
> stub. I am just wondering why it only got problem on calling this
> function when I build it into a shared library? (.so) It used to work
> well when I build it into a stand alone C application... Was there any
> wrong with my linking? Any suggestion please? Thanks a lot.
>
> My compiling and linking command:
>
> gcc -fPIC -shared -o libmy.so *.c -I. -laxis2_axiom -laxis2_engine
> -laxis2_libxml2 -laxis2_parser -laxis2_util -laxis2_wsdl
> -laxis2_minizip -xml2 -ldl -L/opt/axis2c-bin-0.92-linux/lib
>
>
> The function in stub that I had problem with:
>
> axis2_stub_create_with_endpoint_ref_and_client_home (
> const axis2_env_t *env,
> axis2_endpoint_ref_t *endpoint_ref,
> const axis2_char_t *client_home)
>
>
> Aaron Li 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to