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.

Regarding the .NET WSDL scenario, try saving it to your local machine and
trying it.

Regards,
Senaka

> 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.

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 in $AXIS2_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 $*


My JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0
My AXIS2_HOME=/usr/local/axis2-SNAPSHOT

What could be the problem... Is this because of some jar file missing or is
it because of my JAVA version..

Thanks & Regards,
Rahil


-Original Message-
From: Senaka Fernando [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 1:13 PM
To: axis-c-user@ws.apache.org
Subject: RE: FW: Problem with Service deployed

Hi Rahil,

I think you misunderstood what is on [URL
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul
ator/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.

Regarding the .NET WSDL scenario, try saving it to your local machine and
trying it.

Regards,
Senaka

> 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_HOM

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 trying the WSDL2C.sh in the bin, it would rather
be, "../services/Calculator/Calculator.wsdl"

Please try that too.

Regards,
Senaka

> 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 in $AXIS2_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 $*
>
>
> My JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0
> My AXIS2_HOME=/usr/local/axis2-SNAPSHOT
>
> What could be the problem... Is this because of some jar file missing or
> is
> it because of my JAVA version..
>
> Thanks & Regards,
> Rahil
>
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 1:13 PM
> To: axis-c-user@ws.apache.org
> Subject: RE: FW: Problem with Service deployed
>
> Hi Rahil,
>
> I think you misunderstood what is on [URL
> http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul
> ator/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.
>
> Regarding the .NET WSDL scenario, try saving it to your local machine and
> trying it.
>
> Regards,
> Senaka
>
>> 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 y

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 _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)


Pls advice..

Thanks & Regards,
Rahil Ali

-Original Message-
From: Senaka Fernando [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 1:28 PM
To: Apache AXIS C User List
Subject: RE: FW: Problem with Service deployed

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 trying the WSDL2C.sh in the bin, it would rather
be, "../services/Calculator/Calculator.wsdl"

Please try that too.

Regards,
Senaka

> 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 in $AXIS2_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 $*
>
>
> My JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0
> My AXIS2_HOME=/usr/local/axis2-SNAPSHOT
>
> What could be the problem... Is this because of some jar file missing or
> is
> it because of my JAVA version..
>
> Thanks & Regards,
> Rahil
>
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 1:13 PM
> To: axis-c-user@ws.apache.org
> Subject: RE: FW: Problem with Service deployed
>
> Hi Rahil,
>
> I think you misunderstood what is on [URL
>
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul
> ator/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.
>
> Regarding the .NET WSDL scenario, try saving it to your local machine and
> trying it.
>
> Regards,
> Senaka
>
>> 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 

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 document at '../services/Calculator/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)
>
>
> Pls advice..
>
> Thanks & Regards,
> Rahil Ali
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 1:28 PM
> To: Apache AXIS C User List
> Subject: RE: FW: Problem with Service deployed
>
> 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 trying the WSDL2C.sh in the bin, it would rather
> be, "../services/Calculator/Calculator.wsdl"
>
> Please try that too.
>
> Regards,
> Senaka
>
>> 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 in $AXIS2_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 $*
>>
>>
>> My JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0
>> My AXIS2_HOME=/usr/local/axis2-SNAPSHOT
>>
>> What could be the problem... Is this because of some jar file missing or
>> is
>> it because of my JAVA version..
>>
>> Thanks & Regards,
>> Rahil
>>
>>
>> -Original Message-
>> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 12, 2008 1:13 PM
>> To: axis-c-user@ws.apache.org
>> Subject: RE: FW: Problem with Service deployed
>>
>> Hi Rahil,
>>
>> I think you misunderstood what is on [URL
>>
> http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul
>> ator/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.
>>
>> Regarding the .NET WSDL scenario, try saving it to your local machine
>> and
>> trying it.
>>
>> Regards,
>> Senaka
>>
>>> 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=/us

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 -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.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)
> Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR:
> Unable to resolve imported document at
> '../services/Calculator/Calculator.wsdl'.: java.io.FileNotFoundException:
> This file was not found:
> file:/usr/java/j2sdk1.4.2_17/bin/../services/Calculator/Calculator.wsdl
>at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String,
> java.lang.String) (Unknown Source)
>at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String) (Unknown
> Source)
>at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(java.la
> ng.String) (Unknown Source)
>at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngine(org.
> apache.axis2.util.CommandLineOptionParser) (Unknown Source)
>...1 more
> Caused by: java.io.FileNotFoundException: This file was not found:
> file:/usr/java/j2sdk1.4.2_17/bin/../services/Calculator/Calculator.wsdl
>at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(java.net.URL)
> (Unknown Source)
>at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String,
> java.lang.String) (Unknown Source)
>...4 more
>
>
> Pls Advice,
> Thanks & Regards,
> Rahil
>
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 2:43 PM
> To: axis-c-user@ws.apache.org
> Subject: RE: FW: Problem with Service deployed
>
> 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 document at '../services/Calculator/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)
>>
>>
>> Pls advice..
>>
>> Thanks & Regards,
>> Rahil Ali
>>
>> -Original Message-
>> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 12, 2008 1:28 PM
>> To: Apache AXIS C User List
>> Subject: RE: FW: Problem with Service deployed
>>
>> 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 trying the WSDL2C.sh in the bin, it would
>> rather
>> be, "../services/Calculator/Calculator.wsdl"
>>
>> Please try that too.
>>
>> Regards,
>> Senaka
>>
>>> 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 in $AXIS2_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 $*
>>>
>>>
>>> My JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0
>>> My AXIS2_HOME=/usr/local/axis2-SNAPSHOT
>>>
>>> What could be the problem... Is this because of some jar file missing
>>> or
>>> is
>>> it because of my JAVA version..
>>>
>>> Thanks & Regards,
>>> Rahil
>>>
>>>
>>> -Original Message-
>>> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
>>> Sent: Wednesday, March 12, 2008 1:13 PM
>>> To: axis-c-user@ws.apache.org
>>> Subject: RE: FW: Problem with Service deployed
>>>
>>> Hi Rahil,
>>>
>>> I think you misunderstood what is on [URL
>>>
>>
> http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul
>>> ato

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.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)
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR:
Unable to resolve imported document at
'../services/Calculator/Calculator.wsdl'.: java.io.FileNotFoundException:
This file was not found:
file:/usr/java/j2sdk1.4.2_17/bin/../services/Calculator/Calculator.wsdl
   at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String,
java.lang.String) (Unknown Source)
   at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String) (Unknown
Source)
   at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(java.la
ng.String) (Unknown Source)
   at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngine(org.
apache.axis2.util.CommandLineOptionParser) (Unknown Source)
   ...1 more
Caused by: java.io.FileNotFoundException: This file was not found:
file:/usr/java/j2sdk1.4.2_17/bin/../services/Calculator/Calculator.wsdl
   at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(java.net.URL)
(Unknown Source)
   at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String,
java.lang.String) (Unknown Source)
   ...4 more


Pls Advice,
Thanks & Regards,
Rahil


