You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Subra A Narayanan <as...@gmail.com> on 2007/08/06 23:21:03 UTC

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

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)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
"><soapenv:Header></soapenv:Header><soapenv:Body><RemoveFile><Owner>jordan</Owner><FileName>
sircharles.gif
</FileName><FileID>1234</FileID></RemoveFile></soapenv:Body></soapenv:Envelope>

==> while this fails (formatted SOAP msg with line breaks)

<env:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
  <env:Header></env:Header>
  <env:Body>
    <n1:RemoveFile xmlns:n1="http://www.xyz.com/2007/07/">
      <n1:Owner>harry</n1:Owner>
      <n1:FileName>del1.jpg</n1:FileName>
      <n1:FileID>checksum</n1:FileID>
    </n1:RemoveFile>
  </env:Body>
</env:Envelope>

==>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) Checking for
operation using SOAP message body's first child's local name : RemoveFile
[Mon Aug  6 13:59:22 2007] [debug] soap_body_disp.c(226) Operation found
using SOAP message body's first child's local name
[Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler
addressing_based_dispatcher within the phase Dispatch
[Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler
soap_action_based_dispatcher within the phase Dispatch
[Mon Aug  6 13:59:22 2007] [debug] engine.c(571) Invoking phase PostDispatch
[Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler
dispatch_post_conditions_evaluator within the phase PostDispatch
[Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler
context_handler within the phase PostDispatch
[Mon Aug  6 13:59:22 2007] [debug] class_loader.c(135) Object loaded
successfully
[Mon Aug  6 13:59:23 2007] [info]  Starting log with log level 5


==> so basically the server restarts after the "class_loader.c(135) Object
loaded successfully" step.

The client code was written in Ruby. I dont know how I can tell Ruby not to
insert line breaks. But have you guys seen this issue before? Do you know a
solution to this problem?

TIA
Subra

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

Posted by Subra A Narayanan <as...@gmail.com>.
Hello all,

After I sent my first mail this afternoon, I thought of starting fresh and
building axis2/c from source again. So I deleted the axis2/c source
directory from my  file system, created a new directory, checked out latest
axis2/c code from svn and try building again. this time by axis2/c build
itself failed (as comapred to the samples build fail earlier) with a similar
error. Here it is

............................
............................
...........................
checking for sys/appleapiopts.h... no
checking whether to build libxml2 xml parser library... configure: line
21319: syntax error near unexpected token `PARSER,'
configure: line 21319: `    PKG_CHECK_MODULES(PARSER, libxml-2.0)'


looks like it doesn't like something about PKG_CHECK_MODULES.

Any help is greatly appreciated.


Subra


On 8/7/07, Subra A Narayanan <as...@gmail.com> 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.
>
>
> 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 <ma...@wso2.com> 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 <sa...@wso2.com> 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)
> > >         >
> > >         > <soapenv:Envelope xmlns:soapenv="
> > >         >
> > >         http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><RemoveFile><Owner>jordan</Owner><FileName>
> > sircharles.gif</FileName><FileID>1234</FileID></RemoveFile></soapenv:Body></soapenv:Envelope>
> >
> > >         >
> > >         >
> > >         > ==> while this fails (formatted SOAP msg with line breaks)
> > >         >
> > >         > <env:Envelope xmlns:xsi="
> > >         http://www.w3.org/2001/XMLSchema-instance"
> > >         > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
> > >         xmlns:xsd="
> > >         > http://www.w3.org/2001/XMLSchema">
> > >         >   <env:Header></env:Header>
> > >         >   <env:Body>
> > >         >     <n1:RemoveFile xmlns:n1=" http://www.xyz.com/2007/07/ ">
> > >         >       <n1:Owner>harry</n1:Owner>
> > >         >       <n1:FileName>del1.jpg </n1:FileName>
> > >         >       <n1:FileID>checksum</n1:FileID>
> > >         >     </n1:RemoveFile>
> > >         >   </env:Body>
> > >         > </env:Envelope>
> > >         >
> > >         > ==>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)
> > >         Checking for
> > >         > operation using SOAP message body's first child's local
> > >         name : RemoveFile
> > >         > [Mon Aug  6 13:59:22 2007] [debug] soap_body_disp.c(226)
> > >         Operation
> > >         > found using SOAP message body's first child's local name
> > >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> > >         handler
> > >         > addressing_based_dispatcher within the phase Dispatch
> > >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> > >         handler
> > >         > soap_action_based_dispatcher within the phase Dispatch
> > >         > [Mon Aug  6 13:59:22 2007] [debug] engine.c(571) Invoking
> > >         phase
> > >         > PostDispatch
> > >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> > >         handler
> > >         > dispatch_post_conditions_evaluator within the phase
> > >         PostDispatch
> > >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> > >         handler
> > >         > context_handler within the phase PostDispatch
> > >         > [Mon Aug  6 13:59:22 2007] [debug] class_loader.c(135)
> > >         Object loaded
> > >         > successfully
> > >         > [Mon Aug  6 13:59:23 2007] [info]  Starting log with log
> > >         level 5
> > >         >
> > >         >
> > >         > ==> so basically the server restarts after the
> > >         "class_loader.c(135)
> > >         > Object loaded successfully" step.
> > >         >
> > >         > The client code was written in Ruby. I dont know how I can
> > >         tell Ruby
> > >         > not to insert line breaks. But have you guys seen this issue
> > >         before?
> > >         > Do you know a solution to this problem?
> > >         >
> > >         > TIA
> > >         > Subra
> > >
> > >
> > >         --
> > >         Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank -
> > >         Web Services Developers' Portal)
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > >         To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> > >         For additional commands, e-mail:
> > >         axis-c-user-help@ws.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-c-user-help@ws.apache.org
> >
> >
>

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

Posted by Sanjaya Ratnaweera <sa...@wso2.com>.
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.sh 
> script 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,

     What's the operating system you're working on? You have to install 
pkg-config to run PKG_CHECK_MODULES. Try installing it?

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.19 which was installed in /usr/bin directory.
>
> Thanks for the help!
>
> Subra
>
>
> On 8/7/07, *Manjula Peiris* <manjula@wso2.com 
> <ma...@wso2.com>> 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 <samisa@wso2.com
>     <ma...@wso2.com>> 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)
>     >         >
>     >         > <soapenv:Envelope xmlns:soapenv="
>     >         >
>     >        
>     http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><RemoveFile><Owner>jordan</Owner><FileName>
>     sircharles.gif</FileName><FileID>1234</FileID></RemoveFile></soapenv:Body></soapenv:Envelope>
>
>     >         >
>     >         >
>     >         > ==> while this fails (formatted SOAP msg with line breaks)
>     >         >
>     >         > <env:Envelope xmlns:xsi="
>     >         http://www.w3.org/2001/XMLSchema-instance"
>     >         > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
>     >         xmlns:xsd="
>     >         > http://www.w3.org/2001/XMLSchema">
>     >         >   <env:Header></env:Header>
>     >         >   <env:Body>
>     >         >     <n1:RemoveFile xmlns:n1="
>     http://www.xyz.com/2007/07/ ">
>     >         >       <n1:Owner>harry</n1:Owner>
>     >         >       <n1:FileName>del1.jpg </n1:FileName>
>     >         >       <n1:FileID>checksum</n1:FileID>
>     >         >     </n1:RemoveFile>
>     >         >   </env:Body>
>     >         > </env:Envelope>
>     >         >
>     >         > ==>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)
>     >         Checking for
>     >         > operation using SOAP message body's first child's local
>     >         name : RemoveFile
>     >         > [Mon Aug  6 13:59:22 2007] [debug] soap_body_disp.c(226)
>     >         Operation
>     >         > found using SOAP message body's first child's local name
>     >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>     >         handler
>     >         > addressing_based_dispatcher within the phase Dispatch
>     >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>     >         handler
>     >         > soap_action_based_dispatcher within the phase Dispatch
>     >         > [Mon Aug  6 13:59:22 2007] [debug] engine.c(571) Invoking
>     >         phase
>     >         > PostDispatch
>     >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>     >         handler
>     >         > dispatch_post_conditions_evaluator within the phase
>     >         PostDispatch
>     >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>     >         handler
>     >         > context_handler within the phase PostDispatch
>     >         > [Mon Aug  6 13:59:22 2007] [debug] class_loader.c(135)
>     >         Object loaded
>     >         > successfully
>     >         > [Mon Aug  6 13:59:23 2007] [info]  Starting log with log
>     >         level 5
>     >         >
>     >         >
>     >         > ==> so basically the server restarts after the
>     >         "class_loader.c(135)
>     >         > Object loaded successfully" step.
>     >         >
>     >         > The client code was written in Ruby. I dont know how I can
>     >         tell Ruby
>     >         > not to insert line breaks. But have you guys seen this
>     issue
>     >         before?
>     >         > Do you know a solution to this problem?
>     >         >
>     >         > TIA
>     >         > Subra
>     >
>     >
>     >         --
>     >         Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank -
>     >         Web Services Developers' Portal)
>     >
>     >
>     >        
>     ---------------------------------------------------------------------
>     >         To unsubscribe, e-mail:
>     axis-c-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     >         For additional commands, e-mail:
>     >         axis-c-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>     >
>     >
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-c-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>


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

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Subra A Narayanan wrote:
> Samisa,
>
> Good news. This morning, I built and installed Axis2/C from latest 
> source code on a different machine than I was using earlier. Now soap 
> requests with line breaks works fine.
Good news!
>
> Thanks a lot everyone for looking in to the issue!
You are always welcome :)

