Re: |AXIS2] [AXIS2C] c-stubs: memset in axis2__create missing

2007-08-08 Thread Samisa Abeysinghe
Fixed in 
modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl


Samisa...

Dr. Florian Steinborn wrote:

Hi,

I checked out the source and looked into it and think the problem 
could be solved by feeding the source


modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceSkeleton.xsl

with the desired line. Unfortunately I do not understand the make 
hierarchy of Axis2 - not yet :-) Therefore I could not test my 
suggestion.


Greetings,
Flori

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





--
Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services 
Developers' Portal)


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



Using AXIS2C from scripting environment

2007-08-08 Thread Yuvaraj Athur Raghuvir
Hello,

I am trying to use AXIS2C from a scripting environment. I get a access
violation at  axis2_engine_send::AXIS2_TRANSPORT_SENDER_INVOKE that causes
my environment to crash.

To detect the problem, I tried to build the axutil dll on VC++ express
edition only to find that the dll I create is generating error much
earlier!!

Any clues?

Regards,
Yuva


Re: [Axis2/C]: SOAP request with line breaks fails

2007-08-08 Thread Subra A Narayanan
Hey Manjula,

I got the latest source code from svn and built it. I am still getting an
error when there are line breaks in the incoming SOAP request. I did an svn
update and this is what it tells me:

[devwsserver:~/axis2c-svn/c]$ svn update
At revision 563913.

Was the bug fixed in the above mentioned revision or some other revision.

The server just hangs up when the request is received.

Sanjaya,

I installed the latest version of pkg-config and that solved my build
issues. Thanks!!

Subra


