Axis2/C with Axis2/Java

This is a discussion on Axis2/C with Axis2/Java within the Apache forums in Application Servers & Tools category; Hi! I've created my own webservice by writing a WSDL Document and creating a Axis2/Java webservice (with the NetBeans 6.1 IDE ). Now I want to access this service by a C Client. I created skeleton C Files with the Java WSDL Converter tool, but can't access the service. I saw that for the example services (which actually work well) exist several DLL files (calculator.dll, etc) in the \AXIS2C_HOME\Services\"Service_Name" Folder. Logically for my Java Webservice, there was'nt any DLL created- Ok First: Is it possible to Access a JAVA Axis2 Service with a C Client?? Second: Why do I need ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-10-2008, 09:54 AM
Matthias Dodt
Guest
 
Default Axis2/C with Axis2/Java

Hi!

I've created my own webservice by writing a WSDL Document and creating a Axis2/Java webservice (with the NetBeans 6.1 IDE ).
Now I want to access this service by a C Client. I created skeleton C Files with the Java WSDL Converter tool, but can't access the service. I saw that for the example services (which actually work well) exist several DLL files (calculator.dll, etc) in the \AXIS2C_HOME\Services\"Service_Name" Folder. Logically for my Java Webservice, there was'nt any DLL created-

Ok First:
Is it possible to Access a JAVA Axis2 Service with a C Client??

Second:
Why do I need an axis2c_home environment variable to be set?
(something like: client_home = AXIS2_GETENV("AXIS2C_HOME")

I don't want to install axis2/c on all clients! Isn't there a way to just compile a "all containing" exe?



thanks in advance!

greetings

mat
--
GMX Download-Spiele: Preizsturz! Alle Puzzle-Spiele Deluxe über 60% billiger.
http://games.entertainment.gmx.net/d...zle/index.html
Reply With Quote
  #2  
Old 11-10-2008, 10:40 AM
Dinesh Premalal
Guest
 
Default Re: Axis2/C with Axis2/Java

"Matthias Dodt" <matzepopatze-Mmb7MZpHnFY@public.gmane.org> writes:
> Ok First:
> Is it possible to Access a JAVA Axis2 Service with a C Client??

Yes.

>
> Second:
> Why do I need an axis2c_home environment variable to be set?
> (something like: client_home = AXIS2_GETENV("AXIS2C_HOME")


Because this environmental variable use to load engine configurations
and find the services (if it is server side).
>
> I don't want to install axis2/c on all clients! Isn't there a way to
> just compile a "all containing" exe?


What do you mean by "all containing" exe ?


thanks,
Dinesh
Reply With Quote
  #3  
Old 11-10-2008, 11:10 AM
Matthias Dodt
Guest
 
Default Re: Axis2/C with Axis2/Java

Hi Dinesh!

Thanks for the quick response;-). Thats good news: Axis2/C works with Axis2/Java - nice.

I studied the client - example on:
http://ws.apache.org/axis2/c/docs/he...t/hello.c.html

There you need to specify the environment variable:
......
client_home = AXIS2_GETENV("AXIS2C_HOME");

svc_client = axis2_svc_client_create(env, client_home);
if (!svc_client)
{
... error handling
}

axis2_svc_client_set_options(svc_client, env, options);

payload = build_om_request(env);

ret_node = axis2_svc_client_send_receive(svc_client, env, payload);
......


for me it looks like any axis2/C Client needs a axis2/c installation/path? What i want is: To extend my C++ Programs by a simple DLL or library, to contact a webservice, defined by a WSDL.
I don't want to bother my users with an installation of axis2/c - they should download only an .exe file, is this possible?

thanks!



--
GMX Download-Spiele: Preizsturz! Alle Puzzle-Spiele Deluxe über 60% billiger.
http://games.entertainment.gmx.net/d...zle/index.html
Reply With Quote
  #4  
Old 11-10-2008, 02:55 PM
Dinesh Premalal
Guest
 
Default Re: Axis2/C with Axis2/Java

"Matthias Dodt" <matzepopatze-Mmb7MZpHnFY@public.gmane.org> writes:
> I studied the client - example on:
> http://ws.apache.org/axis2/c/docs/he...t/hello.c.html
>
> There you need to specify the environment variable:
> .....
> client_home = AXIS2_GETENV("AXIS2C_HOME");
>
> svc_client = axis2_svc_client_create(env, client_home);
> if (!svc_client)
> {
> ... error handling
> }
>
> axis2_svc_client_set_options(svc_client, env, options);
>
> payload = build_om_request(env);
>
> ret_node = axis2_svc_client_send_receive(svc_client, env, payload);
> .....
>
>
> for me it looks like any axis2/C Client needs a axis2/c
> installation/path?

Yes, using that path axis2/c engine loads engine configuration which
is available in axis2.xml.

>What i want is: To extend my C++ Programs by a simple DLL or library, to contact a webservice, defined by a WSDL.
> I don't want to bother my users with an installation of axis2/c -
> they should download only an .exe file, is this possible?

If you can ship axis2/c libraries and configuration files with your
program, you can avoid bothering your users downloading them. I don't
think it is possible to create a single exe file for Axis2/C engine. I
think it is not useful to create a single exe file.


thanks,
Dinesh
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:48 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.