Samisa...


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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


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

Posted by Subra A Narayanan <as...@gmail.com>.
Samisa,

Good news. This morning, I built and installed Axis2/C from latest source
code on a different machine than I was using earlier. Now soap requests with
line breaks works fine.

I am thinking the earlier machine that I was using had some environment
issues.

Thanks a lot everyone for looking in to the issue!

Subra

On 8/13/07, Samisa Abeysinghe <sa...@wso2.com> wrote:
>
> Subra A Narayanan wrote:
> > Samisa,
> >
> > Its still the same case. Request with line breaks fails, without the
> > line breaks works fine.
> > I started the simple axis server with gdb. I didnt get a backtrace at
> > all. See the text below
> hmmm. Looking at the gdb output, I cannot think of any possible reason
> why it is crashing.
>
> Would it be possible for you to send me the exact payload send by the
> client, including http headers (you can capture this using tcpmon Java
> tool)
> and send it to the list, so that I could try and replay it with the
> server and see what is going wrong on my machine.
>
> Also, I hope that you are using the latest svn head, if not, i plan to
> post an RC1 of 1.1 release today, so that you can try with that.
>
> Thanks,
> Samisa...
>
> >
> >
> > [root@localhost bin]# gdb ./axis2_http_server
> > GNU gdb 6.3
> > Copyright 2004 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License, and
> > you are
> > welcome to change it and/or distribute copies of it under certain
> > conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show warranty" for
> > details.
> > This GDB was configured as "x86_64-unknown-linux-gnu"...Using host
> > libthread_db library "/lib64/tls/libthread_db.so.1".
> >
> > (gdb) run -p 80
> > Starting program: /usr/local/axis2c/bin/axis2_http_server -p 80
> > AXIS2C_HOME is not set - log is written to . dir
> > Started Simple Axis2 HTTP Server ...
> >
> > Program terminated with signal SIGTRAP, Trace/breakpoint trap.
> > The program no longer exists.
> > (gdb) bt
> > No stack.
> > (gdb)
> >
> >
> >
> > This is my dev set up:
> >
> > 64 bit Linux
> > Axis2/C - server
> > Ruby Client
> >
> >
> > Subra
> >
> >
> >
> >
> > On 8/12/07, * Subra A Narayanan* <aswathsn@gmail.com
> > <ma...@gmail.com>> wrote:
> >
> >     Thanks Samisa......I will run axis http server with gdb and send u
> >     the trace.
> >
> >
> >
> >
> >     On 8/9/07, *Samisa Abeysinghe * < samisa@wso2.com
> >     <ma...@wso2.com>> wrote:
> >
> >         Samisa Abeysinghe wrote:
> >         > Subra A Narayanan wrote:
> >         >> Hey Samisa,
> >         >>
> >         >> It still doesn't work. Anything else that I can do to solve
> this
> >         >> problem?
> >         > I tested it on my machine, with newlines in the payload, and
> >         it works
> >         > with the latest svn. I tested with a PHP client and echo
> >         service.
> >         > You seem to have tested with SOAP 1.1 in place. I am not sure
> >         if this
> >         > is related to SOAP version. I tested with SOAP 1.2, I will
> >         test with
> >         > SOAP 1.1 and let you know.
> >         I tested with SOAP 1.1 as well, and it seems to work fine with
> >         the
> >         latest svn when there are newlines in the payload.
> >         To help solve the problem, what you can do is to run Axis2/C
> >         server with
> >         gdb and send us the back trace of the crash point.
> >
> >         Thanks,
> >         Samisa...
> >
> >         --
> >         Samisa Abeysinghe : <a
> >         href="http://wso2.org/projects/wsf/c">WSO2 Web Services
> >         Framework/C - Open source C library for providing and
> >         consuming Web services</a>
> >
> >
> >
> ---------------------------------------------------------------------
> >         To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> >         <ma...@ws.apache.org>
> >         For additional commands, e-mail:
> >         axis-c-user-help@ws.apache.org
> >         <ma...@ws.apache.org>
> >
> >
> >
>
>
> --
> Samisa Abeysinghe : WSO2 WSF/C
> "
> http://wso2.org/projects/wsf/c?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework/C&nbsp;-&nbsp;Open&nbsp;source&nbsp;C&nbsp;library&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services
> "
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

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

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Subra A Narayanan wrote:
> Samisa,
>
> Its still the same case. Request with line breaks fails, without the 
> line breaks works fine.
> I started the simple axis server with gdb. I didnt get a backtrace at 
> all. See the text below
hmmm. Looking at the gdb output, I cannot think of any possible reason 
why it is crashing.