On 8/8/07, Sanjaya Ratnaweera <[EMAIL PROTECTED]> wrote:
>
>  Subra A Narayanan wrote:
>
> Hey Manjula,
>
> I checked out the latest source code from svn and built it.
>
> But when I try to build the samples, I get an error. Since there is no
> configue.sh file in the samples directory, I had to run the build.shscript 
> file. It dies half way through. This is the error I get
>
> ...
> ...
> checking for string.h... (cached) yes
> checking for an ANSI C-conforming const... yes
> ./configure: line 20467: syntax error near unexpected token `LIBXML2,'
> ./configure: line 20467: `PKG_CHECK_MODULES(LIBXML2, libxml-2.0)'
> make: *** No targets specified and no makefile found.  Stop.
> make: *** No rule to make target `install'.  Stop.
>
> Hi Subra,
>
> Can you please send your output to a file when you run build sh and
> attach it.
>
> ./build.sh > out 2>&1
>
> Because these details are not enough to identify the problem :-( Anyway
> you need following packages to build axis2/c
>
>   Autoconf 2.59 or higher
>   Automake 1.9 or higher
>   Aclocal 1.9 or higher
>   libtool 1.9 or higher
>   libxml2-dev
>   zlib1g-dev
>   pkg-config
>
> Thanks
>
>  ~sanjaya
>
>
>
>
> I would like to mention that when I tried building axis2/c from source, it
> complained about pkg-config version should be atleast 0.20 and I had 0.19.
> So I downloaded, built and installed pkg-config 0.22 version. It was
> installed in the /usr/local/bin directory as compared to version 0.19which 
> was installed in /usr/bin directory.
>
> Thanks for the help!
>
> Subra
>
>
> On 8/7/07, Manjula Peiris <[EMAIL PROTECTED]> wrote:
> >
> > Hi subra,
> >
> > This is a bug in Axis2/C 1.0. But it has been fixed after 1.0 and in the
> > current svn trunk it is working.
> >
> > -Manjula.
> >
> > On Mon, 2007-08-06 at 22:57 -0400, Subra A Narayanan wrote:
> > > Hey Samisa,
> > >
> > > I am using Axis2/C 1.0, source distribution on Linux. I compiled the
> > > source with the apache http module.
> > >
> > > Thanks for your follow-up abt my earlier issue. I will respond to that
> > > email separately so that someone following that thread will also
> > > benefit.
> > >
> > > Thanks again for ur quick response!
> > >
> > > Subra
> > >
> > > On 8/6/07, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote:
> > > What version of Axis2/C you are using? We had a problem like
> > > this, but
> > > if I remember right we have fixed it.
> > >
> > > BTW, have you been able to solve the service compilation
> > > problem that
> > > you discussed in the other thread?
> > >
> > > Samisa...
> > >
> > >
> > > Subra A Narayanan wrote:
> > > > Hello everyone,
> > > >
> > > > I found an interesting issue today and was wondering if
> > > someone else
> > > > has seen tha same issue before. I am using Axis2/C on Linux.
> > > >
> > > > I have a web service running. When the client tries calling
> > > the web
> > > > service using SOAP, the web service works if there are no
> > > line breaks
> > > > in the SOAP request. If there are any line breaks, the
> > > server just
> > > > crashes. So for eg
> > > >
> > > > ==> This works (SOAP msg with no line breaks)
> > > >
> > > > http://schemas.xmlsoap.org/soap/envelope/";>jordan
> > sircharles.gif1234
> >
> > > >
> > > >
> > > > ==> while this fails (formatted SOAP msg with line breaks)
> > > >
> > > > http://www.w3.org/2001/XMLSchema-instance";
> > > > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";
> > > xmlns:xsd="
> > > > http://www.w3.org/2001/XMLSchema";>
> > > >   
> > > >   
> > > > http://www.xyz.com/2007/07/ ">
> > > >   harry
> > > >   del1.jpg 
> > > >   checksum
> > > > 
> > > >   
> > > > 
> > > >
> > > > ==>This is what I see in the axis2.log file
> > > >
> > > > [Mon Aug  6 13:59:22 2007] [debug] engine.c(571) Invoking
> > > phase Dispatch
> > > > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> > > handler
> > > > soap_message_body_based_dispatcher within the phase
> > > Dispatch
> > > > [Mon Aug  6 13:59:22 2007] [debug] soap_body_disp.c(217)
> > >

Unable to run client code

2007-08-08 Thread Subra A Narayanan
Hello folks,

I am trying to write a client using Axis2/C to connect to a Axis2/C web
service. These are the steps I followed

1. Created a wsdl file by hand for my web service.

2. Used the WSDL2C tool to generate the client stubs. Here is the command I
used

java org.apache.axis2.wsdl.WSDL2C -D
org.apache.adb.properties=/org/apache/axis2/schema/c-schema-compile.properties-uri
myservice.wsdl -l c -d none

3. Added code to the generated .c file

4. Compiled the client code using the following command

gcc -o hello_clnt -I /usr/local/axis2c/include/axis2-1.1/ -L
/usr/local/axis2c/lib/ -l axutil -l axis2_engine axis2_stub_myservice.c

5. Tried running the client and got this error

./hello_clnt: error while loading shared libraries: libaxutil.so.0: cannot
open shared object file: No such file or directory


What am I doing wrong? Am I missing any compiler options?

Thank you everyone for the help!


Subra


Re: Unable to run client code

2007-08-08 Thread Samisa Abeysinghe

Subra A Narayanan wrote:

Hello folks,

I am trying to write a client using Axis2/C to connect to a Axis2/C 
web service. These are the steps I followed


1. Created a wsdl file by hand for my web service.

2. Used the WSDL2C tool to generate the client stubs. Here is the 
command I used


java org.apache.axis2.wsdl.WSDL2C -D 
org.apache.adb.properties=/org/apache/axis2/schema/c-schema-compile.properties 
-uri myservice.wsdl -l c -d none


3. Added code to the generated .c file

4. Compiled the client code using the following command

gcc -o hello_clnt -I /usr/local/axis2c/include/axis2-1.1/ -L 
/usr/local/axis2c/lib/ -l axutil -l axis2_engine axis2_stub_myservice.c


5. Tried running the client and got this error

./hello_clnt: error while loading shared libraries: libaxutil.so.0: 
cannot open shared object file: No such file or directory
You probably need to add your Axis2/C lib folder to LD_LIBRARY_PATH 
environment variable.

e.g. If you have installed Axis2/C to /usr/local/axis2c
then you will find the .so files in /usr/local/axis2c/lib, hence you can 
use:

export LD_LIBRARY_PATH=/usr/local/axis2c/lib:$LD_LIBRARY_PATH

HTH

Samisa...




What am I doing wrong? Am I missing any compiler options?

Thank you everyone for the help!


Subra 



--
Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services 
Developers' Portal)


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



Re: [Axis2/C]: SOAP request with line breaks fails

2007-08-08 Thread Samisa Abeysinghe

Subra A Narayanan wrote:

Hey Manjula,

I got the latest source code from svn and built it. I am still getting 
an error when there are line breaks in the incoming SOAP request. I 
did an svn update and this is what it tells me:


[devwsserver:~/axis2c-svn/c]$ svn update
At revision 563913.

This revision should be fine, the problem is solved before this revision.

Just try to clean up the whole system (make distclean) and build from 
scratch and try.


Samisa...

--
Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services 
Developers' Portal)


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



Re: [Axis2/C]: SOAP request with line breaks fails

2007-08-08 Thread Subra A Narayanan
Samisa,

Where should I run the distclean from? I mean which folder?

My original installation was in /usr/local/axis2c. I deleted the whole
axis2c folder and built everything from scratch today. Do you think I still
need to run distclean and will that solve my problem?

Pls let me know.

Thanks so much.



On 8/8/07, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote:
>
> Subra A Narayanan wrote:
> > Hey Manjula,
> >
> > I got the latest source code from svn and built it. I am still getting
> > an error when there are line breaks in the incoming SOAP request. I
> > did an svn update and this is what it tells me:
> >
> > [devwsserver:~/axis2c-svn/c]$ svn update
> > At revision 563913.
> This revision should be fine, the problem is solved before this revision.
>
> Just try to clean up the whole system (make distclean) and build from
> scratch and try.
>
> Samisa...
>
> --
> Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services
> Developers' Portal)
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [Axis2/C]: SOAP request with line breaks fails

2007-08-08 Thread Samisa Abeysinghe

Subra A Narayanan wrote:

Samisa,

Where should I run the distclean from? I mean which folder?

My original installation was in /usr/local/axis2c. I deleted the whole 
axis2c folder and built everything from scratch today. Do you think I 
still need to run distclean and will that solve my problem?
Nop, if you built everything from scratch, then you do not need to 
distclean.
Usually, this kind of problems happen due to old libraries on your 
library path. If you have deleted all your all libraries, then it should 
work fine.


Samisa...



Pls let me know.

Thanks so much.



On 8/8/07, *Samisa Abeysinghe* <[EMAIL PROTECTED] 
> wrote:


Subra A Narayanan wrote:
> Hey Manjula,
>
> I got the latest source code from svn and built it. I am still
getting
> an error when there are line breaks in the incoming SOAP request. I
> did an svn update and this is what it tells me:
>
> [devwsserver:~/axis2c-svn/c]$ svn update
> At revision 563913.
This revision should be fine, the problem is solved before this
revision.

Just try to clean up the whole system (make distclean) and build from
scratch and try.

Samisa...

--
Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web
Services Developers' Portal)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]

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






--
Samisa Abeysinghe : http://wso2.org/projects/wsf/c";>WSO2 Web Services 
Framework/C - Open source C library for providing and consuming Web services


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



Re: Using AXIS2C from scripting environment

2007-08-08 Thread Dinesh Premalal
Yuvaraj,
"Yuvaraj Athur Raghuvir" <[EMAIL PROTECTED]> writes:

> Hello,
>
> I am trying to use AXIS2C from a scripting environment. I get a access
> violation at  axis2_engine_send::AXIS2_TRANSPORT_SENDER_INVOKE that causes my
> environment to crash.
What does your log file says?

thanks,
Dinesh

-- 
Dinesh Premalal
http://xydinesh.wordpress.com/
GPG ID : A255955C
GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C

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



Re: Using AXIS2C from scripting environment

2007-08-08 Thread Nandika Jayawardana
Hi Yuva,

There are few posibilities that might produce this error.
Try putting
axiom_xml_reader_init ();  function at the start of  your code.
This function initializes the parser for  threaded environment.

Thanks
Nandika

On 8/8/07, Yuvaraj Athur Raghuvir <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I am trying to use AXIS2C from a scripting environment. I get a access
> violation at  axis2_engine_send::AXIS2_TRANSPORT_SENDER_INVOKE that causes
> my environment to crash.
>
> To detect the problem, I tried to build the axutil dll on VC++ express
> edition only to find that the dll I create is generating error much
> earlier!!
>
> Any clues?
>
> Regards,
> Yuva
>
>


-- 
[EMAIL PROTECTED]
WSO2 Inc: http://www.wso2.com


Re: Using AXIS2C from scripting environment

2007-08-08 Thread Yuvaraj Athur Raghuvir
Hello Dinesh,

This is what the log file says:
>>
Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-
src-1.0.0\axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231)
module name is:addressing
[Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-
src-1.0.0\axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c(129) Add
handler AddressingOutHandler to phase MessageOut
[Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-
src-1.0.0\axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231)
module name is:addressing
[Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-
src-1.0.0\axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231)
module name is:addressing
[Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-
src-1.0.0\axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c(129) Add
handler AddressingOutHandler to phase MessageOut
[Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c-
src-1.0.0\axis2c-src-1.0.0\src\core\engine\engine.c(572) Invoking phase
MessageOut
[Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c-
src-1.0.0\axis2c-src-1.0.0\src\core\engine\phase.c(195) Invoke the handler
AddressingOutHandler within the phase MessageOut
<<

Regards,
Yuva


On 8/9/07, Dinesh Premalal <[EMAIL PROTECTED]> wrote:
>
> Yuvaraj,
> "Yuvaraj Athur Raghuvir" <[EMAIL PROTECTED]> writes:
>
> > Hello,
> >
> > I am trying to use AXIS2C from a scripting environment. I get a access
> > violation at  axis2_engine_send::AXIS2_TRANSPORT_SENDER_INVOKE that
> causes my
> > environment to crash.
> What does your log file says?
>
> thanks,
> Dinesh
>
> --
> Dinesh Premalal
> http://xydinesh.wordpress.com/
> GPG ID : A255955C
> GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Using AXIS2C from scripting environment

2007-08-08 Thread Yuvaraj Athur Raghuvir
Hello Nandika,

Is axiom_xml_reader_init (); an exported function? I do not find it any of
the lib files.

In this case, how should I link it? I get a linker error due to this call.

Regards,
Yuva


On 8/9/07, Nandika Jayawardana <[EMAIL PROTECTED]> wrote:
>
> Hi Yuva,
>
> There are few posibilities that might produce this error.
> Try putting
> axiom_xml_reader_init ();  function at the start of  your code.
> This function initializes the parser for  threaded environment.
>
> Thanks
> Nandika
>
> On 8/8/07, Yuvaraj Athur Raghuvir <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> >
> > I am trying to use AXIS2C from a scripting environment. I get a access
> > violation at  axis2_engine_send::AXIS2_TRANSPORT_SENDER_INVOKE that causes
> > my environment to crash.
> >
> > To detect the problem, I tried to build the axutil dll on VC++ express
> > edition only to find that the dll I create is generating error much
> > earlier!!
> >
> > Any clues?
> >
> > Regards,
> > Yuva
> >
> >
>
>
> --
> [EMAIL PROTECTED]
> WSO2 Inc: http://www.wso2.com


Re: Using AXIS2C from scripting environment

2007-08-08 Thread Dinesh Premalal
Hi Yuvaraj,

"Yuvaraj Athur Raghuvir" <[EMAIL PROTECTED]> writes:

> Hello Dinesh,
>
> This is what the log file says:
>>>
> Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\
> axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231) module name
> is:addressing
> [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\
> axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c(129) Add handler
> AddressingOutHandler to phase MessageOut
> [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\
> axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231) module name
> is:addressing
> [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\
> axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c (231) module name
> is:addressing
> [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\
> axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c(129) Add handler
> AddressingOutHandler to phase MessageOut
> [Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\
> axis2c-src-1.0.0\src\core\engine\engine.c(572) Invoking phase MessageOut
> [Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\
> axis2c-src-1.0.0\src\core\engine\phase.c (195) Invoke the handler
> AddressingOutHandler within the phase MessageOut
It is quite difficult to me to understand this piece of logfile
only. Could you please attach your logfile. If possible , could you
please give us some rough idea about your use case. It will help us to
locate possible errors.

thanks,
Dinesh

-- 
Dinesh Premalal
http://xydinesh.wordpress.com/
GPG ID : A255955C
GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C

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