C code genarator producing non-compilable results

2008-03-12 Thread Sérgio Gomes
Hello, I'm using the code generator to get stubs for an existing WSDL ( https://adwords.google.com/api/adwords/v11/CampaignService?wsdl ), but the generator is producing some unexpected (and non-compilable) results. Namely, it generates the following as a function header: axis2_stub_op_CampaignSe

Re: WSDL2C CodeGenerationException

2008-03-12 Thread Carl Lefrançois
Hi Milinda, All Please ignore this thread. Dimuthu pointed out that I was using an old version of the WSDL2C tool and with the snapshot build the WSDL compiles with no problems. My apologies! Carl

Re: WSDL2C: core dumped in generated code.

2008-03-12 Thread Dimuthu Gamage
HI Simone, I heard that there are some problem with libxml parser with mulitple threading in windows. It may be the problem you too facing in linux. Just for a test can you try building the axis2 with the guththila as the parser, you can do this by giving '--enable-guththila' as a configure option

Re: possible bug in WSDL2C-generated code

2008-03-12 Thread Senaka Fernando
Hi all, Oh! sorry I didn't notice that. I simply was under the impression that the allocated string size lead to a buffer overrun. Dimuthu, thanks for noticing that. Regards, Senaka > Hi, > > The problem is due to double freeing the end_input_str. I fixed it in the > svn, > >

Re: WSDL2C: core dumped in generated code.

2008-03-12 Thread Simone Bordin
I'm using a nightly build of 15 february. In the next day i'll try with the lastest nigthly build. But i think the problem is in thread. I'm using 2 thead to call the same service but in different location (different URI). For each thread i have create its own eviroment (axutil_env_t) and stub

Re: possible bug in WSDL2C-generated code

2008-03-12 Thread Dimuthu Gamage
Hi, The problem is due to double freeing the end_input_str. I fixed it in the svn, axutil_stream_write(stream, env, start_input_str, start_input_str_len); AXIS2_FREE(env->allocator,end_input_str); This should be corrected to AXIS2_FREE(en

Re: possible bug in WSDL2C-generated code

2008-03-12 Thread Senaka Fernando
Hi Carl, Try this, Replace: end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * (5 + ADB_DEFAULT_DIGIT_LIMIT + axutil_strlen("RequestParameters"))); With: end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char

RE: FW: Problem with Service deployed

2008-03-12 Thread Senaka Fernando
Hi Rahil, This works fine for me. The WSDL discovery will work only if you use the Axis2/C source found in the svn head. I was under the impression that you were using that. However, if you are using the 1.3.0 distribution, I think the other alternate to how a static WSDL can be deployed was avail

Re: WSDL2C: core dumped in generated code.

2008-03-12 Thread Dimuthu Gamage
Hi Simone, I doubt whether it is a problem of WSDL2C as i coudn't see anything related to ADB (ADB is the most possible place to find errors in the codegen), BTW are you using the latest nightly build (from http://people.apache.org/dist/axis2/nightly/ ) or 1.3 build for the codegen tool?, if it is

WSDL2C: core dumped in generated code.

2008-03-12 Thread Simone Bordin
I have a problem with client services generated with WSDL2C. When i use it in my application, sometimes it crashes. Bottom there's the stack trace that is printed when this happend. Is this a problem in code generated from WSDL2C? Thanx, simone *** glibc detected *** ./com_fonia: double free

RE: FW: Problem with Service deployed

2008-03-12 Thread Rahil Ali
Hello Senaka, I have service.xml, Calculator.wsdl and libCalculator.so in my $AXIS2C_HOME/services/Calculator folder, still I cannot access wsdl using this.. "http://192.168.4.163/axis2/services/Calculator?wsdl"; Whats going wrong here... Besides this one other thing to ask: how is libCa

Re: possible bug in WSDL2C-generated code