Would it be possible for you to send me the exact payload send by the 
client, including http headers (you can capture this using tcpmon Java tool)
and send it to the list, so that I could try and replay it with the 
server and see what is going wrong on my machine.

Also, I hope that you are using the latest svn head, if not, i plan to 
post an RC1 of 1.1 release today, so that you can try with that.

Thanks,
Samisa...

>
>
> [root@localhost bin]# gdb ./axis2_http_server
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and 
> you are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for 
> details.
> This GDB was configured as "x86_64-unknown-linux-gnu"...Using host 
> libthread_db library "/lib64/tls/libthread_db.so.1".
>
> (gdb) run -p 80
> Starting program: /usr/local/axis2c/bin/axis2_http_server -p 80
> AXIS2C_HOME is not set - log is written to . dir
> Started Simple Axis2 HTTP Server ...
>
> Program terminated with signal SIGTRAP, Trace/breakpoint trap.
> The program no longer exists.
> (gdb) bt
> No stack.
> (gdb)
>
>
>
> This is my dev set up:
>
> 64 bit Linux
> Axis2/C - server
> Ruby Client
>
>
> Subra
>
>
>
>
> On 8/12/07, * Subra A Narayanan* <aswathsn@gmail.com 
> <ma...@gmail.com>> wrote:
>
>     Thanks Samisa......I will run axis http server with gdb and send u
>     the trace.
>
>
>
>
>     On 8/9/07, *Samisa Abeysinghe * < samisa@wso2.com
>     <ma...@wso2.com>> wrote:
>
>         Samisa Abeysinghe wrote:
>         > Subra A Narayanan wrote:
>         >> Hey Samisa,
>         >>
>         >> It still doesn't work. Anything else that I can do to solve this
>         >> problem?
>         > I tested it on my machine, with newlines in the payload, and
>         it works
>         > with the latest svn. I tested with a PHP client and echo
>         service.
>         > You seem to have tested with SOAP 1.1 in place. I am not sure
>         if this
>         > is related to SOAP version. I tested with SOAP 1.2, I will
>         test with
>         > SOAP 1.1 and let you know.
>         I tested with SOAP 1.1 as well, and it seems to work fine with
>         the
>         latest svn when there are newlines in the payload.
>         To help solve the problem, what you can do is to run Axis2/C
>         server with
>         gdb and send us the back trace of the crash point.
>
>         Thanks,
>         Samisa...
>
>         -- 
>         Samisa Abeysinghe : <a
>         href="http://wso2.org/projects/wsf/c">WSO2 Web Services
>         Framework/C - Open source C library for providing and
>         consuming Web services</a>
>
>
>         ---------------------------------------------------------------------
>         To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>         <ma...@ws.apache.org>
>         For additional commands, e-mail:
>         axis-c-user-help@ws.apache.org
>         <ma...@ws.apache.org>
>
>
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


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