-Original Message-
From: Senaka Fernando [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 2:43 PM
To: axis-c-user@ws.apache.org
Subject: RE: FW: Problem with Service deployed

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 document at '../services/Calculator/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)
>
>
> Pls advice..
>
> Thanks & Regards,
> Rahil Ali
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 1:28 PM
> To: Apache AXIS C User List
> Subject: RE: FW: Problem with Service deployed
>
> 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 trying the WSDL2C.sh in the bin, it would rather
> be, "../services/Calculator/Calculator.wsdl"
>
> Please try that too.
>
> Regards,
> Senaka
>
>> 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 in $AXIS2_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 $*
>>
>>
>> My JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0
>> My AXIS2_HOME=/usr/local/axis2-SNAPSHOT
>>
>> What could be the problem... Is this because of some jar file missing or
>> is
>> it because of my JAVA version..
>>
>> Thanks & Regards,
>> Rahil
>>
>>
>> -Original Message-
>> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 12, 2008 1:13 PM
>> To: axis-c-user@ws.apache.org
>> Subject: RE: FW: Problem with Service deployed
>>
>> Hi Rahil,
>>
>> I think you misunderstood what is on [URL
>>
>
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul
>> ator/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.
>>
>> Regarding the .NET WSDL scenario, try saving it to your local machine
>> and
>> trying it.
>>
>> Regards,
>> Senaka
>>
>>> Hello Senaka,
>>>
>>> Thanks very much for your prompt replies and support.
>>> Yes the problem was I didn't set JAVA_HOME

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-
From: Senaka Fernando [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 2:43 PM
To: axis-c-user@ws.apache.org
Subject: RE: FW: Problem with Service deployed

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 document at '../services/Calculator/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)
>
>
> Pls advice..
>
> Thanks & Regards,
> Rahil Ali
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 1:28 PM
> To: Apache AXIS C User List
> Subject: RE: FW: Problem with Service deployed
>
> 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 trying the WSDL2C.sh in the bin, it would rather
> be, "../services/Calculator/Calculator.wsdl"
>
> Please try that too.
>
> Regards,
> Senaka
>
>> 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 in $AXIS2_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 $*
>>
>>
>> My JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0
>> My AXIS2_HOME=/usr/local/axis2-SNAPSHOT
>>
>> What could be the problem... Is this because of some jar file missing or
>> is
>> it because of my JAVA version..
>>
>> Thanks & Regards,
>> Rahil
>>
>>
>> -Original Message-
>> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 12, 2008 1:13 PM
>> To: axis-c-user@ws.apache.org
>> Subject: RE: FW: Problem with Service deployed
>>
>> Hi Rahil,
>>
>> I think you misunderstood what is on [URL
>>
>
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/Calcul
>> ator/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.
>>
>> Regarding the .NET WSDL scenario, try saving it to your local machine
>> and
>> trying it.
>>
>> Regards,
>> Senaka
>>
>>> 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 

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
several files for add function : adb_add.c, adb_addResponse.c.

For now I just ran build.sh without implementing any logic, it generated
libCalculator.so; I put service.xml from resources folder and libCalculator
in $AXIS2C_HOME/service/Calculator folder and tried to access the URL :
http://192.168.4.163/axis2/services/Calculator?wsdl

It gave error while http://192.168.4.163/axis2/services/Calculator is
displaying the service properly...

Deployed Services
Calculator
Calculator Service 

Available Operations 
div
add
sub
mul

Pls advice,
Thanks,
Rahil

-Original Message-
From: Senaka Fernando [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 3:05 PM
To: Apache AXIS C User List
Subject: RE: FW: Problem with Service deployed

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 -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.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)
> Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR:
> Unable to resolve imported document at
> '../services/Calculator/Calculator.wsdl'.: java.io.FileNotFoundException:
> This file was not found:
> file:/usr/java/j2sdk1.4.2_17/bin/../services/Calculator/Calculator.wsdl
>at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String,
> java.lang.String) (Unknown Source)
>at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String) (Unknown
> Source)
>at
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(java.la
> ng.String) (Unknown Source)
>at
>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngine(org.
> apache.axis2.util.CommandLineOptionParser) (Unknown Source)
>...1 more
> Caused by: java.io.FileNotFoundException: This file was not found:
> file:/usr/java/j2sdk1.4.2_17/bin/../services/Calculator/Calculator.wsdl
>at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(java.net.URL)
> (Unknown Source)
>at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String,
> java.lang.String) (Unknown Source)
>...4 more
>
>
> Pls Advice,
> Thanks & Regards,
> Rahil
>
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 2:43 PM
> To: axis-c-user@ws.apache.org
> Subject: RE: FW: Problem with Service deployed
>
> 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 document at '../services/Calculator/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)
>>
>>
>> Pls advice..
>>
>> Thanks & Regards,
>> Rahil Ali
>>
>> -Original Message-
>> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 12, 2008 1:28 PM
>> To: Apache AXIS C User List
>> Subject: RE: FW: Problem with Service deployed
>>
>> 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 trying the WSDL2C.sh in the bin, it would
>> rather
>> be, "../services/Calculator/Calculator.wsdl"
>>
>> Please try that too.
>>
>> Regards,
>> Senaka
>>
>>> 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/Calculat

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 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
> several files for add function : adb_add.c, adb_addResponse.c.
>
> For now I just ran build.sh without implementing any logic, it generated
> libCalculator.so; I put service.xml from resources folder and
> libCalculator
> in $AXIS2C_HOME/service/Calculator folder and tried to access the URL :
> http://192.168.4.163/axis2/services/Calculator?wsdl
>
> It gave error while http://192.168.4.163/axis2/services/Calculator is
> displaying the service properly...
>
> Deployed Services
> Calculator
> Calculator Service
>
> Available Operations
> div
> add
> sub
> mul
>
> Pls advice,
> Thanks,
> Rahil
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 3:05 PM
> To: Apache AXIS C User List
> Subject: RE: FW: Problem with Service deployed
>
> 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 -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.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)
>> Caused by: javax.wsdl.WSDLException: WSDLException:
>> faultCode=OTHER_ERROR:
>> Unable to resolve imported document at
>> '../services/Calculator/Calculator.wsdl'.:
>> java.io.FileNotFoundException:
>> This file was not found:
>> file:/usr/java/j2sdk1.4.2_17/bin/../services/Calculator/Calculator.wsdl
>>at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String,
>> java.lang.String) (Unknown Source)
>>at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String)
>> (Unknown
>> Source)
>>at
>>
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(java.la
>> ng.String) (Unknown Source)
>>at
>>
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.CodeGenerationEngine(org.
>> apache.axis2.util.CommandLineOptionParser) (Unknown Source)
>>...1 more
>> Caused by: java.io.FileNotFoundException: This file was not found:
>> file:/usr/java/j2sdk1.4.2_17/bin/../services/Calculator/Calculator.wsdl
>>at
>> com.ibm.wsdl.util.StringUtils.getContentAsInputStream(java.net.URL)
>> (Unknown Source)
>>at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(java.lang.String,
>> java.lang.String) (Unknown Source)
>>...4 more
>>
>>
>> Pls Advice,
>> Thanks & Regards,
>> Rahil
>>
>>
>> -Original Message-
>> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 12, 2008 2:43 PM
>> To: axis-c-user@ws.apache.org
>> Subject: RE: FW: Problem with Service deployed
>>
>> 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 document at '../services/Calculator/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)
>>>
>>>
>>> Pls advice..
>>>
>>> Thanks & Regards,
>>> Rahil Ali
>>>
>>> -Original Message-
>>> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
>>> Sent: Wednesday, March 12, 2008 1:28 PM
>>> To: Apache AXIS C User List
>>> Subject: RE: FW: Problem with Service deployed
>>>
>>> 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 

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 to call the
service? for that I setup according to the User-guide.
1-Copied service.xml from $AXIS2C_HOME/services/Calculator/resources
directory to $AXIS2C_HOME/services/Calculator and 2-similarly copied
libCalculator.so

Still I am unable to access the wsdl via internet explorer. I read in some
article that wsdl file should be placed in some META-INF folder, but I am
not sure about exact setup of files, can you please explain me that what
should be the folder structure. My current structure is like

$AXIS2C_HOME/services/Calculator/Calculator.wsdl
  /resources/
  /services.xml
  /src/

$AXIS2C_HOME/services/Calculator/resources/services.xml

$AXIS2C_HOME/services/Calculator/src/axis2_skel_Calculator.h

/axis2_skel_Calculator.c
  /adb_subResponse.h
  /adb_subResponse.c
  /adb_sub.h
  /adb_sub.c
  /adb_mulResponse.h
  /adb_mulResponse.c
  /adb_mul.h
  /adb_mul.c
  /adb_divResponse.h
  /adb_divResponse.c
  /adb_div.h
  /adb_div.c
  /adb_addResponse.h
  /adb_addResponse.c
  /adb_add.h
  /adb_add.c
  /build.sh

/axis2_svc_skel_Calculator.c
  /libCalculator.so
  /Calculator.wsdl
Thanks & regards,
Rahil