2008-03-12 Thread Dimuthu Gamage
Hi Carl, You seems loading the library from axis2 1.3 (Check the quotes *by the Apache Axis2/C version: 1.3 Built on : Aug 10, 2007), Make sure you have set CLASSPATH correctly to the newer jars. In the latest svn the code should be generated as, /*

RE: FW: Problem with Service deployed

2008-03-12 Thread Senaka Fernando
Hi Rahil, Well the static WSDL deployment feature was fully supported after we released 1.3.0. So it will be reflected in the online documentation with the next release. However, if you use the subversion source (for developers) of Axis2/C; the manual found there has the necessary updates. Thus, i

Re: possible bug in WSDL2C-generated code

2008-03-12 Thread Carl Lefrançois
Hi Dimuthu, Sorry I should have thought of sending the problematic .c file I'll prefix the relevant lines with #. Carl /** * adb_ResultStatusCodeFormat.h * * This file was auto-generated from WSDL * by the Apache Axis2/C version: 1.3 Built on : Aug 1

RE: FW: Problem with Service deployed

2008-03-12 Thread Rahil Ali
Hello Senaka, A couple of things to clearup, I am standing on $AXIS2C_HOME/services/Calculator folder, I ran WSDL2C on Calculator.wsdl, it generated - src/ + *.h + *.c + Build.sh - resources/ service.xml I ran build.sh which generated "libCalculator.so". Now how

RE: FW: Problem with Service deployed

2008-03-12 Thread Senaka Fernando
Hi Rahil, This portion is not automated. To get the WSDL u will have to copy it manually to the folder in which u find the .so. The name should be the same as the Service. In Axis2/C we do support static WSDLs only. No dynamic generation at the moment. Regards, Senaka > Hi Senaka, > > Thanks ver

RE: FW: Problem with Service deployed

2008-03-12 Thread Rahil Ali
Hi Senaka, Thanks very much for your replies, WSDL2C worked.. I removed previous JDK installation. It generated 2 directories resources and src Src directory contains lot of files, separate files for each functions.. In which file do I have to implement the business logic, for example there are s

RE: FW: Problem with Service deployed

2008-03-12 Thread Rahil Ali
Hi, My JAVA_HOME is set to /usr/java/j2sdk1.4.2_17. When I try with JAVA_HOME= /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0 it gives the same old error: main" java.lang.NoSuchMethodError: method java.io.File.toURI was not found Pls advice, Thanks & Regards, Rahil -Original Message-

RE: FW: Problem with Service deployed

2008-03-12 Thread Senaka Fernando
Hi Rahil, Seems to be a Java issue rather. That should be the most likely scenario. You can AFAIK have concurrent JDK installations. I tried on Java5 and Java6 an it does work fine Regards, Senaka > Hi Senaka, > > I tried " WSDL2C.sh -uri ../services/Calculator/Calculator.wsdl -ss -sd > -d adb -

RE: FW: Problem with Service deployed

2008-03-12 Thread Rahil Ali
Hi Senaka, I tried " WSDL2C.sh -uri ../services/Calculator/Calculator.wsdl -ss -sd -d adb -u" It gives different error: Retrieving document at '../services/Calculator/Calculator.wsdl'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.

RE: FW: Problem with Service deployed

2008-03-12 Thread Senaka Fernando
Hi Rahil, Did you try "WSDL2C.sh -uri ../services/Calculator/Calculator.wsdl -ss -sd -d adb -u" Also? Can you let me know? Regards, Senaka > Hi Senaka, > > I tried that as well >> WSDL2C.sh -uri ../services/Calculator/Calculator.wsdl -ss -sd -d none > Still the same error... > > > Retrieving do

RE: FW: Problem with Service deployed

2008-03-12 Thread Rahil Ali
Hi Senaka, I tried that as well > WSDL2C.sh -uri ../services/Calculator/Calculator.wsdl -ss -sd -d none Still the same error... Retrieving document at '../services/Calculator/Calculator.wsdl'. Exception in thread "main" java.lang.NoSuchMethodError: method java.io.File.toURI was not found. at

RE: FW: Problem with Service deployed

2008-03-12 Thread Senaka Fernando
Hi Rahil, May be it is your Java version. Also, I provided the relative path to the wsdl. My case, it was inside samples/server/Calculator, and tool is found at tools/codegen/javatool. So, the relative path was, "../../../samples/server/Calculator/Calculator.wsdl". In your case, if you are tryin

RE: FW: Problem with Service deployed

2008-03-12 Thread Rahil Ali
Hi Senaka, I tried the same thing.. I downloaded both wsdls and tried on my Linux machine.. I put the Calculator.wsdl in $AXIS2C_HOME/services/Calculator/ and hello.wsdl in $AXIS2C_HOME/services/hello folders and tried WSDL2C.. My WSDL2C.sh is: #!/bin/sh #export AXIS2_HOME=/home/axis2java for f

RE: FW: Problem with Service deployed

2008-03-12 Thread Senaka Fernando
Hi Rahil, I think you misunderstood what is on [URL http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calculator/Calculator.wsdl?view=markup] This is basically a browser to the svn repo. You will have to download the WSDL from there to your local machine and then try it. Rega