Posted by Subra A Narayanan <as...@gmail.com>.
Samisa,

Its still the same case. Request with line breaks fails, without the line
breaks works fine.
I started the simple axis server with gdb. I didnt get a backtrace at all.
See the text below


[root@localhost bin]# gdb ./axis2_http_server
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host
libthread_db library "/lib64/tls/libthread_db.so.1".

(gdb) run -p 80
Starting program: /usr/local/axis2c/bin/axis2_http_server -p 80
AXIS2C_HOME is not set - log is written to . dir
Started Simple Axis2 HTTP Server ...

Program terminated with signal SIGTRAP, Trace/breakpoint trap.
The program no longer exists.
(gdb) bt
No stack.
(gdb)



This is my dev set up:

64 bit Linux
Axis2/C - server
Ruby Client


Subra




On 8/12/07, Subra A Narayanan <as...@gmail.com> wrote:
>
> Thanks Samisa......I will run axis http server with gdb and send u the
> trace.
>
>
>
> On 8/9/07, Samisa Abeysinghe < samisa@wso2.com> wrote:
> >
> > Samisa Abeysinghe wrote:
> > > Subra A Narayanan wrote:
> > >> Hey Samisa,
> > >>
> > >> It still doesn't work. Anything else that I can do to solve this
> > >> problem?
> > > I tested it on my machine, with newlines in the payload, and it works
> > > with the latest svn. I tested with a PHP client and echo service.
> > > You seem to have tested with SOAP 1.1 in place. I am not sure if this
> > > is related to SOAP version. I tested with SOAP 1.2, I will test with
> > > SOAP 1.1 and let you know.
> > I tested with SOAP 1.1 as well, and it seems to work fine with the
> > latest svn when there are newlines in the payload.
> > To help solve the problem, what you can do is to run Axis2/C server with
> > gdb and send us the back trace of the crash point.
> >
> > Thanks,
> > Samisa...
> >
> > --
> > Samisa Abeysinghe : <a href="http://wso2.org/projects/wsf/c">WSO2 Web
> > Services Framework/C - Open source C library for providing and consuming Web
> > services</a>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-c-user-help@ws.apache.org
> >
> >
>

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

Posted by Subra A Narayanan <as...@gmail.com>.
Thanks Samisa......I will run axis http server with gdb and send u the
trace.



On 8/9/07, Samisa Abeysinghe <sa...@wso2.com> wrote:
>
> Samisa Abeysinghe wrote:
> > Subra A Narayanan wrote:
> >> Hey Samisa,
> >>
> >> It still doesn't work. Anything else that I can do to solve this
> >> problem?
> > I tested it on my machine, with newlines in the payload, and it works
> > with the latest svn. I tested with a PHP client and echo service.
> > You seem to have tested with SOAP 1.1 in place. I am not sure if this
> > is related to SOAP version. I tested with SOAP 1.2, I will test with
> > SOAP 1.1 and let you know.
> I tested with SOAP 1.1 as well, and it seems to work fine with the
> latest svn when there are newlines in the payload.
> To help solve the problem, what you can do is to run Axis2/C server with
> gdb and send us the back trace of the crash point.
>
> Thanks,
> Samisa...
>
> --
> Samisa Abeysinghe : <a href="http://wso2.org/projects/wsf/c">WSO2 Web
> Services Framework/C - Open source C library for providing and consuming Web
> services</a>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

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

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Samisa Abeysinghe wrote:
> Subra A Narayanan wrote:
>> Hey Samisa,
>>
>> It still doesn't work. Anything else that I can do to solve this 
>> problem?
> I tested it on my machine, with newlines in the payload, and it works 
> with the latest svn. I tested with a PHP client and echo service.
> You seem to have tested with SOAP 1.1 in place. I am not sure if this 
> is related to SOAP version. I tested with SOAP 1.2, I will test with 
> SOAP 1.1 and let you know.
I tested with SOAP 1.1 as well, and it seems to work fine with the 
latest svn when there are newlines in the payload.
To help solve the problem, what you can do is to run Axis2/C server with 
gdb and send us the back trace of the crash point.