-Original Message-
From: Senaka Fernando [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 5:06 PM
To: axis-c-user@ws.apache.org
Subject: RE: FW: Problem with Service deployed

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 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
> several files for add function : adb_add.c, adb_addResponse.c.
>
> For now I just ran build.sh without implementing any logic, it generated
> libCalculator.so; I put service.xml from resources folder and
> libCalculator
> in $AXIS2C_HOME/service/Calculator folder and tried to access the URL :
> http://192.168.4.163/axis2/services/Calculator?wsdl
>
> It gave error while http://192.168.4.163/axis2/services/Calculator is
> displaying the service properly...
>
> Deployed Services
> Calculator
> Calculator Service
>
> Available Operations
> div
> add
> sub
> mul
>
> Pls advice,
> Thanks,
> Rahil
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 3:05 PM
> To: Apache AXIS C User List
> Subject: RE: FW: Problem with Service deployed
>
> 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 -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.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)
>> Caused by: javax.wsdl.WSDLException: WSDLExceptio

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 10, 2007
(04:45:58 LKT)
*
*/

#include "adb_ResultStatusCodeFormat.h"

  /**
   * This type was generated from the piece of schema that had
   * name = ResultStatusCodeFormat
   * Namespace URI =
http://www.axa.ca/message/1.0/types/message-types
   * Namespace Prefix = ns5
   */



struct adb_ResultStatusCodeFormat
{
axis2_char_t* attrib_ResultStatusCodeFormat;

};


   /* Function Implmentations
/
AXIS2_EXTERN adb_ResultStatusCodeFormat_t* AXIS2_CALL
adb_ResultStatusCodeFormat_create(
const axutil_env_t *env )
{
adb_ResultStatusCodeFormat_t *_ResultStatusCodeFormat = NULL;

AXIS2_ENV_CHECK(env, NULL);

_ResultStatusCodeFormat = (adb_ResultStatusCodeFormat_t *)
AXIS2_MALLOC(env->
allocator, sizeof(adb_ResultStatusCodeFormat_t));

if(NULL == _ResultStatusCodeFormat)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY,
AXIS2_FAILURE);
return NULL;
}



return _ResultStatusCodeFormat;
 }

axis2_status_t AXIS2_CALL
adb_ResultStatusCodeFormat_free (
adb_ResultStatusCodeFormat_t* _ResultStatusCodeFormat,
const axutil_env_t *env)
{



AXIS2_ENV_CHECK(env, AXIS2_FAILURE);



if(_ResultStatusCodeFormat)
{
AXIS2_FREE( env->allocator, _ResultStatusCodeFormat);
_ResultStatusCodeFormat = NULL;
}
return AXIS2_SUCCESS;
}



axis2_status_t AXIS2_CALL
adb_ResultStatusCodeFormat_deserialize(
adb_ResultStatusCodeFormat_t* _ResultStatusCodeFormat,
const axutil_env_t *env,
axiom_node_t* parent)
{

axis2_status_t status = AXIS2_SUCCESS;
axiom_namespace_t *ns1 = NULL;

 axis2_char_t* text_value = NULL;
 axutil_qname_t *qname = NULL;


  axutil_qname_t *element_qname = NULL;

   axiom_node_t *first_node = NULL;


   axiom_node_t *current_node = NULL;
#   axiom_element_t *current_element = NULL;

AXIS2_ENV_CHECK(env, AXIS2_FAILURE);

ns1 = axiom_namespace_create (env,
 "
http://www.axa.ca/message/1.0/types/message-types";,
 "ns5");

  if ( NULL == parent )
  {
/** This should be checked above */
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL elemenet for
ResultStatusCodeFormat"
  " %d :: %s",
env->error->error_number,

AXIS2_ERROR_GET_MESSAGE(env->error));
return AXIS2_FAILURE;
  }

