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

2007-08-07 Thread Sanjaya Ratnaweera

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* <[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)
> 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_acti

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

2007-08-07 Thread Sanjaya Ratnaweera

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* <[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)
> 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) I

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

2007-08-07 Thread Subra A Narayanan
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 <[EMAIL PROTECTED]> 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 <[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)
> > > Checking for
> > > > operation using SOAP message body's first child's local
> > > name : RemoveFile
> > > > [Mon Aug  6 13:

[WSDL2C] Bug in C - ServerStubs - Unexpected Subelement

2007-08-07 Thread Dr. Florian Steinborn

Hi folks,

I can hardly believe that we are the only ones to find out that the  
serverstubs generated by the latest nightly builds are not usable any  
more. But this is our conclusion after spending several hours on the  
problem and comparing newly generated code with older versions. I would be  
willing to raise a JIRA but first I would like to get your opinion on this.


The problem seems to be that the responses sent by the webserver in some  
cases are not formatted correctly. The result is an "unexpected element"  
fault caught by the client. I am sure you can easily regenerate the  
problem. Here is what we tried:


Consider a webservice that returns a structure of different (simple) data  
types (returning single simple types makes no problem). In our case it was  
something called "Dat" that can be understood by the follwing wsdl:







type="x






We have a webservice that returns such an element.

When you create server stubs and execute the service you will run into a  
ADBException:


Caused by: org.apache.axis2.databinding.ADBException: Unexpected  
subelement dl
	at  
org.apache.ws.axis2.GetDatResponse$Factory.parse(GetDatResponse.java:440)

... 30 more


Running the tcpmon shows what happens:



HTTP/1.1 200 OK^M
Content-Type: application/soap+xml;charset=UTF-8^M
Transfer-Encoding: chunked^M
90^M
http://www.w3.org/2003/05/soap-envelope";>



http://ws.apache.org/axis2";  
xmlns:ns3="http://ws.apache.org/axis2/xsd";>

1.10
2.20
3
KETTE
4
5


^M



The tokens "" and "" seem to be missing.

Earlier versions produced:

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>




http://ws.apache.org/axis2/xsd";>

1.10
2.20
3
KETTE
4
5



^M


As we found out, the problem lies in the generation of the methods inside
axis2_getResponse.c file.

Earlier versions of AXIS2 generated code like this in the "serialze"  
method:


[...]

if(has_parent)
{
 data_source = axiom_node_get_data_element(parent, env);
 if (!data_source)
return NULL;
stream = axiom_data_source_get_stream(data_source, env); /*assume  
parent is of type data source */

if (!stream)
return NULL;
current_node = parent;
}
else
{
   data_source = axiom_data_source_create(env, parent, ¤t_node);
   stream = axiom_data_source_get_stream(data_source, env);
}

/**
* parsing return element
*/

start_input_str = "";
start_input_str_len = axutil_strlen(start_input_str);
end_input_str = "";
end_input_str_len = axutil_strlen(end_input_str);

axutil_stream_write(stream, env, start_input_str, start_input_str_len);
axis2_Dat_serialize( getDatResponse->attrib_return, env, current_node,  
AXIS2_TRUE);

axutil_stream_write(stream, env, end_input_str, end_input_str_len);

[...]

As we can see the wanted element  is written unconditionally.

Not so the latest nightly build. It generates:

[...]
/**
 * parsing return element
 */
start_input_str = "xmlns:ns3=\"http://ws.apache.org/axis2/xsd\";>";

start_input_str_len = axutil_strlen(start_input_str);
end_input_str = "";
end_input_str_len = axutil_strlen(end_input_str);
if(has_parent)
  axutil_stream_write(stream, env, start_input_str, start_input_str_len);
adb_Dat_serialize( _getDatResponse->attrib_return, env, current_node,  
AXIS2_TRUE);

if(has_parent)
axutil_stream_write(stream, env, end_input_str, end_input_str_len);


[...]

This seems to be wrong as the serialize-functions is always called with  
the parameter "has_parent" = FALSE. The result is the above mentioned  
error. It seems the blocks accidentially moved to another position during  
generation.


As far as we can see this renders the generated Axis-Services completely  
useless and again we wonder how others are working...


Please tell us if we have to raise a JIRA for this or if there is a way to  
bypass the problem (except editing all the generated sources).


Thanks a lot and good night from Berlin,

Flori

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



Re: Digest Verification problem

2007-08-07 Thread Dariush Forouher
Kaushalye Kapuruge wrote:
> Hi Dairush,
> Seems what we guessed is correct.
> In Axis2/C it uses AXIOM as the XML infoset model. So when C14N
> algorithm pulls nodes using the AXIOM object model, it fails to give the
> nodes, when generated by the code-gen tool. There is a slight difference
> from writing your payload manually.  When you use the code-gen tool, the
> payload is actually kept as a stream (that has introduced for some
> efficiency issues). So for the time being, unfortunately though, you
> cannot sign payloads which are generated using the tool. We will try to

Ok. Fortunately none of my operations has large or complicated
parameters, so it should be straight-forward to build the payloads by
hand (I already did it with some ops and it works splendid)

> come-up with a workaround for this in Rampart/C level first. If not we
> might have to change the behavior of the code-gen tool. I will raise a
> JIRA issue on this. Thanks a lot for informing us about this.

Thank you very much for your help!

> Cheers,
> Kaushalye

ciao
Dariush

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



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

2007-08-07 Thread Subra A Narayanan
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 <[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.gif
> 1234
> > >
> > >
> > > ==> 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)
> > 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 

Re: Fwd: Axis2/C - Installing from source

2007-08-07 Thread Michael Mole
It built!  Thank you so much.

 - Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710



Samisa Abeysinghe <[EMAIL PROTECTED]> 
08/07/2007 03:41 AM
Please respond to
"Apache AXIS C User List" 


To
Apache AXIS C User List 
cc

Subject
Re: Fwd: Axis2/C - Installing from source







> 1) It seems that I have to download the source for libxml2.  Do I also 
> have to download the source for libiconv, and zlib?
As Nandika mentioned, you can download the binaries for libxml2, 
libiconv and zlib. You do not need the sources of those.
> 2) The instructions say to put zlib1.dll in the lib directory of 
> libxml2, but when I extract libxml2, there is no lib directory. 
>  Should I just create it?
When you download the binary, you will have a lib folder.
> 3) The instructions for downloading the source for libxml2 also 
> indicate that something called libxml2-devel is required, but I don't 
> see a Windows distribution for this.  Does anyone know where to get it?
If you get the libxml2 binary, you do not have to worry about this.

