Re: dll description has invalid state
Hi Milinda, Yes, you're right about that functions, there is something wrong with them. I found out something. In Microsoft Visual Studio I build the project like Win32 application, and building this way the sample echo service from Axis2/C and dll created is ok, meaning that I can connect to that with a Java client using Axis2/Java. I tried also this with my generated SayHelloService service. But unfortunately has compile errors which I don't understand: error C2491: 'axis2_get_instance' : definition of dllimport function not allowed error C2491: 'axis2_remove_instance' : definition of dllimport function not allowed The generated axis2_get_instance and axis2_remove_instance functions look like the following: AXIS2_EXTERN int AXIS2_CALL axis2_get_instance(struct axis2_svc_skeleton **inst, const axis2_env_t *env) { ... } AXIS2_EXTERN int AXIS2_CALL axis2_remove_instance(axis2_svc_skeleton_t *inst, const axis2_env_t *env) { ... } I don't understand the AXIS2_EXTERN and AXIS2_CALL what are those... The axis2_get_instance and axis2_remove_instance functions from sample echo service from AXIS2/C look different: AXIS2_EXPORT int axis2_get_instance(axis2_svc_skeleton_t **inst, const axis2_env_t *env) { ... } AXIS2_EXPORT int axis2_remove_instance(axis2_svc_skeleton_t *inst, const axis2_env_t *env) { ... } I've attached the generated files to this mail. Could you check them? Thank you. Zoli /** * axis2_skel_SayHelloService.c * * This file was auto-generated from WSDL for "SayHelloService|http://service.demo"; service * by the Apache Axis2/C version: #axisVersion# #today# * axis2_skel_SayHelloService Axis2/C skeleton for the axisService */ #include "axis2_skel_SayHelloService.h" /** * auto generated function definition signature * for "sayHello|" operation. */ axiom_node_t* axis2_skel_SayHelloService_sayHello (const axis2_env_t *env ) { /* TODO fill this with the necessary business logic */ return NULL; } /** * axis2_skel_SayHelloService.h * * This file was auto-generated from WSDL for "SayHelloService|http://service.demo"; service * by the Apache Axis2/C version: #axisVersion# #today# * axis2_skel_SayHelloService Axis2/C skeleton for the axisService- Header file */ #include #include #include #include #include #include #include /** * auto generated function declaration * for "sayHello|" operation. */ axiom_node_t* axis2_skel_SayHelloService_sayHello (const axis2_env_t *env ); /** * axis2_svc_skel_SayHelloService.c * * This file was auto-generated from WSDL for "SayHelloService|http://service.demo"; service * by the Apache Axis2 version: #axisVersion# #today# * axis2_svc_skel_SayHelloService */ #include "axis2_skel_SayHelloService.h" #include #include #include /** * functions prototypes */ /* On fault, handle the fault */ axiom_node_t* AXIS2_CALL axis2_svc_skel_SayHelloService_on_fault(axis2_svc_skeleton_t *svc_skeleton, const axis2_env_t *env, axiom_node_t *node); /* Free the service */ int AXIS2_CALL axis2_svc_skel_SayHelloService_free(axis2_svc_skeleton_t *svc_skeleton, const axis2_env_t *env); /* This method invokes the right service method */ axiom_node_t* AXIS2_CALL axis2_svc_skel_SayHelloService_invoke(axis2_svc_skeleton_t *svc_skeleton, const axis2_env_t *env, axiom_node_t *node, axis2_msg_ctx_t *msg_ctx); /* Initializing the environment */ int AXIS2_CALL axis2_svc_skel_SayHelloService_init(axis2_svc_skeleton_t *svc_skeleton, const axis2_env_t *env); /* Create the service */ axis2_svc_skeleton_t* AXIS2_CALL axis2_svc_skel_SayHelloService_create(const axis2_env_t *env); /** * Implementations for the functions */ axis2_svc_skeleton_t* AXIS2_CALL axis2_svc_skel_SayHelloService_create(const axis2_env_t *env) { axis2_svc_skeleton_t *svc_skeleton = NULL; svc_skeleton = AXIS2_MALLOC(env->allocator, sizeof(axis2_svc_skeleton_t)); svc_skeleton->ops = AXIS2_MALLOC( env->allocator, sizeof(axis2_svc_skeleton_ops_t)); svc_skeleton->func_array = NULL; svc_skeleton->ops->free = axis2_svc_skel_SayHelloService_free; s
RE: Help - .96 /util build broken under solaris
Hi Dinesh, Thank you for posting the link to the thread. It appears we followed most of the same steps. Unfortunately, they stopped at the same place I did. I was hoping someone has gotten past this point. I suspect the problem is with the autogen tool, but I'm not well versed at resolving issues with autogen and was hoping one of the developers could fix it or point me in the direction on how to fix it. -thx gary > -Original Message- > From: Dinesh Premalal [mailto:[EMAIL PROTECTED] > Sent: Monday, March 05, 2007 9:46 PM > To: axis-c-user@ws.apache.org > Subject: Re: Help - .96 /util build broken under solaris > > Hi, > > "Gary Mazzaferro" <[EMAIL PROTECTED]> writes: > > > > I'm new to axis2c and I'm trying to build under solaris 10 > sparc. I'm > > having some trouble getting /util to build. > > > > Can someone please help ? Maybe someone has fixed this already ? > > > > This is where I'm at: > > > > I fixed some "//" comments in uuid_gen_unix.c > > > > Now, I have some compile errors: > > uuid_gen_unix.c -fPIC -DPIC -o .libs/uuid_gen_unix.o > > uuid_gen_unix.c: In function `axis2_uuid_get_mac_addr': > > uuid_gen_unix.c:355: error: structure has no member named `sa_len' > > uuid_gen_unix.c:355: error: structure has no member named `sa_len' > > These arecaused by trying to build the "Darwin" > > axis2_uuid_get_mac_addr() > AFAIR, smilier problem happened to some other user, > http://marc.theaimsgroup.com/?l=axis-c-user&w=2&r=1&s=solaris+ > build+Ishan&q=b > > thanks, > Dinesh > > > -- > Dinesh Premalal > [EMAIL PROTECTED] > WSO2, Inc.; http://www.wso2.com/ > GPG Key ID : A255955C > GPG Key Finger Print : C481 E5D4 C27E DC34 9257 0229 4F44 > 266E A255 955C > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dll description has invalid state
Hi, I think this is beacuase of the problems in generated axis2_svc_skel_.c and header file's axis2_get_instance(struct axis2_svc_skeleton **inst, const axis2_env_t *env) axis2_remove_instance(axis2_svc_skeleton_t *inst, const axis2_env_t *env) functions have some problems. Please can u attach the source and header file of axis2_svc_skel_ Thanks Milinda On 3/5/07, Zoltán Altfatter <[EMAIL PROTECTED]> wrote: Hi, I'm using Axis2C 0.96 and Axis2/Java 1.1.1. I made a simple SayHelloService with Axis2/Java, generated the wsdl file with java2wsdl tool. Then I generated Axis2/C stub and skeleton files from the wsdl file. After a few hours finally I managed to compile them with Microsoft Visual Studio...with Eclipse CDT somehow I couldn't manage, to set the gcc command properly...it failed with during linking. Anyway, with Microsoft Visual Studio I obtained the dll file. After deploying the service to the Axis2/C standalone web server, I tried to call it from a Java client. But I received an AxisFault exception with the following message: "dll description has invalid state of not having valid dll create function, of valid delete function or valid dll_handler" From Java client I can call the already deployed sample echo service in Axis2/C...but when I try to build this sample echo service and deploy it to Axis2/C web server I receive again the AxisFault exception with the same error message. So I suppose there is some problem with my dll creation... Could you help me? Zoli. -- [EMAIL PROTECTED] WSO2, Inc: http://www.wso2.com "Oxygenating the Web Service Platform" http://www.milindalakmal.wordpress.com
Re: Help - .96 /util build broken under solaris
Hi, "Gary Mazzaferro" <[EMAIL PROTECTED]> writes: > > I'm new to axis2c and I'm trying to build under solaris 10 sparc. I'm having > some trouble getting /util to build. > > Can someone please help ? Maybe someone has fixed this already ? > > This is where I'm at: > > I fixed some "//" comments in uuid_gen_unix.c > > Now, I have some compile errors: > uuid_gen_unix.c -fPIC -DPIC -o .libs/uuid_gen_unix.o > uuid_gen_unix.c: In function `axis2_uuid_get_mac_addr': > uuid_gen_unix.c:355: error: structure has no member named `sa_len' > uuid_gen_unix.c:355: error: structure has no member named `sa_len' > These arecaused by trying to build the "Darwin" axis2_uuid_get_mac_addr() AFAIR, smilier problem happened to some other user, http://marc.theaimsgroup.com/?l=axis-c-user&w=2&r=1&s=solaris+build+Ishan&q=b thanks, Dinesh -- Dinesh Premalal [EMAIL PROTECTED] WSO2, Inc.; http://www.wso2.com/ GPG Key ID : A255955C GPG Key Finger Print : C481 E5D4 C27E DC34 9257 0229 4F44 266E A255 955C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: eliminate soapenv:header
Atanacio Reyes <[EMAIL PROTECTED]> writes: > Thanks for the support, I let you now, I im not granted to crate a Jira > issue, I'm only a simple axis2c user. Before raise any jira issue you need to create an account. Anyone will be able to create an account. If you face any problem please let us know. thanks, Dinesh -- Dinesh Premalal [EMAIL PROTECTED] WSO2, Inc.; http://www.wso2.com/ GPG Key ID : A255955C GPG Key Finger Print : C481 E5D4 C27E DC34 9257 0229 4F44 266E A255 955C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help - .96 /util build broken under solaris
Hi, I'm new to axis2c and I'm trying to build under solaris 10 sparc. I'm having some trouble getting /util to build. Can someone please help ? Maybe someone has fixed this already ? This is where I'm at: I fixed some "//" comments in uuid_gen_unix.c Now, I have some compile errors: uuid_gen_unix.c -fPIC -DPIC -o .libs/uuid_gen_unix.o uuid_gen_unix.c: In function `axis2_uuid_get_mac_addr': uuid_gen_unix.c:355: error: structure has no member named `sa_len' uuid_gen_unix.c:355: error: structure has no member named `sa_len' These arecaused by trying to build the "Darwin" axis2_uuid_get_mac_addr() instead of the version in "#ifdef HAVE_STRUCT_LIFREQ /* Solaris-ish */" Digging in a little shows HAVE_STRUCT_LIFREQ is not defined in config.h. Something is not right with the ./configure script. I believe the following 2 tests should result in "yes". checking for struct lifreq... no checking for struct sockaddr_dl... no I tried running autogen.sh thinking it was something in the "auto" tool chain. Automake failed, there wasn't an error code and I haven't had a second to dig any deeper into the issue. Is this fixed ?? Can anyone help ? I really don't want to move to Java for this project. -thx gary === - Confidentiality Statement - The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL or copyright information and exempt from disclosure under applicable law. If you have received this message in error or you are not the intended recipient of this message, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system. ===
Re: eliminate soapenv:header
Thanks for the support, I let you now, I im not granted to crate a Jira issue, I'm only a simple axis2c user. - Original Message From: Samisa Abeysinghe <[EMAIL PROTECTED]> To: Apache AXIS C User List Sent: Sunday, March 4, 2007 7:55:56 PM Subject: Re: eliminate soapenv:header Atanacio Reyes wrote: > Hi all: > > I have two questions: > 1. How I can remove the tag from the envelope soap > message in axis2c? > This needs to be fixed in the Axis2/C engine, please raise a Jira on this. > 2. How I can add the SOAPAction: "someAction" in the HTTP header. > AXIS2_OPTIONS_SET_SOAP_ACTION(options, env, "someAction"); Please have a look at samples/user_guide/clients/echo_blocking_soap11.c for a sample. Samisa... > > thanks. > > Atanacio Reyes Valenzuela. Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dll description has invalid state
Hi, I'm using Axis2C 0.96 and Axis2/Java 1.1.1. I made a simple SayHelloService with Axis2/Java, generated the wsdl file with java2wsdl tool. Then I generated Axis2/C stub and skeleton files from the wsdl file. After a few hours finally I managed to compile them with Microsoft Visual Studio...with Eclipse CDT somehow I couldn't manage, to set the gcc command properly...it failed with during linking. Anyway, with Microsoft Visual Studio I obtained the dll file. After deploying the service to the Axis2/C standalone web server, I tried to call it from a Java client. But I received an AxisFault exception with the following message: "dll description has invalid state of not having valid dll create function, of valid delete function or valid dll_handler" From Java client I can call the already deployed sample echo service in Axis2/C...but when I try to build this sample echo service and deploy it to Axis2/C web server I receive again the AxisFault exception with the same error message. So I suppose there is some problem with my dll creation... Could you help me? Zoli.
Re: Problem serializing a complex array
Thanks for the response. I've opened several bugs for all the patches I currently have. It all appears to be working now, so I'm hoping that this is the last of them. Thanks. Nadir Amra <[EMAIL PROTECTED]> wrote: Wayne, Seems to be a problem. When creating JIRA and patch, please attach sample wsdl and soap response. thanks. Nadir K. Amra Wayne Johnson wrote on 03/01/2007 08:27:10 AM: > I've been having problems serializing a bean that contains an array > of other beans. It generates a soap packet like: > > xmlns:ns3="" enc:arrayType="ns3:properties[0]"> > > > The Java serializer generates (with the same bean): > > > I get the error from the service: > Exception: org.xml.sax.SAXParseException: The value of the attribute > "prefix="xmlns",localpart="ns3",rawname="xmlns:ns3"" is invalid. > Prefixed namespace bindings may not be empty. > > Now I think the problem is the xmlns:ns3="". I've found the code in > param.cpp that's generating the weird namespace and I'm working on a > patch. Just want someone to confirm that what I'm seeing is > incorrect, and/or whether maybe we should have detected that the > original array pointer was NULL as is being handled by the java client. > > > > > > > --- > Wayne Johnson, | There are two kinds of people: Those > 3943 Penn Ave. N. | who say to God, "Thy will be done," > Minneapolis, MN 55412-1908 | and those to whom God says, "All right, > (612) 522-7003 | then, have it your way." --C.S. Lewis > Looking for earth-friendly autos? > Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Wayne Johnson, | There are two kinds of people: Those 3943 Penn Ave. N. | who say to God, "Thy will be done," Minneapolis, MN 55412-1908 | and those to whom God says, "All right, (612) 522-7003 | then, have it your way." --C.S. Lewis - Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A.