first_node = parent;



 /**
  * building ResultStatusCodeFormat element
  */



   /**
 * because elements are not ordered we
should surf all the sibling to pick the right one
 */
   for ( current_node = first_node; current_node
!= NULL;
 current_node =
axiom_node_get_next_sibling( current_node, env))
   {
#  current_element =
axiom_node_get_data_element( current_node, env);
  qname = axiom_element_get_qname(
current_element, env, current_node);
  element_qname = axutil_qname_create( env,
"ResultStatusCodeFormat", "http://www.axa.ca/message/1.0/types/message-types";,
"ns5");
  if ( axutil_qname_equals( element_qname,
env, qname))
  {
   /** found the requried element */
   break;
  }
   }

   if ( current_node != NULL)
   {

  text_value =
axiom_element_get_text(current_element, env, current_node );
  status =
adb_ResultStatusCodeFormat_set_ResultStatusCodeFormat(
_ResultStatusCodeFormat, env,

text_value);

 if( AXIS2_FAILURE ==  statu

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, in addition to copying the service.xml and the .so, you will also
have to copy the wsdl and save it by the name, .wsdl (ex:-
Calculator.wsdl). The META-INF folder is something related to Axis2/Java.
It doesn't apply to you.

Regards,
Senaka

> 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 to call the
> service? for that I setup according to the User-guide.
> 1-Copied service.xml from $AXIS2C_HOME/services/Calculator/resources
> directory to $AXIS2C_HOME/services/Calculator and 2-similarly copied
> libCalculator.so
>
> Still I am unable to access the wsdl via internet explorer. I read in some
> article that wsdl file should be placed in some META-INF folder, but I am
> not sure about exact setup of files, can you please explain me that what
> should be the folder structure. My current structure is like
>
>   $AXIS2C_HOME/services/Calculator/Calculator.wsdl
> /resources/
> /services.xml
> /src/
>
>   $AXIS2C_HOME/services/Calculator/resources/services.xml
>
>   $AXIS2C_HOME/services/Calculator/src/axis2_skel_Calculator.h
>
> /axis2_skel_Calculator.c
> /adb_subResponse.h
> /adb_subResponse.c
> /adb_sub.h
> /adb_sub.c
> /adb_mulResponse.h
> /adb_mulResponse.c
> /adb_mul.h
> /adb_mul.c
> /adb_divResponse.h
> /adb_divResponse.c
> /adb_div.h
> /adb_div.c
> /adb_addResponse.h
> /adb_addResponse.c
> /adb_add.h
> /adb_add.c
> /build.sh
>
> /axis2_svc_skel_Calculator.c
> /libCalculator.so
> /Calculator.wsdl
> Thanks & regards,
> Rahil
>
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 5:06 PM
> To: axis-c-user@ws.apache.org
> Subject: RE: FW: Problem with Service deployed
>
> 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 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
>> several files for add function : adb_add.c, adb_addResponse.c.
>>
>> For now I just ran build.sh without implementing any logic, it generated
>> libCalculator.so; I put service.xml from resources folder and
>> libCalculator
>> in $AXIS2C_HOME/service/Calculator folder and tried to access the URL :
>> http://192.168.4.163/axis2/services/Calculator?wsdl
>>
>> It gave error while http://192.168.4.163/axis2/services/Calculator is
>> displaying the service properly...
>>
>> Deployed Services
>> Calculator
>> Calculator Service
>>
>> Available Operations
>> div
>> add
>> sub
>> mul
>>
>> Pls advice,
>> Thanks,
>> Rahil
>>
>> -Original Message-
>> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 12, 2008 3:05 PM
>> To: Apache AXIS C User List
>> Subject: RE: FW: Problem with Service deployed
>>
>> 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 do

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,

   /*
* because elements are not ordered we
should surf all the sibling to pick the right one
*/
   for (current_node = first_node;
current_node != NULL;
 current_node =
axiom_node_get_next_sibling(current_node, env))
   {

if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
  {
 continue;
  }


Can you recheck with the updated CLASSPATH again,


Thanks
Dimuthu



On Wed, Mar 12, 2008 at 6:59 PM, Carl Lefrançois
<[EMAIL PROTECTED]> wrote:
> 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 10, 2007
> (04:45:58 LKT)
> *
> */
>
> #include "adb_ResultStatusCodeFormat.h"
>
>   /**
>* This type was generated from the piece of schema that had
>* name = ResultStatusCodeFormat
>* Namespace URI =
> http://www.axa.ca/message/1.0/types/message-types
> * Namespace Prefix = ns5
>*/
>
>
>
> struct adb_ResultStatusCodeFormat
> {
> axis2_char_t* attrib_ResultStatusCodeFormat;
>
>  };
>
>
>/* Function Implmentations
> /
> AXIS2_EXTERN adb_ResultStatusCodeFormat_t* AXIS2_CALL
> adb_ResultStatusCodeFormat_create(
>  const axutil_env_t *env )
> {
> adb_ResultStatusCodeFormat_t *_ResultStatusCodeFormat = NULL;
>
> AXIS2_ENV_CHECK(env, NULL);
>
> _ResultStatusCodeFormat = (adb_ResultStatusCodeFormat_t *)
> AXIS2_MALLOC(env->
>  allocator, sizeof(adb_ResultStatusCodeFormat_t));
>
> if(NULL == _ResultStatusCodeFormat)
> {
> AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY,
> AXIS2_FAILURE);
>  return NULL;
> }
>
>
>
> return _ResultStatusCodeFormat;
>  }
>
> axis2_status_t AXIS2_CALL
> adb_ResultStatusCodeFormat_free (
> adb_ResultStatusCodeFormat_t* _ResultStatusCodeFormat,
>  const axutil_env_t *env)
> {
>
>
>
> AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
>
>
>
> if(_ResultStatusCodeFormat)
> {
>  AXIS2_FREE( env->allocator, _ResultStatusCodeFormat);
> _ResultStatusCodeFormat = NULL;
> }
> return AXIS2_SUCCESS;
> }
>
>
>
> axis2_status_t AXIS2_CALL
>  adb_ResultStatusCodeFormat_deserialize(
> adb_ResultStatusCodeFormat_t* _ResultStatusCodeFormat,
> const axutil_env_t *env,
> axiom_node_t* parent)
> {
>
> axis2_status_t status = AXIS2_SUCCESS;
> axiom_namespace_t *ns1 = NULL;
>
>  axis2_char_t* text_value = NULL;
>  axutil_qname_t *qname = NULL;
>
>
>   axutil_qname_t *element_qname = NULL;
>
>axiom_node_t *first_node = NULL;
>
>
>axiom_node_t *current_node = NULL;
>  #   axiom_element_t *current_element = NULL;
>
> AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
>
> ns1 = axiom_namespace_create (env,
>
> "http://www.axa.ca/message/1.0/types/message-types";,
>   "ns5");
>
>   if ( NULL == parent )
>   {
> /** This should be checked above */
> AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL elemenet for
> ResultStatusCodeFormat"
>" %d :: %s",
> env->error->error_number,
>
> AXIS2_ERROR_GET_MESSAGE(env->error));
> return AXIS2_FAILURE;
>}
>
> first_node = parent;
>
>
>
>  /**
>   * building ResultStatusCodeFormat element
>   */
>
>
>
>/**
>  * because elements are not ordered we
> should surf all the sibling to pick the right one
>   */
>for ( current_node = first_node; current_node
> != NU

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 libCalculator comes in action,
does AXIS2C always use lib.so file?

Thanks,
Rahil 


-Original Message-
From: Senaka Fernando [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 6:50 PM
To: axis-c-user@ws.apache.org
Subject: RE: FW: Problem with Service deployed

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, in addition to copying the service.xml and the .so, you will also
have to copy the wsdl and save it by the name, .wsdl (ex:-
Calculator.wsdl). The META-INF folder is something related to Axis2/Java.
It doesn't apply to you.

Regards,
Senaka

> 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 to call the
> service? for that I setup according to the User-guide.
> 1-Copied service.xml from $AXIS2C_HOME/services/Calculator/resources
> directory to $AXIS2C_HOME/services/Calculator and 2-similarly copied
> libCalculator.so
>
> Still I am unable to access the wsdl via internet explorer. I read in some
> article that wsdl file should be placed in some META-INF folder, but I am
> not sure about exact setup of files, can you please explain me that what
> should be the folder structure. My current structure is like
>
>   $AXIS2C_HOME/services/Calculator/Calculator.wsdl
> /resources/
> /services.xml
> /src/
>
>   $AXIS2C_HOME/services/Calculator/resources/services.xml
>
>   $AXIS2C_HOME/services/Calculator/src/axis2_skel_Calculator.h
>
> /axis2_skel_Calculator.c
> /adb_subResponse.h
> /adb_subResponse.c
> /adb_sub.h
> /adb_sub.c
> /adb_mulResponse.h
> /adb_mulResponse.c
> /adb_mul.h
> /adb_mul.c
> /adb_divResponse.h
> /adb_divResponse.c
> /adb_div.h
> /adb_div.c
> /adb_addResponse.h
> /adb_addResponse.c
> /adb_add.h
> /adb_add.c
> /build.sh
>
> /axis2_svc_skel_Calculator.c
> /libCalculator.so
> /Calculator.wsdl
> Thanks & regards,
> Rahil
>
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 5:06 PM
> To: axis-c-user@ws.apache.org
> Subject: RE: FW: Problem with Service deployed
>
> 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 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
>> several files for add function : adb_add.c, adb_addResponse.c.
>>
>> For now I just ran build.sh without implementing any logic, it generated
>> libCalculator.so; I put service.xml from resources folder and
>> libCalculator
>> in $AXIS2C_HOME/service/Calculator folder and tried to access the URL :
>> http://192.168.4.163/axis2/services/Calculator?wsdl
>>
>> It gave error while http://192.168.4.163/axis2/services/Calculator is
>> displaying t

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 or corruption (out):
0x08f03c18 ***
=== Backtrace: =
/lib/libc.so.6[0x8d98b6]
/lib/libc.so.6(cfree+0x90)[0x8dce00]
/usr/lib/libxml2.so.2(xmlCharEncCloseFunc+0x4f)[0xbebbaf]
/usr/lib/libxml2.so.2(xmlFreeParserInputBuffer+0x3f)[0xc16fdf]
/usr/lib/libxml2.so.2(xmlFreeInputStream+0x78)[0xbf0008]
/usr/lib/libxml2.so.2(xmlFreeParserCtxt+0x28)[0xbf0058]
/usr/lib/libxml2.so.2(xmlFreeTextReader+0x1ee)[0xc9bdae]
/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_parser.so.0(axis2_libxml2_reader_wrapper_free+0x5e)[0xfd6acb]
/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_parser.so.0(axiom_xml_reader_free+0x1d)[0xfd5a87]
/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_stax_builder_free+0xb6)[0x9e7847]
/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_soap_builder_free+0xb1)[0x9f161f]
/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_soap_envelope_free+0x95)[0x9f080a]
/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_msg_ctx_free+0x14a)[0x5367ad]
/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_op_ctx_free+0x83)[0x53b2d6]
/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_op_client_free+0x50)[0x541e9f]
/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_svc_client_create_op_client+0xd0)[0x545699]
/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_svc_client_send_receive_with_op_qname+0x541)[0x544f52]
/home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1(axis2_stub_op_AppFoniaService_CallState+0x1f2)[0x1397a8]
./com_fonia[0x8060577]
./com_fonia[0x8061f61]
./com_fonia[0x80638fe]
/home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/libcommonSp01/lib/libcommonSp01.so.1(_ZN4sp016Thread7svc_runEPv+0x30)[0x3a6410]
/lib/libpthread.so.0[0x86143b]
/lib/libc.so.6(clone+0x5e)[0x940fde]
=== Memory map: 
0011-0012 r-xp  08:05 689825
/home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/esFnResolve/ws_es_client/lib/libws_es_client.so.1.0.0
0012-00121000 rw-p 0001 08:05 689825
/home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/esFnResolve/ws_es_client/lib/libws_es_client.so.1.0.0
00121000-00134000 r-xp  08:05 720406
/home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/lib_diva_wrapper/lib/libDivaWrapper.so.1.0.0
00134000-00135000 rw-p 00012000 08:05 720406
/home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/lib_diva_wrapper/lib/libDivaWrapper.so.1.0.0
00135000-00144000 r-xp  08:05 720455
/home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1.0.0
00144000-00145000 rw-p e000 08:05 720455
/home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1.0.0
00145000-0015 r-xp  08:05 6352357   
/lib/libgcc_s-4.1.2-20070626.so.1
0015-00151000 rw-p a000 08:05 6352357   
/lib/libgcc_s-4.1.2-20070626.so.1
00151000-00163000 r-xp  08:05 2449523    /usr/lib/libz.so.1.2.3
00163000-00164000 rw-p 00011000 08:05 2449523    /usr/lib/libz.so.1.2.3
00164000-00167000 r-xp  08:05 6352358    /lib/libuuid.so.1.2
00167000-00168000 rw-p 2000 08:05 6352358    /lib/libuuid.so.1.2
00168000-001c5000 r-xp  08:05 2449588   
/usr/lib/libsqlite3.so.0.8.6
001c5000-001c7000 rw-p 0005c000 08:05 2449588   
/usr/lib/libsqlite3.so.0.8.6
001c7000-001e6000 r-xp  08:05 6352356    /lib/libexpat.so.0.5.0
001e6000-001e8000 rw-p 0001e000 08:05 6352356    /lib/libexpat.so.0.5.0
001e8000-001f r-xp  08:05 2449530   
/usr/lib/libXrender.so.1.3.0
001f-001f1000 rw-p 7000 08:05 2449530   
/usr/lib/libXrender.so.1.3.0
001f1000-0020 r-xp  08:05 2449534   
/usr/lib/libXext.so.6.4.0
0020-00201000 rw-p e000 08:05 2449534   
/usr/lib/libXext.so.6.4.0
00203000-00204000 r-xp 00203000 00:00 0  [vdso]
00204000-00225000 r-xp  08:05 2449551   
/usr/lib/libjpeg.so.62.0.0
00225000-00226000 rw-p 0002 08:05 2449551   
/usr/lib/libjpeg.so.62.0.0
00226000-0024d000 r-xp  08:05 2449525   
/usr/lib/libfontconfig.so.1.1.0
0024d000-00255000 rw-p 00027000 08:05 2449525   
/usr/lib/libfontconfig.so.1.1.0
00256000-00277000 r-xp  08:05 392872
/opt/axis2c-bin-1.3.0-linux/lib/libneethi.so.0.1.0
00277000-00278000 rw-p 00021000 08:05 392872
/opt/axis2c-bin-1.3.0-linux/lib/libneethi.so.0.1.0
00278000-00358000 r-xp  08:05 2449553   
/usr/lib/libstdc++.so.6.0.8
00358000-0035c000 r--p 000df000 08:05 2449553   
/usr/lib/libstdc++.so.6.0.8
0035c000-0035d000 rw-p 000e3000 08:05 2449553   
/usr/lib/libstdc++.so.6.0.8
0035d000-00363000 rw-p 0035d000 00:00 0
00363000-0036b000 r-xp  08:05 2449544    /usr/lib/libSM.so.6.0.0
0036b000-0036c000 rw-p 000

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 the old version can you re- try with the
nightly build?

