I created the source code using: wsdl2c -d adb -u -ss -uri algorithm.wsdl
This works almost, but I get two errors from Visualstudio 10 (VS6 can't be installed on my Win 7 64 bit machine) when building the service. ("algorithm" is the name of my service) 1> axis2_svc_skel_algorithm.c 1>c:\axis2c-bin-1.6.0-win32\bin\tools\wsdl2c\src\axis2_svc_skel_algorithm.c(251): error C2491: 'axis2_get_instance' : definition of dllimport function not allowed 1>c:\axis2c-bin-1.6.0-win32\bin\tools\wsdl2c\src\axis2_svc_skel_algorithm.c(265): error C2491: 'axis2_remove_instance' : definition of dllimport function not allowed The offending code looks like this: -------------- /** * Following block distinguish the exposed part of the dll. */ AXIS2_EXTERN int axis2_get_instance(struct axis2_svc_skeleton **inst, const axutil_env_t *env) { *inst = axis2_svc_skel_algorithm_create(env); if(!(*inst)) { return AXIS2_FAILURE; } return AXIS2_SUCCESS; } AXIS2_EXTERN int axis2_remove_instance(axis2_svc_skeleton_t *inst, const axutil_env_t *env) { axis2_status_t status = AXIS2_FAILURE; if (inst) { status = AXIS2_SVC_SKELETON_FREE(inst, env); } return status; } --------------------------------- Thanks, Thomas On Thu, May 27, 2010 at 6:04 PM, Amir Mousavizadegan < amir.mousavizade...@cox.net> wrote: > Follow this doc.... > Amir > ----- Original Message ----- From: "Sam Carleton" < > scarle...@miltonstreet.com> > To: "Apache AXIS C User List" <c-user@axis.apache.org> > Sent: Thursday, May 27, 2010 5:37 PM > Subject: Re: Have WSDL, want service (on windows) > > > > Thomas, > > It has been a while since I had to create my first project, but I will > do my best to get you started. I am sure others will chime in where I > am wrong: > > There is a tool in Axis2/Java called WSDL2C.bat which will generate > all the code the code the will parse and package the SOAP messages and > ultimately allow you to focus on the implementation, not the plumbing. > > I think that all I did after that was create a Project in Visual > Studio (I am a Windows programmer). I assume on Unix/OSX you would > simply create your makefile and compile everything together. > > Somewhere online there is an example of the command line options to > use to generate both server side code and client side code from the > WSDL. > > Sam > > On Thu, May 27, 2010 at 5:15 PM, Thomas Auzinger <tho...@auzinger.org> > wrote: > >> I downloaded the sources for AXIS2C and managed to build the binaries. I >> also modified the samples somewhat and made them talk to a Java client. I >> also created some code using wsdl2c. >> However, now I want to build a NEW service from my WSDL and I don't know >> how >> to go about that. Is there a HOWTO for that? Is there a makefile that I >> can/need to modify? I see that there are e.g. an echo.lib, echo.dll, >> echo.exp, and service.xml. How do I get the corresponding files for my new >> service? >> Thanks, >> Thomas >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: c-user-unsubscr...@axis.apache.org > For additional commands, e-mail: c-user-h...@axis.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: c-user-unsubscr...@axis.apache.org > For additional commands, e-mail: c-user-h...@axis.apache.org >