Thanks,
Samisa...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


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

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Subra A Narayanan wrote:
> Hey Samisa,
>
> It still doesn't work. Anything else that I can do to solve this problem?
I tested it on my machine, with newlines in the payload, and it works 
with the latest svn. I tested with a PHP client and echo service.
You seem to have tested with SOAP 1.1 in place. I am not sure if this is 
related to SOAP version. I tested with SOAP 1.2, I will test with SOAP 
1.1 and let you know.

Thanks,
Samisa...
>
> Initially I was using Ruby to write the client. But that doesn't work 
> because Ruby inserts line breaks in the SOAP msg. So for the time 
> being I am using Axis2/C for client code as well. But the consumers of 
> my web service might write client code in any language/platform and 
> that will break my server code.
>
>
> Thanks!
> Subra
>
> On 8/8/07, *Samisa Abeysinghe* <samisa@wso2.com 
> <ma...@wso2.com>> wrote:
>
>     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* < samisa@wso2.com
>     <ma...@wso2.com>
>     > <mailto:samisa@wso2.com <ma...@wso2.com>>> 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:
>     axis-c-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     >     <mailto:axis-c-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>>
>     >     For additional commands, e-mail:
>     axis-c-user-help@ws.apache.org <ma...@ws.apache.org>
>     >     <mailto:axis-c-user-help@ws.apache.org
>     <ma...@ws.apache.org>>
>     >
>     >
>
>
>     --
>     Samisa Abeysinghe : <a href="http://wso2.org/projects/wsf/c">WSO2
>     Web Services Framework/C - Open source C library for providing and
>     consuming Web services</a>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-c-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


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

Posted by Dumindu Pallewela <du...@wso2.com>.
Hi Subra,

What did the server log file say?

 From your previous mails, I can find that you have built the 
mod_axis2.so from source. If you can re-build the module with debug 
enabled and send the stack trace at the segfault, that too would help us 
identify the cause of this issue.

Regards,
Dumindu.

Subra A Narayanan wrote:
> Hey Samisa,
> 
> It still doesn't work. Anything else that I can do to solve this problem?
> 
> Initially I was using Ruby to write the client. But that doesn't work 
> because Ruby inserts line breaks in the SOAP msg. So for the time being 
> I am using Axis2/C for client code as well. But the consumers of my web 
> service might write client code in any language/platform and that will 
> break my server code.
> 
> 
> Thanks!
> Subra

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


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

Posted by Subra A Narayanan <as...@gmail.com>.
Hey Samisa,

It still doesn't work. Anything else that I can do to solve this problem?

Initially I was using Ruby to write the client. But that doesn't work
because Ruby inserts line breaks in the SOAP msg. So for the time being I am
using Axis2/C for client code as well. But the consumers of my web service
might write client code in any language/platform and that will break my
server code.


Thanks!
Subra

On 8/8/07, Samisa Abeysinghe <sa...@wso2.com> wrote:
>
> 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* <samisa@wso2.com
> > <ma...@wso2.com>> 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: axis-c-user-unsubscribe@ws.apache.org
> >     <ma...@ws.apache.org>
> >     For additional commands, e-mail: axis-c-user-help@ws.apache.org
> >     <ma...@ws.apache.org>
> >
> >
>
>
> --
> Samisa Abeysinghe : <a href="http://wso2.org/projects/wsf/c">WSO2 Web
> Services Framework/C - Open source C library for providing and consuming Web
> services</a>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

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

Posted by Samisa Abeysinghe <sa...@wso2.com>.
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* <samisa@wso2.com 
> <ma...@wso2.com>> 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: axis-c-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-c-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


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

Posted by Subra A Narayanan <as...@gmail.com>.
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 <sa...@wso2.com> 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: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

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

Posted by Samisa Abeysinghe <sa...@wso2.com>.
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: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


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