Thanks
Dimuthu

On Wed, Mar 12, 2008 at 8:35 PM, Simone Bordin
<[EMAIL PROTECTED]> wrote:
>
>  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 or corruption (out):
> 0x08f03c18 ***
>  === Backtrace: =
>  /lib/libc.so.6[0x8d98b6]
>  /lib/libc.so.6(cfree+0x90)[0x8dce00]
>  /usr/lib/libxml2.so.2(xmlCharEncCloseFunc+0x4f)[0xbebbaf]
>  /usr/lib/libxml2.so.2(xmlFreeParserInputBuffer+0x3f)[0xc16fdf]
>  /usr/lib/libxml2.so.2(xmlFreeInputStream+0x78)[0xbf0008]
>  /usr/lib/libxml2.so.2(xmlFreeParserCtxt+0x28)[0xbf0058]
>  /usr/lib/libxml2.so.2(xmlFreeTextReader+0x1ee)[0xc9bdae]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_parser.so.0(axis2_libxml2_reader_wrapper_free+0x5e)[0xfd6acb]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_parser.so.0(axiom_xml_reader_free+0x1d)[0xfd5a87]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_stax_builder_free+0xb6)[0x9e7847]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_soap_builder_free+0xb1)[0x9f161f]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_soap_envelope_free+0x95)[0x9f080a]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_msg_ctx_free+0x14a)[0x5367ad]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_op_ctx_free+0x83)[0x53b2d6]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_op_client_free+0x50)[0x541e9f]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_svc_client_create_op_client+0xd0)[0x545699]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_svc_client_send_receive_with_op_qname+0x541)[0x544f52]
>
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1(axis2_stub_op_AppFoniaService_CallState+0x1f2)[0x1397a8]
>  ./com_fonia[0x8060577]
>  ./com_fonia[0x8061f61]
>  ./com_fonia[0x80638fe]
>
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/libcommonSp01/lib/libcommonSp01.so.1(_ZN4sp016Thread7svc_runEPv+0x30)[0x3a6410]
>  /lib/libpthread.so.0[0x86143b]
>  /lib/libc.so.6(clone+0x5e)[0x940fde]
>  === Memory map: 
>  0011-0012 r-xp  08:05 689825
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/esFnResolve/ws_es_client/lib/libws_es_client.so.1.0.0
>  0012-00121000 rw-p 0001 08:05 689825
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/esFnResolve/ws_es_client/lib/libws_es_client.so.1.0.0
>  00121000-00134000 r-xp  08:05 720406
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/lib_diva_wrapper/lib/libDivaWrapper.so.1.0.0
>  00134000-00135000 rw-p 00012000 08:05 720406
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/lib_diva_wrapper/lib/libDivaWrapper.so.1.0.0
>  00135000-00144000 r-xp  08:05 720455
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1.0.0
>  00144000-00145000 rw-p e000 08:05 720455
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1.0.0
>  00145000-0015 r-xp  08:05 6352357
> /lib/libgcc_s-4.1.2-20070626.so.1
>  0015-00151000 rw-p a000 08:05 6352357
> /lib/libgcc_s-4.1.2-20070626.so.1
>  00151000-00163000 r-xp  08:05 2449523/usr/lib/libz.so.1.2.3
>  00163000-00164000 rw-p 00011000 08:05 2449523/usr/lib/libz.so.1.2.3
>  00164000-00167000 r-xp  08:05 6352358/lib/libuuid.so.1.2
>  00167000-00168000 rw-p 2000 08:05 6352358/lib/libuuid.so.1.2
>  00168000-001c5000 r-xp  08:05 2449588
> /usr/lib/libsqlite3.so.0.8.6
>  001c5000-001c7000 rw-p 0005c000 08:05 2449588
> /usr/lib/libsqlite3.so.0.8.6
>  001c7000-001e6000 r-xp  08:05 6352356/lib/libexpat.so.0.5.0
>  001e6000-001e8000 rw-p 0001e000 08:05 6352356/lib/libexpat.so.0.5.0
>  001e8000-001f r-xp  08:05 2449530
> /usr/lib/libXrender.so.1.3.0
>  001f-001f1000 rw-p 7000 08:05 2449530
> /usr/lib/libXrender.so.1.3.0
>  001f1000-0020 r-xp  08:05 2449534/usr/lib/libXext.so.6.4.0
>  0020-00201000 rw-p e000 08:05 2449534/usr/lib/libXext.so.6.4.0
>  00203000-00204000 r-xp 00203000 00:00 0  [vdso]
>  00204000-00225000 r-xp  08:05 2449551/usr/lib/libjpeg.so.62.0.0
>  00225000-00226000 rw-p 0002 08:05 2449551/usr/lib/libjpeg.so.62.0.0
>  00226000-0024d000 r-xp  08:05 2449525
> /usr/lib/libfontconfig.so.1.1.0
>  0024d000-00255000 rw-p 00027000 08

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_t) *
 (5 + ADB_DEFAULT_DIGIT_LIMIT * 2 +
axutil_strlen("RequestParameters")));

Regards,
Senaka

