FW: Problem with Service deployed
Hi Everyone... Pls reply... I cannot run the WSDL2C.sh successfully... I downloaded all the jar files and put them in to $AXIS2C_HOME/lib folder. My WSDL2C.sh is like: #!/bin/sh #export AXIS2_HOME=/home/axis2java for f in $AXIS2C_HOME/lib/*.jar do AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f done export AXIS2_CLASSPATH #echo the classpath $AXIS2_CLASSPATH java -classpath $AXIS2_CLASSPATH org.apache.axis2.wsdl.WSDL2C $* It is giving me this error: Exception in thread "main" java.lang.NoSuchMethodError: method java.io.File.toURI was not found. at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(j ava.lang.String) (Unknown Source) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngin e(org.apache.axis2.util.CommandLineOptionParser) (Unknown Source) at org.apache.axis2.wsdl.WSDL2Code.main(java.lang.String[]) (Unknown Source) I believe there is some library issue. Can you please guide me how to run this. I cannot find any documentation of WSDL to C code conversion, please help. Thanks & Regards, Rahil Ali -Original Message- From: Rahil Ali [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 6:38 PM To: 'Samisa Abeysinghe'; 'Senaka Fernando' Subject: RE: Problem with Service deployed Hello Samisa and Senaka, That sounds simple. Please help me getting started here... I will use .net to generate a simple WSDL. I will put that wsdl into $AXIS2C_HOME/services/MYSERV folder and run WSDL2C.sh script. Right? Now when I am doing this I am having a problem: Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.axis2.wsdl.WSDL2C at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0) at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0) at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0) at __gcj_personality_v0 (/usr/local/axis2c/services/Calculator/java.version=1.4.2) at __libc_start_main (/lib/tls/libc-2.3.4.so) at _Jv_RegisterClasses (/usr/local/axis2c/services/Calculator/java.version=1.4.2) I am still not sure how WSDL2C.sh is working. I mean the script is looking for the *.jar files in $AXIS2C_HOME/lib folder. I modified that and put *.so but still no success. Can you please explain me how WSDL2C.sh works.. or gave me any article which help me implementing a C-Webservice using AXIS2/C.. AXIS2/C doesn't have that much help on Internet... Sorry for such Noob questions. Thanks & Regards, Rahil Ali -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 5:33 PM To: Apache AXIS C User List Subject: Re: Problem with Service deployed If you want to interop with ease with .NET, the best is that you start with a WSDL, use that to code gen for service and statically server the WSDL form service. In short, you have to use contract first mode. What you are trying is the code first model, that is hard to get it working with interop mode. Samisa... Rahil Ali wrote: > Hi Senaka > > Another questions: > I am using the Calculator sample comes with AXIS2/C. the signature of the > functions is : > axiom_node_t *axis2_calc_add( > const axutil_env_t * env, > axiom_node_t * node); > > axiom_node_t *axis2_calc_sub( > const axutil_env_t * env, > axiom_node_t * node); > > axiom_node_t *axis2_calc_mul( > const axutil_env_t * env, > axiom_node_t * node); > > axiom_node_t *axis2_calc_div( > const axutil_env_t * env, > axiom_node_t * node); > > How can I use these in .Net to generate WSDL or even if I am writing on > myself what datatypes should I be entering in the WSDL? Do I have to write > the basic functions like (calc_init, calc_invoke,.. .etc) in the WSDL file. > I cannot find any test folder under my axis2c installation folder. > > Thanks for your prompt response. > Regards, > Rahil Ali > > -Original Message- > From: Senaka Fernando [mailto:[EMAIL PROTECTED] > Sent: Friday, March 07, 2008 1:00 PM > To: axis-c-user@ws.apache.org > Subject: RE: Problem with Service deployed > > Hi Rahil, > > Yes, your service is ready to be used from a .NET client. But, you don't > get a WSDL generated. > > This is because you can't generate wsdl files from C code by simply using > the Axis2/C distribution. I'm however not aware of any 3rd party tools. We > do have WSDL to C code generation only. Thus, if you want to get a WSDL, > auto generated, for the moment, you will have to code your service (just > the methods without any code in it; the skeleton in other words) in > another language, say like Java or C#.NET, and get the WSDL. Then, you can > u
Re: FW: Problem with Service deployed
Hi, it seems that your wsdl cannot be read. can you recheck the option you give to the tool, Was it like, WSDL2C.sh -uri yourwsdl.wsdl -u If not it is better try to generate java code for the wsdl (there is a wsdl2java.sh/.bat script packed with the java snapshot bin directory), Please let us know the results of above tests, we can figure out where the error is Thanks Dimuthu On Tue, Mar 11, 2008 at 6:35 PM, Rahil Ali <[EMAIL PROTECTED]> wrote: > Hi Everyone... > > Pls reply... > > > > I cannot run the WSDL2C.sh successfully... > I downloaded all the jar files and put them in to $AXIS2C_HOME/lib folder. > My WSDL2C.sh is like: > > #!/bin/sh > > #export AXIS2_HOME=/home/axis2java > for f in $AXIS2C_HOME/lib/*.jar > do > AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f > done > export AXIS2_CLASSPATH > > #echo the classpath $AXIS2_CLASSPATH > java -classpath $AXIS2_CLASSPATH org.apache.axis2.wsdl.WSDL2C $* > > It is giving me this error: > Exception in thread "main" java.lang.NoSuchMethodError: method > java.io.File.toURI was not found. >at _Jv_ResolvePoolEntry(java.lang.Class, int) > (/usr/lib/libgcj.so.5.0.0) >at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(j > ava.lang.String) (Unknown Source) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngin > e(org.apache.axis2.util.CommandLineOptionParser) (Unknown Source) >at org.apache.axis2.wsdl.WSDL2Code.main(java.lang.String[]) > (Unknown Source) > > I believe there is some library issue. Can you please guide me how to run > this. I cannot find any documentation of WSDL to C code conversion, please > help. > > Thanks & Regards, > Rahil Ali > > > -Original Message- > > From: Rahil Ali [mailto:[EMAIL PROTECTED] > Sent: Friday, March 07, 2008 6:38 PM > To: 'Samisa Abeysinghe'; 'Senaka Fernando' > Subject: RE: Problem with Service deployed > > > > > Hello Samisa and Senaka, > > That sounds simple. Please help me getting started here... > I will use .net to generate a simple WSDL. > I will put that wsdl into $AXIS2C_HOME/services/MYSERV folder and run > WSDL2C.sh script. Right? > Now when I am doing this I am having a problem: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org.apache.axis2.wsdl.WSDL2C >at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0) >at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0) >at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) > (/usr/lib/libgcj.so.5.0.0) >at __gcj_personality_v0 > (/usr/local/axis2c/services/Calculator/java.version=1.4.2) >at __libc_start_main (/lib/tls/libc-2.3.4.so) >at _Jv_RegisterClasses > (/usr/local/axis2c/services/Calculator/java.version=1.4.2) > > I am still not sure how WSDL2C.sh is working. I mean the script is looking > for the *.jar files in $AXIS2C_HOME/lib folder. I modified that and put *.so > but still no success. Can you please explain me how WSDL2C.sh works.. or > gave me any article which help me implementing a C-Webservice using > AXIS2/C.. AXIS2/C doesn't have that much help on Internet... Sorry for such > Noob questions. > > Thanks & Regards, > Rahil Ali > > > -Original Message- > From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] > Sent: Friday, March 07, 2008 5:33 PM > To: Apache AXIS C User List > Subject: Re: Problem with Service deployed > > If you want to interop with ease with .NET, the best is that you start > with a WSDL, use that to code gen for service and statically server the > WSDL form service. In short, you have to use contract first mode. > What you are trying is the code first model, that is hard to get it > working with interop mode. > > Samisa... > > Rahil Ali wrote: > > Hi Senaka > > > > Another questions: > > I am using the Calculator sample comes with AXIS2/C. the signature of the > > functions is : > > axiom_node_t *axis2_calc_add( > > const axutil_env_t * env, > > axiom_node_t * node); > > > > axiom_node_t *axis2_calc_sub( > > const axutil_env_t * env, > > axiom_node_t * node); > > > > axiom_node_t *axis2_calc_mul( > > const axutil_env_t * env, > > axiom_node_t * node); > > > > axiom_node_t *axis2_calc_div( > > const axutil_env_t * env, > > axiom_node_t * node); > > > > How can I use these in .Net to generate WSDL or even if I am writing on > > myself what datatypes should I be entering in the WSDL? Do I have to write > > the basic functions like (calc_init, calc_invoke,.. .etc) in the WSDL > file. > > I cannot find any test folder under my axis2c installation folder. > > > > Thanks for your prompt response. > > Regards, > > Rahil Al
possible bug in WSDL2C-generated code
Hi all, After much debugging I have found why an access violation is being caused in my WSDL2C-generated code. While processing the following document: (http : // removed due to problems with my emails being flagged as spam) UNKNOWN ERROR ERROR Could not unbind Request from XML! During construction of the node tree representing this document, an om_text data element is created to hold the text "ERROR" in the first Status element. This om_text element is then assigned to the data_element member of the axiom_node_t representing the first Status element on the following line: (line 603 of axiom\src\om\om_text.c:) axiom_node_set_data_element((*node), env, om_text); The node_type element of this node is correctly set to 8 (AXIOM_TEXT). however during deserialization in the WSDL2C generated code, the same data element is read into an axiom_element_t * defined as: axiom_element_t *current_element = NULL; in the following line: current_element = axiom_node_get_data_element( current_node, env); followed by a call which attempts to read the string value of (axiom_element_t *)current_element->ns->prefix: qname = axiom_element_get_qname( current_element, env, current_node); which causes an access violation. I would like to help with debugging the WSDL2C tool but my time on this project doesn't allow it at the moment. If the information above isn't detailed enough I'll gladly clarify so the problem can be fixed. Carl
re possible bug in WSDL2C-generated code
Hi all, In my last email I mentioned an om_text data element. Though the variable is called om_text, the type is actually axiom_text defined in om_text.c line 38. Carl
Re: FW: Problem with Service deployed
Hi Rahil, BTW, U find documentation on how to use the WSDL2C tool on the Axis2/C Manual. [URL http://ws.apache.org/axis2/c/docs/axis2c_manual.html#wsdl2c] I think the issue is that you may not be providing the options properly. Let me guide you through the process. 1. I hope you already have the AXIS2/Java snapshot. If not please download it. Info can be found on the Axis2/C manual at the link above. 2. Set the Java Home environment variable. ex:- export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.03/ 3. WSDL2C.sh expects AXIS2_HOME and not AXIS2C_HOME if you didn't modify it. You will have to set this too. ex:- export AXIS2_HOME=/home/user/Desktop/axis2-SNAPSHOT/ axis2-SNAPSHOT is the folder that is created when you extract the binary distribution Snapshot. 4. Then if you read through the manual you'll see something like, run "java org.apache.axis2.wsdl.WSDL2C -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u" Instead of that run "./WSDL2C.sh -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u" Please notice that I'm replacing the part "java org.apache.axis2.wsdl.WSDL2C" with "./WSDL2C.sh". The same applies for other methods mentioned on the manual. 5. I tried to generate code for the WSDL found at, [URL http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calculator/Calculator.wsdl?view=markup] I have tried this and I did not fail. So I believe that a failure would be only due an issue in setting up Java on your machine. HTH, Regards, Senaka > Hi, > it seems that your wsdl cannot be read. can you recheck the option you > give to the tool, > > Was it like, > > WSDL2C.sh -uri yourwsdl.wsdl -u > > If not it is better try to generate java code for the wsdl (there is a > wsdl2java.sh/.bat script packed with the java snapshot bin directory), > Please let us know the results of above tests, we can figure out where > the error is > > Thanks > Dimuthu > > > > On Tue, Mar 11, 2008 at 6:35 PM, Rahil Ali <[EMAIL PROTECTED]> > wrote: >> Hi Everyone... >> >> Pls reply... >> >> >> >> I cannot run the WSDL2C.sh successfully... >> I downloaded all the jar files and put them in to $AXIS2C_HOME/lib >> folder. >> My WSDL2C.sh is like: >> >> #!/bin/sh >> >> #export AXIS2_HOME=/home/axis2java >> for f in $AXIS2C_HOME/lib/*.jar >> do >> AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f >> done >> export AXIS2_CLASSPATH >> >> #echo the classpath $AXIS2_CLASSPATH >> java -classpath $AXIS2_CLASSPATH org.apache.axis2.wsdl.WSDL2C $* >> >> It is giving me this error: >> Exception in thread "main" java.lang.NoSuchMethodError: method >> java.io.File.toURI was not found. >>at _Jv_ResolvePoolEntry(java.lang.Class, int) >> (/usr/lib/libgcj.so.5.0.0) >>at >> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(j >> ava.lang.String) (Unknown Source) >> at >> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngin >> e(org.apache.axis2.util.CommandLineOptionParser) (Unknown Source) >>at org.apache.axis2.wsdl.WSDL2Code.main(java.lang.String[]) >> (Unknown Source) >> >> I believe there is some library issue. Can you please guide me how to >> run >> this. I cannot find any documentation of WSDL to C code conversion, >> please >> help. >> >> Thanks & Regards, >> Rahil Ali >> >> >> -Original Message- >> >> From: Rahil Ali [mailto:[EMAIL PROTECTED] >> Sent: Friday, March 07, 2008 6:38 PM >> To: 'Samisa Abeysinghe'; 'Senaka Fernando' >> Subject: RE: Problem with Service deployed >> >> >> >> >> Hello Samisa and Senaka, >> >> That sounds simple. Please help me getting started here... >> I will use .net to generate a simple WSDL. >> I will put that wsdl into $AXIS2C_HOME/services/MYSERV folder and run >> WSDL2C.sh script. Right? >> Now when I am doing this I am having a problem: >> >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org.apache.axis2.wsdl.WSDL2C >>at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0) >>at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0) >>at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) >> (/usr/lib/libgcj.so.5.0.0) >>at __gcj_personality_v0 >> (/usr/local/axis2c/services/Calculator/java.version=1.4.2) >>at __libc_start_main (/lib/tls/libc-2.3.4.so) >>at _Jv_RegisterClasses >> (/usr/local/axis2c/services/Calculator/java.version=1.4.2) >> >> I am still not sure how WSDL2C.sh is working. I mean the script is >> looking >> for the *.jar files in $AXIS2C_HOME/lib folder. I modified that and put >> *.so >> but still no success. Can you please explain me how WSDL2C.sh works.. >> or >> gave me any article which help me implementing a C-Webservice using >> AXIS2/C.. AXIS2/C doesn't have that much help on Internet... Sorry for >> such >> Noob questions. >> >> Thanks & Regards, >> Rahil Ali >> >> >> -Original Message-
Re: Axis2/C for Apapche 2.2.8
Hi Laszlo, An Axis2/C Win32 Binary built with Apache 2.2.8 can be found at [1] [1] http://people.apache.org/~senaka/axis2/c/axis2c-bin-1.3.0-win32.zip Regards, Senaka > Hi Laszlo, > > Will send you a Apache2.2.8 compatible mod_axis2.so built in Windows XP > SP2, using VS2005. > > In the mean time, would it be possible for you to, > > 1. Attach your httpd.conf file, > 2. Attach your apache error log, > > To this mail thread and, > > 3. Let me know whether your folder path contains non-ASCII characters. > > Regards, > Senaka > >> Hi Fernando, >> >> I have to disappoint you, the mod_axis2.so still does not wotk for me. >> The error message is this: >> >> >> The Apache service named reported the following error: >> >>> httpd.exe: Syntax error on line 484 of >> C:/Apache2.2.8/conf/httpd.conf: Cannot load >> C:/Apache2.2.8/modules/mod_axis2.so into server: Could not find the >> giben method >> >> >> Could you send me your so file? >> >> >> Senaka Fernando írta: >>> Hi Laszlo, >>> >>> AFAIK, mod_axis2 works with Apache 2.2.8. You can use two approaches. >>> >>> Method 1: >>> Please confirm to whether you can find (using search in Windows) the >>> ***mod_axis2.dll*** some where inside your ides/VC folder. The location >>> at >>> which it is built may vary according to how you build the >>> solution/project >>> and settings that you specify. Please note that this might be built >>> somewhere else from other Axis2/C libs. Once you find it, please copy >>> that >>> .dll to "C:/Program Files/Apache Software >>> Foundation/Apache2.2/modules/mod_axis2.dll". And make sure that if you >>> have written any path that has spaces in between, add quotation marks >>> around it. >>> >>> Method 2: >>> Use the nmake build script. If you have VS 2005 installed you don't >>> require any additional tools. Locate the configure.in found inside >>> build/win32, and edit it. >>> Open a new command window and run vcvars32.bat. This can be found in >>> C:\Program Files\Microsoft Visual Studio 8\VC\bin or any other place at >>> which you installed VS2005. Then inside the same command window, change >>> directory to the place where you downloaded Axis2/C. And goto the >>> folder >>> build\win32. Run the build.bat and once you've done, run "nmake >>> axis2_apache_module". After that, you'll find a new sub folder named >>> deploy inside the build folder. Set this as your AXIS2C_HOME and add >>> AXIS2C_HOME\lib to your path variable. After that you can copy the >>> ***mod_axis2.dll*** dll that is found inside AXIS2C_HOME\lib. >>> >>> Regards, >>> Senaka >>> >>> Regards, >>> Senaka >>> >>> Hi Laszlo, Did you follow the steps as mentioned in [1] ? [1] http://ws.apache.org/axis2/c/docs/axis2c_manual.html#mod_axis2 -Manjula. On Sat, 2008-02-16 at 21:38 +0100, Graf László wrote: > Hi all, > > I built sucesfully the Axis2/C module on Windows XP using VS 2005. > But the testing it om Apache 2.2.8 failes with this message: > > "Syntax error on line 490 of C:/Program Files/Apache Software > Foundation/Apache2.2/conf/httpd.conf: > Cannot load C:/Program Files/Apache Software > Foundation/Apache2.2/modules/mod_axis2.dll into server: > the module can not found (translated from hungarian)". > > I tried to copy Axis2/C dlls to Apache bin folder but no success. > > Did some solve this kind of problem? > > Laszlo > > > - > 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] >>> >>> >>> - >>> 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] >> >> > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: possible bug in WSDL2C-generated code
Hi Carl, If you can send us the relevant generated adb_ file it would be easy to track the problem. Thanks Dimuthu On Wed, Mar 12, 2008 at 12:42 AM, Carl Lefrançois <[EMAIL PROTECTED]> wrote: > Hi all, > > After much debugging I have found why an access violation is being caused in > my WSDL2C-generated code. > > While processing the following document: (http : // removed due to problems > with my emails being flagged as spam) > > > > > xmlns:xsi="www.w3.org/2001/XMLSchema-instance" > > xmlns="www.axa.ca/BrokerInformationService/1.0/BrokerInformationResponse" > xmlns:xsd="www.w3.org/2001/XMLSchema" > xmlns:soap="schemas.xmlsoap.org/soap/envelope/"> > UNKNOWN > > ERROR > > ERROR > Could not unbind Request from > XML! > > > > > > > > During construction of the node tree representing this document, an om_text > data element is created to hold the text "ERROR" in the first Status > element. This om_text element is then assigned to the data_element member > of the axiom_node_t representing the first Status element on the following > line: > > (line 603 of axiom\src\om\om_text.c:) > axiom_node_set_data_element((*node), env, om_text); > > The node_type element of this node is correctly set to 8 (AXIOM_TEXT). > > however during deserialization in the WSDL2C generated code, the same data > element is read into an axiom_element_t * defined as: > axiom_element_t *current_element = NULL; > > in the following line: > current_element = axiom_node_get_data_element( current_node, env); > > > followed by a call which attempts to read the string value of > (axiom_element_t *)current_element->ns->prefix: > qname = axiom_element_get_qname( current_element, env, current_node); > > which causes an access violation. > > I would like to help with debugging the WSDL2C tool but my time on this > project doesn't allow it at the moment. If the information above isn't > detailed enough I'll gladly clarify so the problem can be fixed. > > Carl > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: possible bug in WSDL2C-generated code
For the above reason we have been putting following whenever the get_qname is called, while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT) { current_node = axiom_node_get_next_sibling(current_node, env); } if(current_node != NULL) { current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); qname = axiom_element_get_qname(current_element, env, current_node); } You post give impression that there are paths that we have not tracked and tested. So it would be helpful if you can send the WSDL too, Thanks Dimuthu On Wed, Mar 12, 2008 at 8:15 AM, Dimuthu Gamage <[EMAIL PROTECTED]> wrote: > Hi Carl, > > If you can send us the relevant generated adb_ file it would be easy > to track the problem. > > Thanks > Dimuthu > > > > On Wed, Mar 12, 2008 at 12:42 AM, Carl Lefrançois > <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > After much debugging I have found why an access violation is being caused > in > > my WSDL2C-generated code. > > > > While processing the following document: (http : // removed due to problems > > with my emails being flagged as spam) > > > > > > > > > >> xmlns:xsi="www.w3.org/2001/XMLSchema-instance" > > > > xmlns="www.axa.ca/BrokerInformationService/1.0/BrokerInformationResponse" > > xmlns:xsd="www.w3.org/2001/XMLSchema" > > xmlns:soap="schemas.xmlsoap.org/soap/envelope/"> > > UNKNOWN > > > > ERROR > > > > ERROR > > Could not unbind Request from > > XML! > > > > > > > > > > > > > > > > During construction of the node tree representing this document, an om_text > > data element is created to hold the text "ERROR" in the first Status > > element. This om_text element is then assigned to the data_element member > > of the axiom_node_t representing the first Status element on the following > > line: > > > > (line 603 of axiom\src\om\om_text.c:) > > axiom_node_set_data_element((*node), env, om_text); > > > > The node_type element of this node is correctly set to 8 (AXIOM_TEXT). > > > > however during deserialization in the WSDL2C generated code, the same data > > element is read into an axiom_element_t * defined as: > > axiom_element_t *current_element = NULL; > > > > in the following line: > > current_element = axiom_node_get_data_element( current_node, env); > > > > > > followed by a call which attempts to read the string value of > > (axiom_element_t *)current_element->ns->prefix: > > qname = axiom_element_get_qname( current_element, env, current_node); > > > > which causes an access violation. > > > > I would like to help with debugging the WSDL2C tool but my time on this > > project doesn't allow it at the moment. If the information above isn't > > detailed enough I'll gladly clarify so the problem can be fixed. > > > > Carl > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: Problem with Service deployed
Hello Senaka, Thanks very much for your prompt replies and support. Yes the problem was I didn't set JAVA_HOME and AXIS2_HOME properly. Now its giving a different kind of error: When I tried it one the WSDL from : [URL http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul ator/Calculator.wsdl?view=markup] It gives: -- Retrieving document at 'Calculator.wsdl'. Exception in thread "main" java.lang.NoSuchMethodError: method java.io.File.toURI was not found. at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getBaseURI(java.lang.Stri ng) (Unknown Source) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngine(org. apache.axis2.util.CommandLineOptionParser) (Unknown Source) at org.apache.axis2.wsdl.WSDL2Code.main(java.lang.String[]) (Unknown Source) I tried that on a WSDL generated by .Net with only one function implemented it gave the same error. Pls help me out.. Thanks & Regards, Rahil -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 12:32 AM To: Apache AXIS C User List Subject: Re: FW: Problem with Service deployed Hi Rahil, BTW, U find documentation on how to use the WSDL2C tool on the Axis2/C Manual. [URL http://ws.apache.org/axis2/c/docs/axis2c_manual.html#wsdl2c] I think the issue is that you may not be providing the options properly. Let me guide you through the process. 1. I hope you already have the AXIS2/Java snapshot. If not please download it. Info can be found on the Axis2/C manual at the link above. 2. Set the Java Home environment variable. ex:- export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.03/ 3. WSDL2C.sh expects AXIS2_HOME and not AXIS2C_HOME if you didn't modify it. You will have to set this too. ex:- export AXIS2_HOME=/home/user/Desktop/axis2-SNAPSHOT/ axis2-SNAPSHOT is the folder that is created when you extract the binary distribution Snapshot. 4. Then if you read through the manual you'll see something like, run "java org.apache.axis2.wsdl.WSDL2C -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u" Instead of that run "./WSDL2C.sh -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u" Please notice that I'm replacing the part "java org.apache.axis2.wsdl.WSDL2C" with "./WSDL2C.sh". The same applies for other methods mentioned on the manual. 5. I tried to generate code for the WSDL found at, [URL http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul ator/Calculator.wsdl?view=markup] I have tried this and I did not fail. So I believe that a failure would be only due an issue in setting up Java on your machine. HTH, Regards, Senaka > Hi, > it seems that your wsdl cannot be read. can you recheck the option you > give to the tool, > > Was it like, > > WSDL2C.sh -uri yourwsdl.wsdl -u > > If not it is better try to generate java code for the wsdl (there is a > wsdl2java.sh/.bat script packed with the java snapshot bin directory), > Please let us know the results of above tests, we can figure out where > the error is > > Thanks > Dimuthu > > > > On Tue, Mar 11, 2008 at 6:35 PM, Rahil Ali <[EMAIL PROTECTED]> > wrote: >> Hi Everyone... >> >> Pls reply... >> >> >> >> I cannot run the WSDL2C.sh successfully... >> I downloaded all the jar files and put them in to $AXIS2C_HOME/lib >> folder. >> My WSDL2C.sh is like: >> >> #!/bin/sh >> >> #export AXIS2_HOME=/home/axis2java >> for f in $AXIS2C_HOME/lib/*.jar >> do >> AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f >> done >> export AXIS2_CLASSPATH >> >> #echo the classpath $AXIS2_CLASSPATH >> java -classpath $AXIS2_CLASSPATH org.apache.axis2.wsdl.WSDL2C $* >> >> It is giving me this error: >> Exception in thread "main" java.lang.NoSuchMethodError: method >> java.io.File.toURI was not found. >>at _Jv_ResolvePoolEntry(java.lang.Class, int) >> (/usr/lib/libgcj.so.5.0.0) >>at >> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(j >> ava.lang.String) (Unknown Source) >> at >> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngin >> e(org.apache.axis2.util.CommandLineOptionParser) (Unknown Source) >>at org.apache.axis2.wsdl.WSDL2Code.main(java.lang.String[]) >> (Unknown Source) >> >> I believe there is some library issue. Can you please guide me how to >> run >> this. I cannot find any documentation of WSDL to C code conversion, >> please >> help. >> >> Thanks & Regards, >> Rahil Ali >> >> >> -Original Message- >> >> From: Rahil Ali [mailto:[EMAIL PROTECTED] >> Sent: Friday, March 07, 2008 6:38 PM >> To: 'Samisa Abeysinghe'; 'Senaka Fernando' >> Subject: RE: Problem with Service deployed >> >> >> >> >> Hello Samisa and Senaka, >> >> That sounds simple. Please help me getting started here... >> I will use .net to generate a simpl