Posted by Subra A Narayanan <as...@gmail.com>.
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 <sa...@wso2.com> 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 <ma...@wso2.com> 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 <sa...@wso2.com> 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)
> > >         >
> > >         > <soapenv:Envelope xmlns:soapenv="
> > >         >
> > >         http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><RemoveFile><Owner>jordan</Owner><FileName>
> > sircharles.gif</FileName><FileID>1234</FileID></RemoveFile></soapenv:Body></soapenv:Envelope>
> >
> > >         >
> > >         >
> > >         > ==> while this fails (formatted SOAP msg with line breaks)
> > >         >
> > >         > <env:Envelope xmlns:xsi="
> > >         http://www.w3.org/2001/XMLSchema-instance"
> > >         > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
> > >         xmlns:xsd="
> > >         > http://www.w3.org/2001/XMLSchema">
> > >         >   <env:Header></env:Header>
> > >         >   <env:Body>
> > >         >     <n1:RemoveFile xmlns:n1=" http://www.xyz.com/2007/07/ ">
> > >         >       <n1:Owner>harry</n1:Owner>
> > >         >       <n1:FileName>del1.jpg </n1:FileName>
> > >         >       <n1:FileID>checksum</n1:FileID>
> > >         >     </n1:RemoveFile>
> > >         >   </env:Body>
> > >         > </env:Envelope>
> > >         >
> > >         > ==>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)
> > >         Checking for
> > >         > operation using SOAP message body's first child's local
> > >         name : RemoveFile
> > >         > [Mon Aug  6 13:59:22 2007] [debug] soap_body_disp.c(226)
> > >         Operation
> > >         > found using SOAP message body's first child's local name
> > >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> > >         handler
> > >         > addressing_based_dispatcher within the phase Dispatch
> > >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> > >         handler
> > >         > soap_action_based_dispatcher within the phase Dispatch
> > >         > [Mon Aug  6 13:59:22 2007] [debug] engine.c(571) Invoking
> > >         phase
> > >         > PostDispatch
> > >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> > >         handler
> > >         > dispatch_post_conditions_evaluator within the phase
> > >         PostDispatch
> > >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> > >         handler
> > >         > context_handler within the phase PostDispatch
> > >         > [Mon Aug  6 13:59:22 2007] [debug] class_loader.c(135)
> > >         Object loaded
> > >         > successfully
> > >         > [Mon Aug  6 13:59:23 2007] [info]  Starting log with log
> > >         level 5
> > >         >
> > >         >
> > >         > ==> so basically the server restarts after the
> > >         "class_loader.c(135)
> > >         > Object loaded successfully" step.
> > >         >
> > >         > The client code was written in Ruby. I dont know how I can
> > >         tell Ruby
> > >         > not to insert line breaks. But have you guys seen this issue
> > >         before?
> > >         > Do you know a solution to this problem?
> > >         >
> > >         > TIA
> > >         > Subra
> > >
> > >
> > >         --
> > >         Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank -
> > >         Web Services Developers' Portal)
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > >         To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> > >         For additional commands, e-mail:
> > >         axis-c-user-help@ws.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-c-user-help@ws.apache.org
> >
> >
>
>

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

Posted by Sanjaya Ratnaweera <sa...@wso2.com>.
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.sh 
> script 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.19 which was installed in /usr/bin directory.
>
> Thanks for the help!
>
> Subra
>
>
> On 8/7/07, *Manjula Peiris* <manjula@wso2.com 
> <ma...@wso2.com>> 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 <samisa@wso2.com
>     <ma...@wso2.com>> 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)
>     >         >
>     >         > <soapenv:Envelope xmlns:soapenv="
>     >         >
>     >        
>     http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><RemoveFile><Owner>jordan</Owner><FileName>
>     sircharles.gif</FileName><FileID>1234</FileID></RemoveFile></soapenv:Body></soapenv:Envelope>
>
>     >         >
>     >         >
>     >         > ==> while this fails (formatted SOAP msg with line breaks)
>     >         >
>     >         > <env:Envelope xmlns:xsi="
>     >         http://www.w3.org/2001/XMLSchema-instance"
>     >         > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
>     >         xmlns:xsd="
>     >         > http://www.w3.org/2001/XMLSchema">
>     >         >   <env:Header></env:Header>
>     >         >   <env:Body>
>     >         >     <n1:RemoveFile xmlns:n1="
>     http://www.xyz.com/2007/07/ ">
>     >         >       <n1:Owner>harry</n1:Owner>
>     >         >       <n1:FileName>del1.jpg </n1:FileName>
>     >         >       <n1:FileID>checksum</n1:FileID>
>     >         >     </n1:RemoveFile>
>     >         >   </env:Body>
>     >         > </env:Envelope>
>     >         >
>     >         > ==>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)
>     >         Checking for
>     >         > operation using SOAP message body's first child's local
>     >         name : RemoveFile
>     >         > [Mon Aug  6 13:59:22 2007] [debug] soap_body_disp.c(226)
>     >         Operation
>     >         > found using SOAP message body's first child's local name
>     >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>     >         handler
>     >         > addressing_based_dispatcher within the phase Dispatch
>     >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>     >         handler
>     >         > soap_action_based_dispatcher within the phase Dispatch
>     >         > [Mon Aug  6 13:59:22 2007] [debug] engine.c(571) Invoking
>     >         phase
>     >         > PostDispatch
>     >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>     >         handler
>     >         > dispatch_post_conditions_evaluator within the phase
>     >         PostDispatch
>     >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>     >         handler
>     >         > context_handler within the phase PostDispatch
>     >         > [Mon Aug  6 13:59:22 2007] [debug] class_loader.c(135)
>     >         Object loaded
>     >         > successfully
>     >         > [Mon Aug  6 13:59:23 2007] [info]  Starting log with log
>     >         level 5
>     >         >
>     >         >
>     >         > ==> so basically the server restarts after the
>     >         "class_loader.c(135)
>     >         > Object loaded successfully" step.
>     >         >
>     >         > The client code was written in Ruby. I dont know how I can
>     >         tell Ruby
>     >         > not to insert line breaks. But have you guys seen this
>     issue
>     >         before?
>     >         > Do you know a solution to this problem?
>     >         >
>     >         > TIA
>     >         > Subra
>     >
>     >
>     >         --
>     >         Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank -
>     >         Web Services Developers' Portal)
>     >
>     >
>     >        
>     ---------------------------------------------------------------------
>     >         To unsubscribe, e-mail:
>     axis-c-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     >         For additional commands, e-mail:
>     >         axis-c-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>     >
>     >
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-c-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>


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

