| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| "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 |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| "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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.