HTH.

Samisa...
>
> Thanks,
> Mike
>
> Michael J Molé
> Software Engineer
> IBM Software Group - Rational
> (781)676-2710
>
> -- 
> [EMAIL PROTECTED] 
> WSO2 Inc: http://www.wso2.com 


-- 
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-07 Thread Manjula Peiris
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)
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


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



Re: Service compilation problem

2007-08-07 Thread Samisa Abeysinghe

Subra A Narayanan wrote:

Thanks Samisa.

I tried your solution and it worked for the 'math' sample.

So I tried the same thing with my own web service, but that fails. 
This is what I see in the axis2c log. The processing just stops after 
this line ==> "class_loader.c(135) Object loaded successfully
" as you can see below. So I modified the make file that came with the 
samples so that it now builds my own webservice too along with the 
other sample web services. And that makes my web service work!!!

I have no idea whats going on here. Any help is greatly appreciated!
What you can do is, when you run make, see the gcc commands run by make. 
Then you can see the compile options passed by make to gcc. If you copy 
those and run gcc with those options, then that would work.


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: Fwd: Axis2/C - Installing from source

2007-08-07 Thread Samisa Abeysinghe


1) It seems that I have to download the source for libxml2.  Do I also 
have to download the source for libiconv, and zlib?
As Nandika mentioned, you can download the binaries for libxml2, 
libiconv and zlib. You do not need the sources of those.
2) The instructions say to put zlib1.dll in the lib directory of 
libxml2, but when I extract libxml2, there is no lib directory. 
 Should I just create it?

When you download the binary, you will have a lib folder.
3) The instructions for downloading the source for libxml2 also 
indicate that something called libxml2-devel is required, but I don't 
see a Windows distribution for this.  Does anyone know where to get it?

If you get the libxml2 binary, you do not have to worry about this.

HTH.

Samisa...


Thanks,
Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710

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



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