Posted by Subra A Narayanan <as...@gmail.com>.
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.sh script
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.


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.19 which
was installed in /usr/bin directory.

Thanks for the help!

Subra


On 8/7/07, Manjula Peiris <ma...@wso2.com> 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 <sa...@wso2.com> 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)
> >         >
> >         > <soapenv:Envelope xmlns:soapenv="
> >         >
> >         http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><RemoveFile><Owner>jordan</Owner><FileName>
> sircharles.gif
> </FileName><FileID>1234</FileID></RemoveFile></soapenv:Body></soapenv:Envelope>
> >         >
> >         >
> >         > ==> while this fails (formatted SOAP msg with line breaks)
> >         >
> >         > <env:Envelope xmlns:xsi="
> >         http://www.w3.org/2001/XMLSchema-instance"
> >         > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
> >         xmlns:xsd="
> >         > http://www.w3.org/2001/XMLSchema">
> >         >   <env:Header></env:Header>
> >         >   <env:Body>
> >         >     <n1:RemoveFile xmlns:n1="http://www.xyz.com/2007/07/ ">
> >         >       <n1:Owner>harry</n1:Owner>
> >         >       <n1:FileName>del1.jpg </n1:FileName>
> >         >       <n1:FileID>checksum</n1:FileID>
> >         >     </n1:RemoveFile>
> >         >   </env:Body>
> >         > </env:Envelope>
> >         >
> >         > ==>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)
> >         Checking for
> >         > operation using SOAP message body's first child's local
> >         name : RemoveFile
> >         > [Mon Aug  6 13:59:22 2007] [debug] soap_body_disp.c(226)
> >         Operation
> >         > found using SOAP message body's first child's local name
> >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> >         handler
> >         > addressing_based_dispatcher within the phase Dispatch
> >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> >         handler
> >         > soap_action_based_dispatcher within the phase Dispatch
> >         > [Mon Aug  6 13:59:22 2007] [debug] engine.c(571) Invoking
> >         phase
> >         > PostDispatch
> >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> >         handler
> >         > dispatch_post_conditions_evaluator within the phase
> >         PostDispatch
> >         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
> >         handler
> >         > context_handler within the phase PostDispatch
> >         > [Mon Aug  6 13:59:22 2007] [debug] class_loader.c(135)
> >         Object loaded
> >         > successfully
> >         > [Mon Aug  6 13:59:23 2007] [info]  Starting log with log
> >         level 5
> >         >
> >         >
> >         > ==> so basically the server restarts after the
> >         "class_loader.c(135)
> >         > Object loaded successfully" step.
> >         >
> >         > The client code was written in Ruby. I dont know how I can
> >         tell Ruby
> >         > not to insert line breaks. But have you guys seen this issue
> >         before?
> >         > Do you know a solution to this problem?
> >         >
> >         > TIA
> >         > Subra
> >
> >
> >         --
> >         Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank -
> >         Web Services Developers' Portal)
> >
> >
> >
> ---------------------------------------------------------------------
> >         To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> >         For additional commands, e-mail:
> >         axis-c-user-help@ws.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

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

Posted by Manjula Peiris <ma...@wso2.com>.
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 <sa...@wso2.com> 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)
>         >
>         > <soapenv:Envelope xmlns:soapenv=" 
>         >
>         http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><RemoveFile><Owner>jordan</Owner><FileName> sircharles.gif</FileName><FileID>1234</FileID></RemoveFile></soapenv:Body></soapenv:Envelope>
>         >
>         >
>         > ==> while this fails (formatted SOAP msg with line breaks)
>         > 
>         > <env:Envelope xmlns:xsi="
>         http://www.w3.org/2001/XMLSchema-instance"
>         > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
>         xmlns:xsd="
>         > http://www.w3.org/2001/XMLSchema">
>         >   <env:Header></env:Header>
>         >   <env:Body> 
>         >     <n1:RemoveFile xmlns:n1="http://www.xyz.com/2007/07/ ">
>         >       <n1:Owner>harry</n1:Owner>
>         >       <n1:FileName>del1.jpg </n1:FileName>
>         >       <n1:FileID>checksum</n1:FileID>
>         >     </n1:RemoveFile>
>         >   </env:Body>
>         > </env:Envelope>
>         >
>         > ==>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)
>         Checking for
>         > operation using SOAP message body's first child's local
>         name : RemoveFile
>         > [Mon Aug  6 13:59:22 2007] [debug] soap_body_disp.c(226)
>         Operation 
>         > found using SOAP message body's first child's local name
>         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>         handler
>         > addressing_based_dispatcher within the phase Dispatch
>         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>         handler
>         > soap_action_based_dispatcher within the phase Dispatch
>         > [Mon Aug  6 13:59:22 2007] [debug] engine.c(571) Invoking
>         phase
>         > PostDispatch
>         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>         handler
>         > dispatch_post_conditions_evaluator within the phase
>         PostDispatch
>         > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the
>         handler
>         > context_handler within the phase PostDispatch 
>         > [Mon Aug  6 13:59:22 2007] [debug] class_loader.c(135)
>         Object loaded
>         > successfully
>         > [Mon Aug  6 13:59:23 2007] [info]  Starting log with log
>         level 5
>         >
>         >
>         > ==> so basically the server restarts after the
>         "class_loader.c(135) 
>         > Object loaded successfully" step.
>         >
>         > The client code was written in Ruby. I dont know how I can
>         tell Ruby
>         > not to insert line breaks. But have you guys seen this issue
>         before?
>         > Do you know a solution to this problem? 
>         >
>         > TIA
>         > Subra
>         
>         
>         --
>         Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank -
>         Web Services Developers' Portal)
>         
>         
>         --------------------------------------------------------------------- 
>         To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>         For additional commands, e-mail:
>         axis-c-user-help@ws.apache.org
>         
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


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