> Hi Dimuthu,
>
> You are correct, I was mistakenly using the jars in the Axis2 1.3 instead
> of
> the nightly snapshot zip.
>
> with the new code, I get a "debug assertion failed" error.
> (_ASSERTE(_CrtIsValidHeapPointer(pUserData));  from DBGHEAP.C)
>
> Is there some change needed in construction of the request parameters with
> the new version of the ADB stubs?
>
>
> Carl
>
>
> The generated file is:
> (## is added to line causing the problem)
>
>
> /**
>  * adb_BrokerInformationRequestType.c
>  *
>  * This file was auto-generated from WSDL
>  * by the Apache Axis2/C version: SNAPSHOT  Built on : Mar 10,
> 2008
> (08:35:52 GMT+00:00)
>  */
>
> #include "adb_BrokerInformationRequestType.h"
>
> /*
>  * This type was generated from the piece of schema that
> had
>  * name = BrokerInformationRequestType
>  * Namespace URI =
> http://www.axa.ca/BrokerInformationService/1.0/types/BrokerInformationRequestTypes
>  * Namespace Prefix = ns2
>  */
>
>
>
> struct adb_BrokerInformationRequestType
> {
> adb_ParametersType_t* property_RequestParameters;
>
>
> axis2_bool_t is_valid_RequestParameters;
>
>
> axis2_char_t* property_PortfolioNumber;
>
>
> axis2_bool_t is_valid_PortfolioNumber;
>
>
>
> };
>
>
>/* Private Function prototypes
> /
>
>
> axis2_status_t AXIS2_CALL
> adb_BrokerInformationRequestType_set_RequestParameters_nil(
> adb_BrokerInformationRequestType_t*
> _BrokerInformationRequestType,
> const axutil_env_t *env);
>
>
> axis2_status_t AXIS2_CALL
> adb_BrokerInformationRequestType_set_PortfolioNumber_nil(
> adb_BrokerInformationRequestType_t*
> _BrokerInformationRequestType,
> const axutil_env_t *env);
>
>
>
>/* Function Implmentations
> /
> adb_BrokerInformationRequestType_t* AXIS2_CALL
> adb_BrokerInformationRequestType_create(
> const axutil_env_t *env)
> {
> adb_BrokerInformationRequestType_t
> *_BrokerInformationRequestType = NULL;
>
> AXIS2_ENV_CHECK(env, NULL);
>
> _BrokerInformationRequestType =
> (adb_BrokerInformationRequestType_t *) AXIS2_MALLOC(env->
> allocator, sizeof(adb_BrokerInformationRequestType_t));
>
> if(NULL == _BrokerInformationRequestType)
> {
> AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY,
> AXIS2_FAILURE);
> return NULL;
> }
>
> memset(_BrokerInformationRequestType, 0,
> sizeof(adb_BrokerInformationRequestType_t));
>
> _BrokerInformationRequestType->property_RequestParameters  =
> NULL;
>   _BrokerInformationRequestType->is_valid_RequestParameters
> = AXIS2_FALSE;
> _BrokerInformationRequestType->property_PortfolioNumber  =
> NULL;
>   _BrokerInformationRequestType->is_valid_PortfolioNumber
> =
> AXIS2_FALSE;
>
>
> return _BrokerInformationRequestType;
> }
>
> axis2_status_t AXIS2_CALL
> adb_BrokerInformationRequestType_free (
> adb_BrokerInformationRequestType_t*
> _BrokerInformationRequestType,
> const axutil_env_t *env)
> {
>
>
> AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
> AXIS2_PARAM_CHECK(env->error, _BrokerInformationRequestType,
> AXIS2_FAILURE);
>
>
> adb_BrokerInformationRequestType_reset_RequestParameters(_BrokerInformationRequestType,
> env);
>
> adb_BrokerInformationRequestType_reset_PortfolioNumber(_BrokerInformationRequestType,
> env);
>
>
> if(_BrokerInformationRequestType)
> {
> AXIS2_FREE(env->allocator, _BrokerInformationRequestType);
> _BrokerInformationRequestType = NULL;
> }
> return AXIS2_SUCCESS;
> }
>
>
>
>
> axis2_status_t AXIS2_CALL
> adb_BrokerInformationRequestType_deserialize(
> adb_BrokerInformationRequestType_t*
> _BrokerInformationRequestType,
> const axutil_env_t *env,
> axiom_node_t **dp_parent,
> axis2_bool_t *dp_i

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 available.

This works as this.

add this to your services.xml after the ServiceClass parameter

[path]

In here specify the absolute path to your wsdl, in the place of [path].
You might be able to specify a relative path, but, the absolute path is
guaranteed to work. (ex:-
/home/user/axis2/c/deploy/services/Calculator/Calculator.wsdl)

The lib.so is rather a Linux convention. And, when trying to
locate your service, the engine will try to find the dll by that name.

Regards,
Senaka

> 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 libCalculator comes in action,
> does AXIS2C always use lib.so file?
>
> Thanks,
> Rahil
>
>
> -Original Message-
> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2008 6:50 PM
> To: axis-c-user@ws.apache.org
> Subject: RE: FW: Problem with Service deployed
>
> 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, in addition to copying the service.xml and the .so, you will also
> have to copy the wsdl and save it by the name, .wsdl (ex:-
> Calculator.wsdl). The META-INF folder is something related to Axis2/Java.
> It doesn't apply to you.
>
> Regards,
> Senaka
>
>> 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 to call the
>> service? for that I setup according to the User-guide.
>> 1-Copied service.xml from $AXIS2C_HOME/services/Calculator/resources
>> directory to $AXIS2C_HOME/services/Calculator and 2-similarly copied
>> libCalculator.so
>>
>> Still I am unable to access the wsdl via internet explorer. I read in
>> some
>> article that wsdl file should be placed in some META-INF folder, but I
>> am
>> not sure about exact setup of files, can you please explain me that what
>> should be the folder structure. My current structure is like
>>
>>  $AXIS2C_HOME/services/Calculator/Calculator.wsdl
>>/resources/
>>/services.xml
>>/src/
>>
>>  $AXIS2C_HOME/services/Calculator/resources/services.xml
>>
>>  $AXIS2C_HOME/services/Calculator/src/axis2_skel_Calculator.h
>>
>> /axis2_skel_Calculator.c
>>/adb_subResponse.h
>>/adb_subResponse.c
>>/adb_sub.h
>>/adb_sub.c
>>/adb_mulResponse.h
>>/adb_mulResponse.c
>>/adb_mul.h
>>/adb_mul.c
>>/adb_divResponse.h
>>/adb_divResponse.c
>>/adb_div.h
>>/adb_div.c
>>/adb_addResponse.h
>>/adb_addResponse.c
>>/adb_add.h
>>/adb_add.c
>>/build.sh
>>
>> /axis2_svc_skel_Calculator.c
>>/libCalculator.so
>>/Calculator.wsdl
>> Thanks & regards,
>> Rahil
>>
>>
>> -Original Message-
>> From: Senaka Fernando [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 12, 2008 5:06 PM
>> To: axis-c-user@ws.apache.org
>> Subject: RE: FW: Problem with Service deployed
>>
>> 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 

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(env->allocator,start_input_str);


   text_value_2_temp =
axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
   if (text_value_2_temp)
   {
   axutil_stream_write(stream, env,
text_value_2_temp, axutil_strlen(text_value_2_temp));
   AXIS2_FREE(env->allocator, text_value_2_temp);
   }
   else
   {
   axutil_stream_write(stream, env,
text_value_2, axutil_strlen(text_value_2));

   }

   axutil_stream_write(stream, env,
end_input_str, end_input_str_len);
##AXIS2_FREE(env->allocator,end_input_str);



Thanks
Dimuthu


On Wed, Mar 12, 2008 at 10:27 PM, Senaka Fernando <[EMAIL PROTECTED]> wrote:
> 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_t) *
>  (5 + ADB_DEFAULT_DIGIT_LIMIT * 2 +
>  axutil_strlen("RequestParameters")));
>
>  Regards,
>  Senaka
>
>
>
>  > Hi Dimuthu,
>  >
>  > You are correct, I was mistakenly using the jars in the Axis2 1.3 instead
>  > of
>  > the nightly snapshot zip.
>  >
>  > with the new code, I get a "debug assertion failed" error.
>  > (_ASSERTE(_CrtIsValidHeapPointer(pUserData));  from DBGHEAP.C)
>  >
>  > Is there some change needed in construction of the request parameters with
>  > the new version of the ADB stubs?
>  >
>  >
>  > Carl
>  >
>  >
>  > The generated file is:
>  > (## is added to line causing the problem)
>  >
>  >
>  > /**
>  >  * adb_BrokerInformationRequestType.c
>  >  *
>  >  * This file was auto-generated from WSDL
>  >  * by the Apache Axis2/C version: SNAPSHOT  Built on : Mar 10,
>  > 2008
>  > (08:35:52 GMT+00:00)
>  >  */
>  >
>  > #include "adb_BrokerInformationRequestType.h"
>  >
>  > /*
>  >  * This type was generated from the piece of schema that
>  > had
>  >  * name = BrokerInformationRequestType
>  >  * Namespace URI =
>  > 
> http://www.axa.ca/BrokerInformationService/1.0/types/BrokerInformationRequestTypes
>  >  * Namespace Prefix = ns2
>  >  */
>  >
>  >
>  >
>  > struct adb_BrokerInformationRequestType
>  > {
>  > adb_ParametersType_t* property_RequestParameters;
>  >
>  >
>  > axis2_bool_t is_valid_RequestParameters;
>  >
>  >
>  > axis2_char_t* property_PortfolioNumber;
>  >
>  >
>  > axis2_bool_t is_valid_PortfolioNumber;
>  >
>  >
>  >
>  > };
>  >
>  >
>  >/* Private Function prototypes
>  > /
>  >
>  >
>  > axis2_status_t AXIS2_CALL
>  > adb_BrokerInformationRequestType_set_RequestParameters_nil(
>  > adb_BrokerInformationRequestType_t*
>  > _BrokerInformationRequestType,
>  > const axutil_env_t *env);
>  >
>  >
>  > axis2_status_t AXIS2_CALL
>  > adb_BrokerInformationRequestType_set_PortfolioNumber_nil(
>  > adb_BrokerInformationRequestType_t*
>  > _BrokerInformationRequestType,
>  > const axutil_env_t *env);
>  >
>  >
>  >
>  >/* Function Implmentations
>  > /
>  > adb_BrokerInformationRequestType_t* AXIS2_CALL
>  > adb_BrokerInformationRequestType_create(
>  > const axutil_env_t *env)
>  > {
>  > adb_BrokerInformationRequestType_t
>  > *_BrokerInformationRequestType = NULL;
>  >
>  > AXIS2_ENV_CHECK(env, NULL);
>  >
>  > _BrokerInformationRequestType =
>  > (adb_BrokerInformationRequestType_t *) AXIS2_MALLOC(env->
>  > allocator, sizeof(adb_BrokerInformationRequestType_t));
>  >
>  > if(NULL == _BrokerInformationRequestType)
>  > {
>  > AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY,
>  > AXIS2_FAILURE);
>  > return NULL;
>  > }
>  >
>  > memset(_BrokerInformationRequestType, 0,
>  > sizeof(adb_BrokerInformationRequestType_t));
>  >
>  > _Bro

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
(axis2_stub_t).

If i use only one thread to call the service (toward one destination)
there's no problem.
When i use the 2 thread (one for each destination) there's the crash
problem.

Do u think is this the problem?
Thanks,
simone



Dimuthu Gamage wrote:

  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 the old version can you re- try with the
nightly build?

Thanks
Dimuthu

On Wed, Mar 12, 2008 at 8:35 PM, Simone Bordin
<[EMAIL PROTECTED]> wrote:
  
  
 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 or corruption (out):
0x08f03c18 ***
 === Backtrace: =
 /lib/libc.so.6[0x8d98b6]
 /lib/libc.so.6(cfree+0x90)[0x8dce00]
 /usr/lib/libxml2.so.2(xmlCharEncCloseFunc+0x4f)[0xbebbaf]
 /usr/lib/libxml2.so.2(xmlFreeParserInputBuffer+0x3f)[0xc16fdf]
 /usr/lib/libxml2.so.2(xmlFreeInputStream+0x78)[0xbf0008]
 /usr/lib/libxml2.so.2(xmlFreeParserCtxt+0x28)[0xbf0058]
 /usr/lib/libxml2.so.2(xmlFreeTextReader+0x1ee)[0xc9bdae]

/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_parser.so.0(axis2_libxml2_reader_wrapper_free+0x5e)[0xfd6acb]

/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_parser.so.0(axiom_xml_reader_free+0x1d)[0xfd5a87]

/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_stax_builder_free+0xb6)[0x9e7847]

/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_soap_builder_free+0xb1)[0x9f161f]

/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_soap_envelope_free+0x95)[0x9f080a]

/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_msg_ctx_free+0x14a)[0x5367ad]

/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_op_ctx_free+0x83)[0x53b2d6]

/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_op_client_free+0x50)[0x541e9f]

/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_svc_client_create_op_client+0xd0)[0x545699]

/opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_svc_client_send_receive_with_op_qname+0x541)[0x544f52]

/home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1(axis2_stub_op_AppFoniaService_CallState+0x1f2)[0x1397a8]
 ./com_fonia[0x8060577]
 ./com_fonia[0x8061f61]
 ./com_fonia[0x80638fe]

/home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/libcommonSp01/lib/libcommonSp01.so.1(_ZN4sp016Thread7svc_runEPv+0x30)[0x3a6410]
 /lib/libpthread.so.0[0x86143b]
 /lib/libc.so.6(clone+0x5e)[0x940fde]
 === Memory map: 
 0011-0012 r-xp  08:05 689825
/home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/esFnResolve/ws_es_client/lib/libws_es_client.so.1.0.0
 0012-00121000 rw-p 0001 08:05 689825
/home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/esFnResolve/ws_es_client/lib/libws_es_client.so.1.0.0
 00121000-00134000 r-xp  08:05 720406
/home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/lib_diva_wrapper/lib/libDivaWrapper.so.1.0.0
 00134000-00135000 rw-p 00012000 08:05 720406
/home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/lib_diva_wrapper/lib/libDivaWrapper.so.1.0.0
 00135000-00144000 r-xp  08:05 720455
/home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1.0.0
 00144000-00145000 rw-p e000 08:05 720455
/home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1.0.0
 00145000-0015 r-xp  08:05 6352357
/lib/libgcc_s-4.1.2-20070626.so.1
 0015-00151000 rw-p a000 08:05 6352357
/lib/libgcc_s-4.1.2-20070626.so.1
 00151000-00163000 r-xp  08:05 2449523/usr/lib/libz.so.1.2.3
 00163000-00164000 rw-p 00011000 08:05 2449523/usr/lib/libz.so.1.2.3
 00164000-00167000 r-xp  08:05 6352358/lib/libuuid.so.1.2
 00167000-00168000 rw-p 2000 08:05 6352358/lib/libuuid.so.1.2
 00168000-001c5000 r-xp  08:05 2449588
/usr/lib/libsqlite3.so.0.8.6
 001c5000-001c7000 rw-p 0005c000 08:05 2449588
/usr/lib/libsqlite3.so.0.8.6
 001c7000-001e6000 r-xp  08:05 6352356/lib/libexpat.so.0.5.0
 001e6000-001e8000 rw-p 0001e000 08:05 6352356/lib/libexpat.so.0.5.0
 001e8000-001f r-xp  08:05 2449530
/usr/lib/libXrender.so.1.3.0
 001f-001f1000 rw-p 7000 08:05 2449530
/usr/lib/libXrender.so.1.3.0
 001f1000-0020 r-xp  08:05 2449534/usr/lib/libXext.

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,
>
>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(env->allocator,start_input_str);
>
>
>text_value_2_temp =
> axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
>if (text_value_2_temp)
>{
>axutil_stream_write(stream, env,
> text_value_2_temp, axutil_strlen(text_value_2_temp));
>AXIS2_FREE(env->allocator,
> text_value_2_temp);
>}
>else
>{
>axutil_stream_write(stream, env,
> text_value_2, axutil_strlen(text_value_2));
>
>}
>
>axutil_stream_write(stream, env,
> end_input_str, end_input_str_len);
> ##AXIS2_FREE(env->allocator,end_input_str);
>
>
>
> Thanks
> Dimuthu
>
>
> On Wed, Mar 12, 2008 at 10:27 PM, Senaka Fernando <[EMAIL PROTECTED]> wrote:
>> 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_t) *
>>  (5 + ADB_DEFAULT_DIGIT_LIMIT * 2 +
>>  axutil_strlen("RequestParameters")));
>>
>>  Regards,
>>  Senaka
>>
>>
>>
>>  > Hi Dimuthu,
>>  >
>>  > You are correct, I was mistakenly using the jars in the Axis2 1.3
>> instead
>>  > of
>>  > the nightly snapshot zip.
>>  >
>>  > with the new code, I get a "debug assertion failed" error.
>>  > (_ASSERTE(_CrtIsValidHeapPointer(pUserData));  from
>> DBGHEAP.C)
>>  >
>>  > Is there some change needed in construction of the request parameters
>> with
>>  > the new version of the ADB stubs?
>>  >
>>  >
>>  > Carl
>>  >
>>  >
>>  > The generated file is:
>>  > (## is added to line causing the problem)
>>  >
>>  >
>>  > /**
>>  >  * adb_BrokerInformationRequestType.c
>>  >  *
>>  >  * This file was auto-generated from WSDL
>>  >  * by the Apache Axis2/C version: SNAPSHOT  Built on : Mar
>> 10,
>>  > 2008
>>  > (08:35:52 GMT+00:00)
>>  >  */
>>  >
>>  > #include "adb_BrokerInformationRequestType.h"
>>  >
>>  > /*
>>  >  * This type was generated from the piece of schema
>> that
>>  > had
>>  >  * name = BrokerInformationRequestType
>>  >  * Namespace URI =
>>  > 
>> http://www.axa.ca/BrokerInformationService/1.0/types/BrokerInformationRequestTypes
>>  >  * Namespace Prefix = ns2
>>  >  */
>>  >
>>  >
>>  >
>>  > struct adb_BrokerInformationRequestType
>>  > {
>>  > adb_ParametersType_t* property_RequestParameters;
>>  >
>>  >
>>  > axis2_bool_t is_valid_RequestParameters;
>>  >
>>  >
>>  > axis2_char_t* property_PortfolioNumber;
>>  >
>>  >
>>  > axis2_bool_t is_valid_PortfolioNumber;
>>  >
>>  >
>>  >
>>  > };
>>  >
>>  >
>>  >/* Private Function prototypes
>>  > /
>>  >
>>  >
>>  > axis2_status_t AXIS2_CALL
>>  > 
>> adb_BrokerInformationRequestType_set_RequestParameters_nil(
>>  > adb_BrokerInformationRequestType_t*
>>  > _BrokerInformationRequestType,
>>  > const axutil_env_t *env);
>>  >
>>  >
>>  > axis2_status_t AXIS2_CALL
>>  > adb_BrokerInformationRequestType_set_PortfolioNumber_nil(
>>  > adb_BrokerInformationRequestType_t*
>>  > _BrokerInformationRequestType,
>>  > const axutil_env_t *env);
>>  >
>>  >
>>  >
>>  >/* Function Implmentations
>>  > /
>>  > adb_BrokerInformationRequestType_t* AXIS2_CALL
>>  > adb_BrokerInformationRequestType_create(
>>  > const axutil_env_t *env)
>>  > {
>>  > adb_BrokerInformationRequestType_t
>>  > *_BrokerInformationRequestType = NULL;
>>  >
>>  > AXIS2_ENV_CHECK(env, NULL);
>>  >
>>  > _BrokerInformationRequestType =
>>  > (adb_BrokerInformationRequestType_t *) AXIS2_MALLOC(env->
>>  > allocator,
>> sizeof(adb_BrokerInform

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
when building from the source.

Thanks
Dimuthu



On Wed, Mar 12, 2008 at 11:29 PM, Simone Bordin
<[EMAIL PROTECTED]> wrote:
>
>  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
> (axis2_stub_t).
>
>  If i use only one thread to call the service (toward one destination)
> there's no problem.
>  When i use the 2 thread (one for each destination) there's the crash
> problem.
>
>  Do u think is this the problem?
>  Thanks,
>  simone
>
>
>
>  Dimuthu Gamage wrote:
>
>  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 the old version can you re- try with the
> nightly build?
>
> Thanks
> Dimuthu
>
> On Wed, Mar 12, 2008 at 8:35 PM, Simone Bordin
> <[EMAIL PROTECTED]> wrote:
>
>
>  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 or corruption (out):
> 0x08f03c18 ***
>  === Backtrace: =
>  /lib/libc.so.6[0x8d98b6]
>  /lib/libc.so.6(cfree+0x90)[0x8dce00]
>  /usr/lib/libxml2.so.2(xmlCharEncCloseFunc+0x4f)[0xbebbaf]
>  /usr/lib/libxml2.so.2(xmlFreeParserInputBuffer+0x3f)[0xc16fdf]
>  /usr/lib/libxml2.so.2(xmlFreeInputStream+0x78)[0xbf0008]
>  /usr/lib/libxml2.so.2(xmlFreeParserCtxt+0x28)[0xbf0058]
>  /usr/lib/libxml2.so.2(xmlFreeTextReader+0x1ee)[0xc9bdae]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_parser.so.0(axis2_libxml2_reader_wrapper_free+0x5e)[0xfd6acb]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_parser.so.0(axiom_xml_reader_free+0x1d)[0xfd5a87]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_stax_builder_free+0xb6)[0x9e7847]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_soap_builder_free+0xb1)[0x9f161f]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_axiom.so.0(axiom_soap_envelope_free+0x95)[0x9f080a]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_msg_ctx_free+0x14a)[0x5367ad]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_op_ctx_free+0x83)[0x53b2d6]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_op_client_free+0x50)[0x541e9f]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_svc_client_create_op_client+0xd0)[0x545699]
>
> /opt/axis2c-bin-1.3.0-linux/lib/libaxis2_engine.so.0(axis2_svc_client_send_receive_with_op_qname+0x541)[0x544f52]
>
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1(axis2_stub_op_AppFoniaService_CallState+0x1f2)[0x1397a8]
>  ./com_fonia[0x8060577]
>  ./com_fonia[0x8061f61]
>  ./com_fonia[0x80638fe]
>
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/libcommonSp01/lib/libcommonSp01.so.1(_ZN4sp016Thread7svc_runEPv+0x30)[0x3a6410]
>  /lib/libpthread.so.0[0x86143b]
>  /lib/libc.so.6(clone+0x5e)[0x940fde]
>  === Memory map: 
>  0011-0012 r-xp  08:05 689825
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/esFnResolve/ws_es_client/lib/libws_es_client.so.1.0.0
>  0012-00121000 rw-p 0001 08:05 689825
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/libcommon/esFnResolve/ws_es_client/lib/libws_es_client.so.1.0.0
>  00121000-00134000 r-xp  08:05 720406
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/lib_diva_wrapper/lib/libDivaWrapper.so.1.0.0
>  00134000-00135000 rw-p 00012000 08:05 720406
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/lib_diva_wrapper/lib/libDivaWrapper.so.1.0.0
>  00135000-00144000 r-xp  08:05 720455
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1.0.0
>  00144000-00145000 rw-p e000 08:05 720455
> /home/gsmr_mgw/RFI/MGW_COM/current/COM/COM_FONIA/ws_app_client/lib/libfonia_ws_app_client.so.1.0.0
>  00145000-0015 r-xp  08:05 6352357
> /lib/libgcc_s-4.1.2-20070626.so.1
>  0015-00151000 rw-p a000 08:05 6352357
> /lib/libgcc_s-4.1.2-20070626.so.1
>  00151000-00163000 r-xp  08:05 2449523 /usr/lib/libz.so.1.2.3
>  00163000-00164000 rw-p 00011000 08:05 2449523 /usr/lib/libz.so.1.2.3
>  00164000-00167000 r-xp  08:05 6352358 /lib

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


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_CampaignService_getCampaignStats( axis2_stub_t *stub,
const axutil_env_t *env,

adb_getCampaignStats_t* _getCampaignStats,
useragent _useragent,
password _password,
email _email,
clientEmail
_clientEmail,

clientCustomerId _clientCustomerId,
developerToken
_developerToken,

applicationToken _applicationToken);

but then it doesn't generate the "useragent", "password", "email",
etc. types (which are just complexTypes with a single restriction: to
be a string, if you look at the WSDL). This of course causes the
compiler to complain that the types aren't defined. I've generated the
code with ADB support, and the "adb_useragent_t" is in fact defined,
but not "useragent" (same goes for other types).

I'm using the latest nightly build (as of 12 Mar 19:00 UTC) with the
standard options sugegsted in the documentation (-d adb -u).

Can anyone provide any tips?

Thanks,
Sérgio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]