Posted by Subra A Narayanan <as...@gmail.com>.
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 <sa...@wso2.com> 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)
> >
> > <soapenv:Envelope xmlns:soapenv="
> > http://schemas.xmlsoap.org/soap/envelope/
> "><soapenv:Header></soapenv:Header><soapenv:Body><RemoveFile><Owner>jordan</Owner><FileName>
> sircharles.gif
> </FileName><FileID>1234</FileID></RemoveFile></soapenv:Body></soapenv:Envelope>
> >
> >
> > ==> while this fails (formatted SOAP msg with line breaks)
> >
> > <env:Envelope xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
> > http://www.w3.org/2001/XMLSchema">
> >   <env:Header></env:Header>
> >   <env:Body>
> >     <n1:RemoveFile xmlns:n1="http://www.xyz.com/2007/07/ ">
> >       <n1:Owner>harry</n1:Owner>
> >       <n1:FileName>del1.jpg</n1:FileName>
> >       <n1:FileID>checksum</n1:FileID>
> >     </n1:RemoveFile>
> >   </env:Body>
> > </env:Envelope>
> >
> > ==>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) Checking for
> > operation using SOAP message body's first child's local name :
> RemoveFile
> > [Mon Aug  6 13:59:22 2007] [debug] soap_body_disp.c(226) Operation
> > found using SOAP message body's first child's local name
> > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler
> > addressing_based_dispatcher within the phase Dispatch
> > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler
> > soap_action_based_dispatcher within the phase Dispatch
> > [Mon Aug  6 13:59:22 2007] [debug] engine.c(571) Invoking phase
> > PostDispatch
> > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler
> > dispatch_post_conditions_evaluator within the phase PostDispatch
> > [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler
> > context_handler within the phase PostDispatch
> > [Mon Aug  6 13:59:22 2007] [debug] class_loader.c(135) Object loaded
> > successfully
> > [Mon Aug  6 13:59:23 2007] [info]  Starting log with log level 5
> >
> >
> > ==> so basically the server restarts after the "class_loader.c(135)
> > Object loaded successfully" step.
> >
> > The client code was written in Ruby. I dont know how I can tell Ruby
> > not to insert line breaks. But have you guys seen this issue before?
> > Do you know a solution to this problem?
> >
> > TIA
> > Subra
>
>
> --
> Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services
> Developers' Portal)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

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

Posted by Samisa Abeysinghe <sa...@wso2.com>.
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)
>
> <soapenv:Envelope xmlns:soapenv=" 
> http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><RemoveFile><Owner>jordan</Owner><FileName>sircharles.gif</FileName><FileID>1234</FileID></RemoveFile></soapenv:Body></soapenv:Envelope> 
>
>
> ==> while this fails (formatted SOAP msg with line breaks)
>
> <env:Envelope xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" 
> xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" 
> http://www.w3.org/2001/XMLSchema">
>   <env:Header></env:Header>
>   <env:Body>
>     <n1:RemoveFile xmlns:n1="http://www.xyz.com/2007/07/ ">
>       <n1:Owner>harry</n1:Owner>
>       <n1:FileName>del1.jpg</n1:FileName>
>       <n1:FileID>checksum</n1:FileID>
>     </n1:RemoveFile>
>   </env:Body>
> </env:Envelope>
>
> ==>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) Checking for 
> operation using SOAP message body's first child's local name : RemoveFile
> [Mon Aug  6 13:59:22 2007] [debug] soap_body_disp.c(226) Operation 
> found using SOAP message body's first child's local name
> [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler 
> addressing_based_dispatcher within the phase Dispatch
> [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler 
> soap_action_based_dispatcher within the phase Dispatch
> [Mon Aug  6 13:59:22 2007] [debug] engine.c(571) Invoking phase 
> PostDispatch
> [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler 
> dispatch_post_conditions_evaluator within the phase PostDispatch
> [Mon Aug  6 13:59:22 2007] [debug] phase.c(195) Invoke the handler 
> context_handler within the phase PostDispatch
> [Mon Aug  6 13:59:22 2007] [debug] class_loader.c(135) Object loaded 
> successfully
> [Mon Aug  6 13:59:23 2007] [info]  Starting log with log level 5
>
>
> ==> so basically the server restarts after the "class_loader.c(135) 
> Object loaded successfully" step.
>
> The client code was written in Ruby. I dont know how I can tell Ruby 
> not to insert line breaks. But have you guys seen this issue before? 
> Do you know a solution to this problem?
>
> TIA
> Subra


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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org