Re: Axis2/C and Qt

2010-01-13 Thread Rajika Kumarasiri
Sam,
AFAIK no.

Rajika

On Wed, Jan 13, 2010 at 7:57 PM, Sam Carleton wrote:

> Does anyone know if someone has ever written a WSDL2QT utility to allow
> Axis2/C to integrate with Qt?


Re: printing SOAP response

2009-09-04 Thread Rajika Kumarasiri
On Sat, Sep 5, 2009 at 1:54 AM, Kevin Steves  wrote:

> On Sat, Sep 05, 2009 at 01:35:19AM +0530, Rajika Kumarasiri wrote:
> : On Sat, Sep 5, 2009 at 1:20 AM, Kevin Steves  wrote:
> : hi Kevin,
> : Try  axis2_char_t * axiom_node_to_string(axiom_node_t *, axis2_env_t *);
> :
> : Is there a way to print the SOAP response message in a client (as a
> : > string) for debugging purposes?  I've been digging through the
> : > archives and didn't find anything.
> :
> : The samples distribute with the source should help.
>
> thanks, I've looked at those, and was already using
> axiom_node_to_string().  however I'm not seeing an expected element in
> the response and I'm not sure why, so I wanted to see the SOAP message
> in the client to confirm it's what I think it is.
>
> given the SOAP response message below, I only see publisher-id when
> I convert the return node to a string.
>
> output from axiom_node_to_string():
>
> Received OM: http://www.trustedcomputinggroup.org/2006/IFMAP/1
> ">10.136.244.254
>

This is the correct behaviour. It'll only show the payload.  May be you need
to try
axiom_soap_envelope_t *AXIS2_CALL
axis2_svc_client_get_last_response_soap_envelope(
const axis2_svc_client_t * svc_client,
const axutil_env_t * env)

in client API?

-Rajika

>
> SOAP response:
>
>  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";> xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1";>10.136.244.254 xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1";>2093d57c226bc9e739fd24169a36 xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1";>10.136.244.254 xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1
> ">2093d57c226bc9e739fd24169a36
>



-- 
http://wso2.org
http://llvm.org
http://www.minix3.org


Re: printing SOAP response

2009-09-04 Thread Rajika Kumarasiri
On Sat, Sep 5, 2009 at 1:20 AM, Kevin Steves  wrote:
hi Kevin,
Try  axis2_char_t * axiom_node_to_string(axiom_node_t *, axis2_env_t *);

Is there a way to print the SOAP response message in a client (as a
> string) for debugging purposes?  I've been digging through the
> archives and didn't find anything.

The samples distribute with the source should help.

-Rajika



>  I'm using the service client API.
> tcpmon isn't an option because the service is https-only.
>



-- 
http://wso2.org
http://llvm.org
http://www.minix3.org


Re: JDK support for AXIS2C

2009-08-05 Thread Rajika Kumarasiri
hi Ramesh,
I am not sure what this question means, do you mean the WSDL2C tool ?

-Rajika

On Wed, Aug 5, 2009 at 11:25 AM, ramesh Gopal wrote:

>
> Does AXIS2C 1.5 support JDK 1.6 ?
>
> Ramesh.
>
>
>  Looking for local information? Find it on Yahoo! Local
> http://in.local.yahoo.com/
>
>


-- 
http://wso2.org
http://llvm.org
http://www.minix3.org


Re: Obtaining consumer address from Axis2/C service - SOLVED

2009-08-03 Thread Rajika Kumarasiri
Can you send the stack trace?

On Mon, Aug 3, 2009 at 6:17 PM, Nabeel Naseem Ahsan
wrote:

> I tried using this property with axis2 1.5.0, but i got an segmentation
> fault. Can anyone help me out?
>
> Nabeel Ahsan
>
>
> On Fri, Jul 10, 2009 at 4:48 PM, Sam Carleton  wrote:
>
>> Thank you for posting the answer, this could be very useful!
>>
>> On Fri, Jul 10, 2009 at 7:10 AM, Stefan Hristov  wrote:
>>
>>> Well, looking at the source usually helps :)
>>>
>>> There is a property in msg_ctx called AXIS2_SVR_PEER_IP_ADDR which
>>> contains the remote peer IP address.
>>> So basically this is how one could get the web-service consumer IP
>>> address:
>>>
>>>axutil_property_t *peer = axis2_msg_ctx_get_property
>>> (msg_ctx, env, AXIS2_SVR_PEER_IP_ADDR);
>>>char *remote_ip = (char *) axutil_property_get_value
>>> (peer, env);
>>>AXIS2_LOG_INFO (env->log, "Got a call from %s",
>>> remote_ip);
>>>
>>> On Thursday 09 July 2009 18:40:46 Stefan Hristov wrote:
>>> > Hi all,
>>> >
>>> > I am writing a web-service using Axis2/C v1.6.0. The service is
>>> deployed with Apache2 mod-axis2.so.
>>> >
>>> > I need to get the sender IP address (or anything which can be used to
>>> identify the consumer) when my service is called (meaning, in
>>> axis2_svc_skel_XXX_invoke function).
>>> >
>>> > I have searched through the API documentation using axis2_msg_ctx_t as
>>> a reference (the startup data I have in invoke function), but unfortunately
>>> the functions I've found return my own address (the full URL, actually), not
>>> senders. I mean axis2_msg_ctx_get_from and axis2_options_get_from, both
>>> yielding axis2_endpoint_ref_t type. There are few similar other functions,
>>> but they all are returning NULL.
>>> >
>>> > Any suggestions or pointers, please? :)
>>> >
>>>
>>
>>
>


-- 
http://wso2.org
http://llvm.org
http://www.minix3.org


Re: can't debug web service with the Simple HTTP Server!

2009-05-09 Thread Rajika Kumarasiri
On Sat, May 9, 2009 at 8:26 PM, Edgar Ricardo Gonzalez Lazaro <
ministroma...@gmail.com> wrote:
hi,
Missing debugging info ?


HMMM! lol! I know how to debug the web service! the problem is when
> the Simple HTTP Server try to init my ws invoking my _init function,
> it falls and the back trace can't show the line where the segmentaton
> faul occurs!
>
> #0  0x6c707061 in ?? ()
>
> I have an idea. Ill try it!
>
>
> El sáb, 09-05-2009 a las 21:07 +0530, Rajika Kumarasiri escribió:
> >
> >
> > On Sat, May 9, 2009 at 9:01 AM, Edgar Ricardo Gonzalez Lazaro
> >  wrote:
> > hi,
> > Hello everybody! I am new in this list so... be nice, want
> > you? lol
> > sure. Try this out,
> > http://wso2.org/library/tutorials/debugging-axis2-c-services-clients
> >
> > -Rajika
> >
> >
> >
> > Well, I am  writing web services with Axis2c I have built
> > successfully
> > one and is deployed on Apache2 and the Simple HTTP Server
> > which is
> > included with Axis2c distribution. But as usual with C, is
> > falling with
> > a segmentation fault, :D, this is not the problem, in fact i
> > don't know
> > if this is the place to make my question, but i am trying to
> > set the
> > "--mode=compile" flag to "--mode=execute gdb" for libtool
> > because when i
> > am debugging my web service i can't reach with gdb the code of
> > the
> > dynamic linked library which is my web service.
> >
> > I hope to be clear enough!
> >
> > Sorry if my English is bad! :(
> >
> > Thanks in advance
> >
> > Attached: the configure.in and Makefile.am "code" and gdb
> > output.
> >
> > ## CONFIGURE.IN
> >
> > AC_PREREQ(2.61)
> > AC_INIT(WS_NASTY, 0.0.1, x...@hotmail.com)
> > AC_CONFIG_SRCDIR([src/])
> > AC_CONFIG_HEADER([src/config.h])
> > AC_CONFIG_FILES([Makefile src/Makefile])
> > AC_ARG_WITH(axis2,
> >   [ --with-axis2= prefijo de la instalacion del axis2c
> > e.g. /usr ],
> >   [ AXIS2_PREFIX=$with_axis2 ],
> >   AC_MSG_ERROR([Debes utilizar la opcion --with-axis2 para
> > enlazar con
> > esta biblioteca
> >   por ejemplo --with-axis2=/usr])
> > )
> > AC_SUBST(AXIS2_PREFIX)
> > AXIS2_LIBS="-L${AXIS2_PREFIX}/lib -laxutil -laxis2_axiom
> > -laxis2_parser
> > -laxis2_engine -laxis2_http_sender -laxis2_http_receiver"
> > AXIS2_CFLAGS="-I${AXIS2_PREFIX}/include/axis2-1.5.0"
> > AC_SUBST(AXIS2_LIBS)
> > AC_SUBST(AXIS2_CFLAGS)
> >
> > AM_INIT_AUTOMAKE
> > AC_PROG_LIBTOOL
> > AC_PROG_CXX
> > AC_OUTPUT
> >
> >
> > ## MAKEFILE.AM
> > prglibdir=$(prefix)/services/NastyWS
> > prglib_LTLIBRARIES=libNastyWS.la
> > prglib_DATA=services.xml
> > libNastyWS_la_SOURCES=a.cpp a.h ai.h b.cpp b.h
> > CFLAGS=-ggdb -O0##This is wrong i know
> > CXXFLAGS=-ggdb -O0  ##This is wrong i know
> > INCLUDES=$(AXIS2_CFLAGS)
> > LIBS=$(AXIS2_LIBS)
> >
> > ## GDB OUTPUT
> >
> > (gdb) r
> > Starting program: /usr/local/bin/axis2_http_server
> > [Thread debugging using libthread_db enabled]
> > [New Thread 0xb764b8f0 (LWP 15514)]
> > Started Simple Axis2 HTTP Server ...
> > [New Thread 0xb764ab90 (LWP 15518)]
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 0xb764ab90 (LWP 15518)]
> > 0x6c707061 in ?? ()
> > (gdb) bt
> > #0  0x6c707061 in ?? ()
> > #1  0xb7d7f528 in axis2_msg_recv_make_new_svc_obj
> > (msg_recv=0x87dcdf0,
> > env=0x88160c0, msg_ctx=0x8820390) at msg_recv.c:166
> > #2  0xb7d7f626 in axis2_msg_recv_get_impl_obj
> > (msg_recv=0x87dcdf0,
> > env=0x88160c0, msg_ctx=0x8820390) at msg_recv.c:194
> > #3  0xb7d7fff2 in
> > axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync
> > (msg_recv=0x87dcdf0, env=0x88160c0, msg_ctx=0x8820390,
> > new_msg_ctx=0x8828510) at raw_xml_in

Re: can't debug web service with the Simple HTTP Server!

2009-05-09 Thread Rajika Kumarasiri
On Sat, May 9, 2009 at 9:01 AM, Edgar Ricardo Gonzalez Lazaro <
ministroma...@gmail.com> wrote:
hi,

> Hello everybody! I am new in this list so... be nice, want you? lol

sure. Try this out,
http://wso2.org/library/tutorials/debugging-axis2-c-services-clients

-Rajika

>
>
> Well, I am  writing web services with Axis2c I have built successfully
> one and is deployed on Apache2 and the Simple HTTP Server which is
> included with Axis2c distribution. But as usual with C, is falling with
> a segmentation fault, :D, this is not the problem, in fact i don't know
> if this is the place to make my question, but i am trying to set the
> "--mode=compile" flag to "--mode=execute gdb" for libtool because when i
> am debugging my web service i can't reach with gdb the code of the
> dynamic linked library which is my web service.
>
> I hope to be clear enough!
>
> Sorry if my English is bad! :(
>
> Thanks in advance
>
> Attached: the configure.in and Makefile.am "code" and gdb output.
>
> ## CONFIGURE.IN
>
> AC_PREREQ(2.61)
> AC_INIT(WS_NASTY, 0.0.1, x...@hotmail.com)
> AC_CONFIG_SRCDIR([src/])
> AC_CONFIG_HEADER([src/config.h])
> AC_CONFIG_FILES([Makefile src/Makefile])
> AC_ARG_WITH(axis2,
>   [ --with-axis2= prefijo de la instalacion del axis2c
> e.g. /usr ],
>   [ AXIS2_PREFIX=$with_axis2 ],
>   AC_MSG_ERROR([Debes utilizar la opcion --with-axis2 para enlazar con
> esta biblioteca
>   por ejemplo --with-axis2=/usr])
> )
> AC_SUBST(AXIS2_PREFIX)
> AXIS2_LIBS="-L${AXIS2_PREFIX}/lib -laxutil -laxis2_axiom -laxis2_parser
> -laxis2_engine -laxis2_http_sender -laxis2_http_receiver"
> AXIS2_CFLAGS="-I${AXIS2_PREFIX}/include/axis2-1.5.0"
> AC_SUBST(AXIS2_LIBS)
> AC_SUBST(AXIS2_CFLAGS)
>
> AM_INIT_AUTOMAKE
> AC_PROG_LIBTOOL
> AC_PROG_CXX
> AC_OUTPUT
>
>
> ## MAKEFILE.AM
> prglibdir=$(prefix)/services/NastyWS
> prglib_LTLIBRARIES=libNastyWS.la
> prglib_DATA=services.xml
> libNastyWS_la_SOURCES=a.cpp a.h ai.h b.cpp b.h
> CFLAGS=-ggdb -O0##This is wrong i know
> CXXFLAGS=-ggdb -O0  ##This is wrong i know
> INCLUDES=$(AXIS2_CFLAGS)
> LIBS=$(AXIS2_LIBS)
>
> ## GDB OUTPUT
>
> (gdb) r
> Starting program: /usr/local/bin/axis2_http_server
> [Thread debugging using libthread_db enabled]
> [New Thread 0xb764b8f0 (LWP 15514)]
> Started Simple Axis2 HTTP Server ...
> [New Thread 0xb764ab90 (LWP 15518)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb764ab90 (LWP 15518)]
> 0x6c707061 in ?? ()
> (gdb) bt
> #0  0x6c707061 in ?? ()
> #1  0xb7d7f528 in axis2_msg_recv_make_new_svc_obj (msg_recv=0x87dcdf0,
> env=0x88160c0, msg_ctx=0x8820390) at msg_recv.c:166
> #2  0xb7d7f626 in axis2_msg_recv_get_impl_obj (msg_recv=0x87dcdf0,
> env=0x88160c0, msg_ctx=0x8820390) at msg_recv.c:194
> #3  0xb7d7fff2 in
> axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync
> (msg_recv=0x87dcdf0, env=0x88160c0, msg_ctx=0x8820390,
> new_msg_ctx=0x8828510) at raw_xml_in_out_msg_recv.c:99
> #4  0xb7d7fcf3 in axis2_msg_recv_invoke_business_logic
> (msg_recv=0x87dcdf0, env=0x88160c0, in_msg_ctx=0x8820390,
> out_msg_ctx=0x8828510) at msg_recv.c:397
> #5  0xb7d7fad1 in axis2_msg_recv_receive_impl (msg_recv=0x87dcdf0,
> env=0x88160c0, msg_ctx=0x8820390, callback_recv_param=0x0) at
> msg_recv.c:319
> #6  0xb7d7fd4f in axis2_msg_recv_receive (msg_recv=0x87dcdf0,
> env=0x88160c0, msg_ctx=0x8820390, callback_recv_param=0x0) at
> msg_recv.c:436
> #7  0xb7d713d1 in axis2_engine_receive (engine=0x88280a8, env=0x88160c0,
> msg_ctx=0x8820390) at engine.c:318
> #8  0xb7dd1883 in axis2_http_transport_utils_process_http_post_request
> (env=0x88160c0, msg_ctx=0x8820390, in_stream=0x88160f0,
> out_stream=0x8816120,
>content_type=0x88161b8 "text/xml; charset=UTF-8",
> content_length=510, soap_action_header=0x8821a68, request_uri=0x8821a80
> "http://127.0.0.1:9090/axis2/services/NastyWS";)
>at http_transport_utils.c:659
> #9  0xb7dcdb0d in axis2_http_worker_process_request
> (http_worker=0x8815740, env=0x88160c0, svr_conn=0x88160e0,
> simple_request=0x88161a0) at http_worker.c:908
> #10 0xb7d2f719 in axis2_svr_thread_worker_func (thd=0x8815fe8,
> data=0x8815fd0) at http_svr_thread.c:259
> #11 0xb7dfbd15 in dummy_worker (opaque=0x8815fe8) at thread_unix.c:93
> #12 0xb7cf51a2 in start_thread () from /lib/libpthread.so.0
> #13 0xb7c6948e in clone () from /lib/libc.so.6
>
>
>


-- 
http://wso2.org
http://llvm.org
http://www.minix3.org


Re: Consuming WCF service from apache axis2/c

2009-05-08 Thread Rajika Kumarasiri
On Fri, May 8, 2009 at 12:24 PM, Tushar D Kapse  wrote:

> Hi,

hi,
This is possible, have a look at the samples distribute with the axis2/c
distribution.

-Rajika

>
>
>   Can anybody tell me is it possible to consume WCF service from apache
> axis2/c?
>
>   if yes, then  please send sample code link.if possible
>
> Thanks,
>
> Regards,
> Tushar
>
>


-- 
http://wso2.org
http://llvm.org
http://www.minix3.org


Re: WSDL2C: What to do after compiling Axis2 1.4.1. nightly build

2009-05-01 Thread Rajika Kumarasiri
On Sat, May 2, 2009 at 7:52 AM, Sam Carleton  wrote:

> Rajika,


hi,

>
>
> I am going off of this email from a week and a half ago, please see my
> question below:
>
> On Wed, Apr 22, 2009 at 11:45 PM, Manjula Peiris  wrote:
> >
> > On Wed, 2009-04-22 at 11:48 -0400, Bennett, Robert P wrote:
> > >
> > > >
> > > > Major Changes Since Last Release
> > > > 
> > > >
> > > >1. XPath support for Axiom XML object model
> > > >2. CGI support
> > > >3. Improvements to MTOM to send, receive very large attachments
> > > >4. Improvements to AMQP transport
> > > >5. Improvements to WSDL2C codegen tool
> > >
> > > How are Improvements to WSDL2C codegen tool a major change to Axis2/C
> > > version 1.6.0?
> > > Isn't WSDL2C part of the Axis2, which is still 1.4.1?
> >
> > The WSDL2C tool is maintained by Axis2/C community. After releasing
> > 1.5.0 there are some bug fixes and improvements done to the WSDL2C tool.
> > Further Axis2/C code also fixed for these changes. You can get these
> > latest modifications from an Axis2 nightly build.
> >
> > Thanks,
> > -Manjula.
>
> Q1: So if I wanted the latest WSDL2C, I need to get from the nightly
> build of the project Axis2/Java?


Correct.

>
>
> (I have gotten the latest subversion code from the project, installed
> mvn, and run mvn install successfully on the Axis2/Java code)
>
> Q2: After running the mvn install, what must I do to use the newly
> compiled WSDL2C?


You'll find the nightly built of axis2 distribution inside


>
>
> What I don't see is a bin folder in the root of the Axis2/Java
> project, what I have is this:


If you carefully read the reply you'll see what I meant is the README file
of WSDL2C which is inside axis2c, not the README file what is in axis2java.

>
>
>   etc
>   legal
>   modules
>   release-docs
> 4,506   build.xml
> 11,359 LICENSE.txt
>  1,236  NOTICE.txt
> 11,091 pom.xml
> 2,504   README.txt
> 39,552 release-notes.html
>
> I did read the README.TXT, which is how I knew the correct way to get
> mvn to build everything, but it does not talk about what I need to do
> to actually use any of the java code.  I am assuming I need to set a
> class path or something, but I don't know where I should be setting
> the class path, not being a java expert.


Ok, try mvn assembly:assembly -Drelease  which will build the axis2/java
distro. inside modules/distribution/target. You need to unzip this and set
AXIS2_HOME varible to this location.
have a look at the shell script (bat script) WSDL2C.sh (in axis2/c distro in
side bin/tools/wsdl2c) to see how things works.
Sam, everhing is there in the documentaion, or the same question most
probably have been asked by another user.

-Rajika

>
>
> Sam
>



-- 
http://wso2.org
http://llvm.org
http://www.minix3.org


Re: WSDL2C: What to do after compiling Axis2 1.4.1. nightly build

2009-05-01 Thread Rajika Kumarasiri
On Sat, May 2, 2009 at 5:18 AM, Sam Carleton wrote:

> Folks,

hi Sam,

>
>
> I am after the latest greatest WSDL2C, which from my understanding is in
> the Axis2/Java nightly build.
>
> I happen to be one of those C/C++ developers that does not know Java all
> that well.  I have pulled down the code from SVN, installed Maven and the
> JDK.  I have managed to get the nightly build to build, but now what?
> Should I deploy it?  If so how?  If not, what do I set the %AXIS2_HOME% to
> so that the WSDL2C.bat can find the correct code?


WSDL2C tool uses axis2 libs to generate code. You don't have to deploy
axis2- but need to unzip and set the AXIS2_HOME such that it points to the
installation directory of axis2.  If you have a look in the README
file(inside bin/tools/wsdl2c  folder in axis2/c) it has the instructions to
run the tool together with some usage scenarios.

-Rajika

>
>
> Sam
>



-- 
http://wso2.org
http://llvm.org
http://www.minix3.org


Re: Guththila and UTF-8?

2009-05-01 Thread Rajika Kumarasiri
You can grant apache license permission by clicking the check box when
submitting the patch to JIRA.

-Rajika

On Fri, May 1, 2009 at 8:01 PM, David Taylor (Lowell) wrote:

>  That sounds reasonable.  Do you have an example of what I need to say to
> give apache license permission to the patch?
>
> Thanks,
>
> -David
>
>
>  --
>
> *From:* uthaiyashan...@gmail.com [mailto:uthaiyashan...@gmail.com] *On
> Behalf Of *Uthaiyashankar
> *Sent:* Thursday, April 30, 2009 10:54 PM
>
> *To:* Apache AXIS C User List
> *Subject:* Re: Guththila and UTF-8?
>
>
>
> Hi David,
>
> On Thu, Apr 30, 2009 at 11:28 PM, David Taylor (Lowell) 
> wrote:
>
> Supun,
>
>
>
> Thanks for the offer to help.  I have a fix working, now.  It handles UTF-8
> code for element and attribute values, but depends on the system locale for
> element and attribute names (it still uses isspace and isalpha).  It would
> probably be better to use iswspace and iswalpha, though I am not sure
> whether they are as portable to all systems AXIS2/C supports.  What do you
> think about that?
>
>
>
> In any case, what should be the next step for my changes?  Would you like
> me to email a patch or attach it to the JIRA bug?  Do you prefer just
> regular diff -u patches?
>
>
> You have to attach the patch to JIRA bug. Regular diff -u patch is enough.
> When attaching the patch, you have to give apache licence permission to the
> patch.
>
> Regards,
> Shankar
>
>
>
>
>
> My changes also include new unit tests for the UTF-8 transcoder.  I
> integrated them with the other Guththila unit tests that were a bit crufty,
> so I got them working, too.  I’ll include that in the patch as well.
>
> Thanks,
>
> -David
>
>
>  --
>
> *From:* Supun Kamburugamuva [mailto:supu...@gmail.com]
> *Sent:* Monday, April 27, 2009 11:51 PM
>
>
> *To:* Apache AXIS C User List
> *Subject:* Re: Guththila and UTF-8?
>
>
>
> Great! I'll be more than happy to help you with this.
>
>
>
> Supun..
>
> On Mon, Apr 27, 2009 at 8:59 PM, David Taylor (Lowell) 
> wrote:
>
> Thank you very much for the quick update.  Maybe I’ll offer to take that
> task….  Let me think about it.
>
> Thanks,
>
> -David
>
>
>  --
>
> *From:* Samisa Abeysinghe [mailto:sam...@wso2.com]
> *Sent:* Monday, April 27, 2009 11:57 AM
> *To:* Apache AXIS C User List
> *Subject:* Re: Guththila and UTF-8?
>
>
>
> We have not looked into this for some time, because both folks who were
> involved with this part of the code went on to pursue their studies.
>
> It is time that we look for new volunteers to cover this.
>
>
>
> Samisa...
>
> On Mon, Apr 27, 2009 at 9:21 PM, David Taylor (Lowell) 
> wrote:
>
> It doesn’t appear that Guththila supports UTF-8 even though
> guththila_get_encoding is hardcoded to return “UTF-8”.  After googling for a
> bit, I am not clear on what the plans are for UTF-8 support.  Is it planned
> any time soon?  JIRA AXIS2C-1265 hasn’t been updated in a while.  I’d
> appreciate any info on this.
>
> Thanks,
>
> -David
>
>
>
> https://issues.apache.org/jira/browse/AXIS2C-1265
>
>
>
>
>
>
> --
> Software Engineer, WSO2 Inc
> http://wso2.org
> supunk.blogspot.com
>
>
>
>
> --
> S.Uthaiyashankar
> Software Architect
> WSO2 Inc.
> http://wso2.com/ - "The Open Source SOA Company"
>
>


-- 
http://wso2.org
http://llvm.org
http://www.minix3.org


Re: Understanding WS-*

2009-04-01 Thread Rajika Kumarasiri
http://www.packtpub.com/creating-web-services-with-apache-axis-2/book

-Rajika

On Wed, Apr 1, 2009 at 4:51 PM, Sam Carleton wrote:

> I know that Axis2/C supports all these WS-* things, I have read over the
> pages about them, but I still don't understand exactly how to fit them into
> the big picture.  Can anyone recommend where I could go (or maybe a book I
> could read) that would help explain Web Services in general and how how to
> use all these WS-* in developing a solution?  It does *NOT* need to be
> Axis2/C centric, any language is fine with me actually.
>
> Sam
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: What is the configuration settings mechanism?

2009-03-31 Thread Rajika Kumarasiri
The static configuration can be accessed using axis2_conf_ctx , look at the
API (axis2_conf_ctx.h) to see how you can retire a property defined in
services.xml.

-Rajika

On Tue, Mar 31, 2009 at 4:52 PM, Sam Carleton  wrote:

>
>
> On Tue, Mar 31, 2009 at 12:27 AM, Supun Kamburugamuva 
> wrote:
>
>> You can put it as parameters in services.xml
>>
>
> I thought that might be the case, so I went looking in the manual on the
> apache site for documentation of what it might be but failed to see
> anything.  I also went looking for an example in the source but did not find
> one.  Where can I find an example and/or documentation?
>
> Sam
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: .net wrapping and AXIS2_ERROR_INVALID_STATE_DLL_DESC

2009-03-28 Thread Rajika Kumarasiri
Well what I was asking is weather you have implemented the
axis2_get_instance and axis2_remove_instance function
properly. I don't know weather the codegen tool generate these two
functions.

-Rajika

On Sun, Mar 29, 2009 at 8:25 AM, Sam Carleton  wrote:

> On Sat, Mar 28, 2009 at 10:40 PM, Rajika Kumarasiri 
> wrote:
> > Seems like something wrong with your service dll. Please re-check the
> > service implementation.
>
> Rajika,
>
> Are you saying there is something wrong in my function where I
> implement the NodeManager::getChildren function:
> axis2_skel_NodeManager_getChildren()
>
> Or are you saying that the issue is somewhere else?  I am using the
> WSDL2C from Axis2/Java 1.4.1 to generate most of the code, I am only
> implementing axis2_skel_NodeManager_getChildren().
>
> Sam
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: .net wrapping and AXIS2_ERROR_INVALID_STATE_DLL_DESC

2009-03-28 Thread Rajika Kumarasiri
Seems like something wrong with your service dll. Please re-check the
service implementation.

-Rajika

On Sun, Mar 29, 2009 at 7:53 AM, Sam Carleton  wrote:

> On Sat, Mar 28, 2009 at 10:16 PM, Rajika Kumarasiri 
> wrote:
> > What does the axis2 server log says?
>
> ..\..\src\core\receivers\raw_xml_in_out_msg_recv.c(115) Impl object
> for service 'NodeManager' not set in message receiver. 107 :: DLL
> description has invalid state of not having valid DLL create function,
>of valid delete function or valid dll_handler
>
> I don't know what it mean :(
>
> Sam
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: .net wrapping and AXIS2_ERROR_INVALID_STATE_DLL_DESC

2009-03-28 Thread Rajika Kumarasiri
What does the axis2 server log says?

-Rajika

On Sun, Mar 29, 2009 at 7:43 AM, Sam Carleton wrote:

> As I posted a few hours ago, I am working on my first ever web
> service.  The server, Apache and Axis2/C of course, the client is a
> C#.Net application.
>
> I have the server compiled and it shows up when I consult the list of
> services on the Apache web server.  I built a C# client to call the
> Web Service and an exception was thrown:
>
> DLL description has invalid state of not having valid DLL create
> function, of valid delete function or valid dll_handler
>
> I did some searching and found that it is an error from Axis2/C:
> AXIS2_ERROR_INVALID_STATE_DLL_DESC
>
> I am clueless at what the problem is.
>
> One thing, which I don't know if it is related is this concept of "the
> wrapped convention".  I have Tong Ka Iok's book "Developing Web
> Services with Apache Axis2" that is Java based.  In chapter 5 he talks
> about wrapping the web service so that it appears to the client like a
> normal function rather then taking one object and returning another.
> He goes on at the end of the chapter and state that .Net requires
> services to be wrapped.  In the middle of the chapter it looks like he
> had to do some thing to setup Axis2 to handle the wrapped service, but
> it looks like it is Java related.  Is there anything special I need to
> do for Axis2/C to wrap a service?  Being new at this whole thing, I
> hope it is ok, but I am going to attach my WSDL, too, just to make
> sure I have it wrapped correct.
>
> Sam
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: client dynamic invocation

2009-03-03 Thread Rajika Kumarasiri
hi,
This is a bug, please report a JIRA issue. Thanks
-Rajika

On Tue, Mar 3, 2009 at 3:43 PM, Philippe Brun (perso) wrote:

> Hi,
>
> I'm trying to use axis2_svc_client_create_for_dynamic_invocation, but it
> fails with a 0 error code.
>
> Looking at the code in svc_client.c, it appears that it fails after :
>svc_client->options = axis2_options_create(env);
> The test fails because svc_client->svc is NULL
>if (svc_client->svc)
>
> I'm certainly missing something. Can anyone help ?
>
> Thanks in advance
> Philippe
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: is axis2c supported on mainframes

2009-02-27 Thread Rajika Kumarasiri
On Fri, Feb 27, 2009 at 7:23 PM, PP  wrote:
hi,
If you state your requirements clearly we would say something, if your
mainframe does have a C compiler/runtime (C90 compliant ) most probably you
can use axis2/c.

-Rajika

Hi,
>
> we want to write webservices on mainframes using axis2c.
>
> I wonder if axis2c supports mainframes and if supports is there anything
> special need to take care of?
>
>
> --
> Thanks & Regards
> Pradeep Patel
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Axis2/C or Axis-C++

2009-02-27 Thread Rajika Kumarasiri
On Sat, Feb 28, 2009 at 5:44 AM, Sam Carleton  wrote:
hi,
A new release of axis2/c is on the way. You are encourage to use the latest
code at svn.

-Rajika


>
>
> On Fri, Feb 27, 2009 at 4:51 PM, Sam Carleton  wrote:
>
>> On Fri, Feb 27, 2009 at 3:14 PM, Dinesh Premalal wrote:
>>>
>>>
>>> Regarding Axis2/C , I could say that is the one you could find most
>>> number of WS-* specifications implemented. WS-Addressing,
>>> WS-ReliableMessaging, WS-Evening, WS-Security to name a few. In
>>> addition to that you could have some more additional features, like
>>> apache2 deployment module, large attachment capability, improved axiom
>>> with XPath implementation and so on.
>>
>>
>> Axis2/C it is then, I already have an apache module written in a mix of
>> C/C++, figure I will do the same with the web services.
>>
>
> One final question:  I saw some posts that lead me to believe that Axis2/C
> 1.5 isn't stable and I should be using the nightly builds right now.  What
> version should I be using?
>
> Sam
>
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Axis2/c help

2009-02-25 Thread Rajika Kumarasiri
Look at the log files inside the log directory.

-Rajika

On Wed, Feb 25, 2009 at 1:22 PM, sasanka pusapati wrote:

> I tried running math.exe under bin/samples in command prompt, but it throws
> an error saying "math stub invoke failed", what could be the reason ..?
>
>
> On Wed, Feb 25, 2009 at 12:59 PM, Supun Kamburugamuva 
> wrote:
>
>> You can invoke the sample clients in the bin/samples directory.
>>
>> Supun
>>
>>
>> On Wed, Feb 25, 2009 at 12:24 PM, sasanka pusapati <
>> spusapati...@gmail.com> wrote:
>>
>>> Hi All,
>>>Can anyone please help me in running the sample service
>>> that comes with axis2/c. I deployed axis2/c in apache and was able to get
>>> the axis2/c home page. I wanted to know how to invoke samples under services
>>> directory.
>>>
>>>
>>>
>>> Thanks
>>> Sas.
>>>
>>
>>
>>
>> --
>> Software Engineer, WSO2 Inc
>> http://wso2.org
>> supunk.blogspot.com
>>
>>
>>
>
>
> --
> sasanka Pusapati
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: How can I write SOAP request in to log file?

2009-02-24 Thread Rajika Kumarasiri
You'll need to ask from Axis2/Java user list.
http://ws.apache.org/axis2

-Rajika

On Tue, Feb 24, 2009 at 3:46 PM, sandeep_k wrote:

>
> Hi,
>
> I am using Axis java,
> How can I write SOAP request in to log file?
>
> Thanks,
> sandeep
>
> --
> View this message in context:
> http://www.nabble.com/How-can-I-write-SOAP-request-in-to-log-file--tp22179348p22179348.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: [Axis2] multi thread client

2009-02-20 Thread Rajika Kumarasiri
On Fri, Feb 20, 2009 at 1:37 PM, Jorge Nevado wrote:
Hi there,
Axis2/C's client APIs are not thoroughly test for thread safeness. It's said
that svc client API is not good to use in a mult-threaded environment. I
think you can create your own threads and test some random senarios to get
an idea.

-Rajika

>
> Hi
>
> I am wandering if Axis2 library could be able to send multiple SOAP
> requests from a client in a thread-safe way.
> I have seen that using "axutil_env_create_all" I could have a system
> environment and with "axutil_init_thread_env" and "axutil_free_thread_env" I
> could handle something like sub-environment for the threads, but I do not
> get a clear idea of how to proceed.
>
> - should I create the threads?
> - the threads do not share anything (e.g. connections)?
> - the threads are created automatically from a thread pool or do I need to
> create them or request to be created with "axutil_thread_create"?
>
> Could you please provide an example of how these functions should be
> integrated?
>
> Thanks in advance,
> Jorge.
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Operation Client API

2009-02-19 Thread Rajika Kumarasiri
On Thu, Feb 19, 2009 at 7:48 PM, Rutger van Eerd - Vanboxtel BV <
rve...@vanboxtel.nl> wrote:
hi,
Try op_client API,
http://svn.apache.org/repos/asf/webservices/axis2/trunk/c/include/axis2_op_client.h

Hello,
>
> AFAIK Axis2/C always adds a SOAP Header element, even if there are no SOAP
> headers. In this case the Header element is empty, e.g.
> .
>
> I have to communicate to a SOAP service which appears to be broken; it
> cannot handle the SOAP Header element, even if it is empty. The best
> solution is of course to correct the service, but that is beyond my control.
>
> So I want to remove the SOAP Header element from my SOAP message. I think I
> have to use the operation client API (instead of the service client) to do
> that. However I cannot find any examples, tutorials or documentation to get
> started. Can someone provide this? Can someone explain the basic steps for
> using the operation client?
>
> Regards,
> Rutger
>
> Vanboxtel BV - Kerkstraat 14 - 5427 BC Boekel - KvK 16051676
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: tcpmon help

2009-02-16 Thread Rajika Kumarasiri
hi,
You need to specify the tcpmon listen port and target port appropriately.
Try this.
Start axis_server in port 9099 (./axis2_http_server -p 9099)
Start tcp_mon listening on port 9090 and targeting 9099 (./tcpmon -lp 9090
-tp 9099)

-Rajika


On Mon, Feb 16, 2009 at 10:50 PM, balajikumara T wrote:

> Hi Ppl,
> I am trying to run the tcpmon,but i dont see any log file updated when i
> send a request
>
> i gave the following command : (AXIS2C_HOME is set as well)
> /usr/local/tcpmon/bin/tools$ ./tcpmon
> Listen port : 9099 Target port : 9090 Target host: localhost
>
>
> i see the logfile with just the following lines updated only when i
> shutdown tcpmon
> logs/axis2_tcpmon.log
> [Mon Feb 16 11:53:14 2009] [info]  Received signal SIGINT. Utility shutting
> down
>
> No other logs.
>
> My setup is :
>
> I have tomcat fwding the request to axis2c client (same host)  listening on
> 9090  who inturn fwd the request to a axis2c server(different host)
> listening on 9090
> I see my call going through ,but i dont see the anything in tcpmon log
>
>
> I tried seeing the tcpmon log atleast on the server side, but i dont see
> the creation any axis2_tcpmon.log.
>
> Am i doing anything wrong ? i did ./configure ,make ,make install.
> Pls guide me
>
> Thanks
> Balaji
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Empty Responses in Firefox

2009-01-19 Thread Rajika Kumarasiri
What's the Content-Type of the response. May be it is set incorrectly, so
that the browser can't handle.

-Rajika
On Mon, Jan 19, 2009 at 10:43 PM, Andriy Zavada wrote:

>  Hi all,
>
>
>
> I'm sending several requests from Firefox 3 to my web service and sometimes
> I'm getting empty responses.
>
> When I am using tcpmon I receive response every time, the same in IE.
>
>
>
> Can anyone help me on this?
>
>
>
> Best regards,
>
> Andriy Zavada
>
>
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: worker mpm

2008-10-29 Thread Rajika Kumarasiri
On Thu, Oct 30, 2008 at 12:59 AM, Subra Aswathanarayanan <[EMAIL PROTECTED]
> wrote:
The most recent performance test results, with mpm and prefork models.
http://wso2.org/library/3868.

-Rajika

Hello guys,
> do you guys know of any issue in running axis2 on an apche server running
> under worker mpm model? do you think prefork is better then worker as far as
> axis2c is considered?
>
> Subra
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: simple response parsing question

2008-10-21 Thread Rajika Kumarasiri
On Tue, Oct 21, 2008 at 11:35 PM, Tony Hoyt <[EMAIL PROTECTED]> wrote:

> I glanced at that tutorial myself, and I notice a few things.  It seems to
> me the tutorial is out of date and in some cases, the sample code is missing
> language.  Code Listing 10 is missing several of the C operations, "if" and
> "return".  I seem to recall that some of the code listings used depreciated
> function calls, but I 'll have to scan the examples more to find them.
>
> All in all, has anyone generated an updated tutorial for using Axiom?


Patches are welcome!

-Rajika

>
>
> "Opportunities multiply as they are seized." - Sun Tzu
>
>
> --- On Tue, 10/21/08, Supun Kamburugamuva <[EMAIL PROTECTED]> wrote:
>
> > From: Supun Kamburugamuva <[EMAIL PROTECTED]>
> > Subject: Re: simple response parsing question
> > To: "Apache AXIS C User List" 
> > Date: Tuesday, October 21, 2008, 1:46 PM
> > This will help you.
> >
> > http://ws.apache.org/axis2/c/docs/om_tutorial.html
> >
> > Supun.
> >
> > On Tue, Oct 21, 2008 at 8:56 PM, Mark Webb
> > <[EMAIL PROTECTED]> wrote:
> >
> > > I have a web service client written in Axis2C and am
> > getting the
> > > response back properly.  The response is just a long
> > value.  Here is
> > > the XML I receive back:
> > >
> > >  > > xmlns:ns2="http://service.web.blah/
> > >
> > ">1234
> > >
> > > I am using the method axiom_node_get_first_child(node,
> > env) to get the
> > > value node.  I print out the node and get:
> > >
> > > 1234
> > >
> > > Problem is that I cannot figure out how to parse out
> > the '1234'.  I
> > > have looked at the examples but cannot get my code to
> > work.  Here is
> > > where I am at:
> > >
> > > printf("NODE = %s\n",
> > axiom_node_to_string( return_val_node, env ));
> > > <  This prints out
> > "1234"
> > > firstNodeText = (axiom_text_t
> > > *)axiom_node_get_data_element(return_val_node, env);
> > > firstNodeString = axiom_text_get_value(firstNodeText,
> > env);
> > > printf("Return Value = %s\n",
> > firstNodeString);
> > >
> > > Return value is always printed as (null).
> > >
> > > --- Thanks
> > > Mark
> > >
> > >
> > -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Software Engineer, WSO2 Inc
> > http://wso2.org
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Using tcpmon with axis2_http_server

2008-10-15 Thread Rajika Kumarasiri
On Wed, Oct 15, 2008 at 11:36 PM, Raghu Udupa <[EMAIL PROTECTED]> wrote:
hi,
Pleaser refer http://ws.apache.org/commons/tcpmon/tcpmontutorial.html.
If you are using TCPmon C tool please try tcpmon -h for help.

-Rajika


 Hi,
>
>
>
> I am using axis2_http_server provided with axis2c 1.5.0 release for unit
> testing. The client and service applications are running properly. But, I
> can not see the messages in tcpmon. Is there any thing specific I need to
> specify in axis2.xml to get tcpmon to capture the messages. Client and the
> server applications run on Linux server.
>
>
>
> Thanks,
>
> Raghu
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Embedding the Axis2/C HTTP server in an application

2008-10-03 Thread Rajika Kumarasiri
On Sat, Oct 4, 2008 at 3:12 AM, Chris Rose
<[EMAIL PROTECTED]>wrote:
http://wso2.org/library/271

-Rajika


What is the right way to embed Axis2/C in my application?  I want to
> make use of Axis2/C to provide web services, but within our own
> application framework.
>
> So, I want to start up a thread with the HTTP server listening on a
> specified port, and then eventually be able to shut it down at some
> later time when our service management framework tells the server to
> quit gracefully.  In the meantime I want it to dispatch all incoming
> service requests to a library of my devising.
>
> Code samples would be fantastic, if anyone has any...
>
> --
> Chris Rose
> DeveloperPlanet Consulting Group
> (780) 577-8433
> [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: deploy of sample using axis2c

2008-09-30 Thread Rajika Kumarasiri
On Wed, Oct 1, 2008 at 12:32 AM, Sandro Javiel <[EMAIL PROTECTED]> wrote:

> Hi all,
>
Hi,
Did you follow the guidelines in the manual when deploying services with
Apache? Did you specify the services folder in httpd.conf ? You can look
into the axis2.log and the httpd.log to look into further information about
the error.

>
> I am trying to deploy a c++ based webservice with axis2c-1.5.0 integrated
> with apache-2.2.
> Although the libraries and other files (as xml and wsdl) are created and
> deployed to /usr/local/axis2c/services/
> I could not connect over the address http:///services/. I
> noticed that the Calculator example (found in sample/server) could not be
> connect when I changed the address "ws.apache.org" by "localhost".
>

BTW, what you mean by this ? Where did you change the address ?

-Rajika

>
> In both cases it is shown the message:
>
>
> This page contains the following errors:
>
> error on line 1 at column 1: Document is empty
>
> Below is a rendering of the page up to the first error.
>
>
> Thanks in advance!!
> --
> Sandro Caldeira Javiel
> FONeT
> +55 51 3076.1235
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: File permission error when I try to create a file in /tmp directory from a service running in axis2_http_server

2008-09-25 Thread Rajika Kumarasiri
On Fri, Sep 26, 2008 at 12:16 AM, Raghu Udupa <[EMAIL PROTECTED]> wrote:

>  Thanks, Rajika.
>
>
>
> I started the server deamon as root. Then, I did not have file permission
> error. Still, /tmp does have read and write permission for owner, group and
> others. So, I should have been able to write to /tmp even as a normal
> (non-root) user.
>

Yes, by default it is.

-Rajika

>
>
> Regards,
>
> Raghu
>
>
>  ------
>
> *From:* Rajika Kumarasiri [mailto:[EMAIL PROTECTED]
> *Sent:* Thursday, September 25, 2008 12:14 AM
> *To:* Apache AXIS C User List
> *Subject:* Re: File permission error when I try to create a file in /tmp
> directory from a service running in axis2_http_server
>
>
>
>
>
> On Thu, Sep 25, 2008 at 7:37 AM, Raghu Udupa <[EMAIL PROTECTED]> wrote:
> You should be able to create a file in you file system, using the service.
> Did you try creating a file in a location where you have permission ?
>
> -Rajika
>
> When I try to create a file in /tmp directory from a service created and
> running in axis2_http_server I am getting a file permission error. I need to
> store mime-encoded data received by a service to a file on the host on which
> axis2_http_server is running for my testing client application.
>
>
>
> What is the procedure to create a file inside an axis2c service?
>
>
>
> Thanks,
>
> Raghu
>
>
>
>
> --
> http://wso2.org/
> http://llvm.org/
> http://www.osdev.org/
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: File permission error when I try to create a file in /tmp directory from a service running in axis2_http_server

2008-09-24 Thread Rajika Kumarasiri
On Thu, Sep 25, 2008 at 7:37 AM, Raghu Udupa <[EMAIL PROTECTED]> wrote:
You should be able to create a file in you file system, using the service.
Did you try creating a file in a location where you have permission ?

-Rajika

>  When I try to create a file in /tmp directory from a service created and
> running in axis2_http_server I am getting a file permission error. I need to
> store mime-encoded data received by a service to a file on the host on which
> axis2_http_server is running for my testing client application.
>
>
>
> What is the procedure to create a file inside an axis2c service?
>
>
>
> Thanks,
>
> Raghu
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Getting started with Web Services

2008-09-17 Thread Rajika Kumarasiri
On Wed, Sep 17, 2008 at 10:17 PM, Danushka Menikkumbura
<[EMAIL PROTECTED]>wrote:


>  Looking on Amazon and B&N, the reviews are not all that impressive.
>> Have you read the book?
>
>
Sam,
In the mean time you can check how WS-* is used within Axis2/C to solve WS
scenarios. You can try samples in the distro, so you'll understand how WS-*
fits in the big picture.

-Rajika

>
>>
>>
>>
> The author of this book is a key contributor to Axis2 and a couple of other
> related Apache projects. So it must be really helpful. Anyway for any
> additional reading material, I recommend you refer to the library on WSO2
> OxygenTank [1] , the developer portal for SOA.
>
> [1] - http://wso2.org/library
>
> Danushka
>
> --
> Danushka Menikkumbura
> Technical Lead, WSO2 Inc.
>
> blog : http://danushka-menikkumbura.blogspot.com/
>
> http://wso2.com/ - "The Open Source SOA Company"
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Memory footprint

2008-09-11 Thread Rajika Kumarasiri
On Thu, Sep 11, 2008 at 1:40 PM, Milinda Pathirage <
[EMAIL PROTECTED]> wrote:
You can use top as well attach to a particular process- here
simple_http_server process, try with top -P with process ID.

-Rajika

> I think I have made a mistake in previous mail by looking at GNOME System
> Monitor to get the memory used by simple axis server. I found this mail with
> the subject 'HowTo: Profile Memory in a Linux System'[1] while searching the
> net. Using the ps command mentioned in that, I have found following values
> in Ubuntu Linux 8.04.
>
> Simple Axis Server:
> RSS : 1780KB
> VSIZE: 3420KB
>
> Echo Client(I used a sleep call after doing the actual request using
> axis2_svc_client and measure the memory taken by the echo process):
> RSS: 1808 KB
> VSIZE: 3104KB
>
> Definitions:
> ---
> RSS (Resident Set Size) - The portion of a process that exists in physical
> memory (RAM). The rest of the program exists in swap. If the computer has
> not used swap, this number will be equal to VSIZE.
> VSIZE (Virtual memory SIZE) - The amount of memory the process is currently
> using. This includes the amount in RAM and the amount in swap.
>
> Links:
> 
> [1] http://mail.nl.linux.org/linux-mm/2003-03/msg00077.html
>
> Thanks,
> Milinda
>
>
>
> On Thu, Sep 11, 2008 at 10:51 have founAM, Supun Kamburugamuva <
> [EMAIL PROTECTED]> wrote:
>
>> A echo client invocation uses 3440k of memory in my Windows XP machine.
>> I've tested this with the math sample as well. It also consumes equal amount
>> of memory. Also the memory foot print for the simple axis2 server is in the
>> same range.
>>
>> Regards,
>> Supun
>>
>>
>> On Thu, Sep 11, 2008 at 9:18 AM, Milinda Pathirage <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hi,
>>> I did some simple tests to find out memory footprint. Here are the
>>> results:
>>>
>>> Simple Axis2/C Server(Sleeping): 400KB
>>> When I run echo sample simple axis server takes 472KB memory even after
>>> echo requests are handled.
>>>
>>> There may be memory leaks in simple axis server because most of the time
>>> we use it only for testing purposes. If you want to use simple axis2 server,
>>> I think we'll be able to fix those leaks.
>>>
>>> Thanks
>>> Milinda
>>>
>>>
>>> On Thu, Sep 11, 2008 at 7:32 AM, Rajika Kumarasiri <[EMAIL PROTECTED]>wrote:
>>>
>>>>
>>>>
>>>> On Thu, Sep 11, 2008 at 3:23 AM, Saad Nader <[EMAIL PROTECTED]> wrote:
>>>> Interesting question!, I am not aware of the fact how much memory is
>>>> used by Axis2/C. But you should be able to measure it using few simple
>>>> tools, under Linux or Windows. In linux you can start the server and try
>>>> 'top' to observer the memory usage of the server by sending few requests to
>>>> it.
>>>>
>>>> -Rajika
>>>>
>>>>  Hello All,
>>>>>
>>>>>
>>>>>
>>>>> We're working on some middleware that will run on embedded devices.  We
>>>>> need to consider memory footprint before using the Axis2 system.  What is
>>>>> the typical memory footprint that a simple echo app uses for each module?
>>>>> We will be using the http sender and receiver.
>>>>>
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> 
>>>>>
>>>>> Saad Nader
>>>>>
>>>>> Middleware Engineer
>>>>>
>>>>> Powered By Gamespy
>>>>>
>>>>> www.poweredbygamespy.com
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> http://wso2.org/
>>>> http://llvm.org/
>>>> http://www.osdev.org/
>>>>
>>>
>>>
>>>
>>> --
>>> http://mpathirage.com
>>> http://wso2.org "Oxygen for Web Service Developers"
>>> http://wsaxc.blogspot.com "Web Services With Axis2/C"
>>>
>>
>>
>>
>> --
>> Software Engineer, WSO2 Inc
>>
>
>
>
> --
> http://mpathirage.com
> http://wso2.org "Oxygen for Web Service Developers"
> http://wsaxc.blogspot.com "Web Services With Axis2/C"
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Memory footprint

2008-09-10 Thread Rajika Kumarasiri
On Thu, Sep 11, 2008 at 3:23 AM, Saad Nader <[EMAIL PROTECTED]> wrote:
Interesting question!, I am not aware of the fact how much memory is used by
Axis2/C. But you should be able to measure it using few simple tools, under
Linux or Windows. In linux you can start the server and try 'top' to
observer the memory usage of the server by sending few requests to it.

-Rajika

>  Hello All,
>
>
>
> We're working on some middleware that will run on embedded devices.  We
> need to consider memory footprint before using the Axis2 system.  What is
> the typical memory footprint that a simple echo app uses for each module?
> We will be using the http sender and receiver.
>
>
>
> Thanks,
>
> 
>
> Saad Nader
>
> Middleware Engineer
>
> Powered By Gamespy
>
> www.poweredbygamespy.com
>
>
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Using Axis2/C with Objective-C

2008-09-10 Thread Rajika Kumarasiri
On Thu, Sep 11, 2008 at 4:02 AM, Meik Schuetz <[EMAIL PROTECTED]> wrote:
Once Axis2/C has ported to Max OS x. So you should be able to get the things
work easily.

-Rajika

> Dear all,
> I just came across the Axis2/C project (so please excuse me for the newbie
> questions) and it sounds very promising to me. I'd just like to know if
> anyone has experience in using the Axis2/C libraries in an Objective-C
> project. I just tries compiling the Axis source following the guide in the
> INSTALL document, but it gave me an error
>
> dir_handler.c:326: error: conflicting types for 'file_select'
> dir_handler.c:38: error: previous declaration of 'file_select' was here
>
> Am I lost or is there a way to make this framework work on Mac?
> Thanks a lot
> Best regards
> Meik
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: compiling rpath

2008-09-09 Thread Rajika Kumarasiri
On Tue, Sep 9, 2008 at 9:16 PM, Martina08 <[EMAIL PROTECTED]> wrote:
That error says it can't find the required shared libraries, there may be an
option to set the LD_LIBRARY_PATH from your IDE. Try setting LD_LIBRARY_PATH
to the location of Axis2/C libs.
-Rajika

>
> hi all,
> there is a real paradoxon. I built the executable file under the IDE named
> testaxis2. Compiling and Linking are without error. When i execute
> testaxis2
> under my IDE i get the error described above. When i execute testaxis2
> under
> the console it works! I dont understand the different, maybe it does
> concerned with the IDE setting debug. there are 3 possibilities
> debug,default and optimized.
> Perhaps somebody knows something more about these settings..
> best regard...by tomorrow
> --
> View this message in context:
> http://www.nabble.com/compiling-rpath-tp19390667p19395200.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Simple SOAP Simulators

2008-09-04 Thread Rajika Kumarasiri
On Thu, Sep 4, 2008 at 1:03 PM, Nikhil Koranne <[EMAIL PROTECTED]>wrote:

> Hi Rajika,
>
Hi,
You can do all three of these in command prompt, but not with a GUI with
Axis2/C.

-Rajika


>
> I am looking for 3 features :
>
> 1. Simultor should respond to my SOAP requests. (just plain simple
> response)
> 2. Simulator should send SOAP Faults
> 3. Simulator should allow to monitor SOAP messages.
>
> Thanks
> Nikhil
>
>
>
> - Original Message 
> From: Rajika Kumarasiri <[EMAIL PROTECTED]>
> To: Apache AXIS C User List 
> Sent: Thursday, September 4, 2008 12:39:56 PM
> Subject: Re: Simple SOAP Simulators
>
>
>
> On Thu, Sep 4, 2008 at 12:05 PM, Nikhil Koranne <[EMAIL PROTECTED]>wrote:
> What exactly do you want to do? Do you want to monitor the SOAP messages
> that travel through the wire ?
>
>> Hi,
>>
>> I would like to know if there are any open source GUI based SOAP
>> simulators available? I searched for some, but couldn't find much
>> information about.
>> Does Axis2C provide a simple request-response SOAP simulator?
>>
>> Please let me know.
>>
>> Thanks
>> Nikhil
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://wso2.org/
> http://llvm.org/
> http://www.osdev.org/
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Simple SOAP Simulators

2008-09-04 Thread Rajika Kumarasiri
On Thu, Sep 4, 2008 at 12:05 PM, Nikhil Koranne <[EMAIL PROTECTED]>wrote:
What exactly do you want to do? Do you want to monitor the SOAP messages
that travel through the wire ?

> Hi,
>
> I would like to know if there are any open source GUI based SOAP simulators
> available? I searched for some, but couldn't find much information about.
> Does Axis2C provide a simple request-response SOAP simulator?
>
> Please let me know.
>
> Thanks
> Nikhil
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Can Axis2 work on embedded systems

2008-09-02 Thread Rajika Kumarasiri
On Wed, Sep 3, 2008 at 6:03 AM, Saad Nader <[EMAIL PROTECTED]> wrote:
If you are talking about Axis2/C, then it is written in C and have a low
memory footprint. But you may need to do some optimization to axiom to get
the things working on an embedded system.

-Rajika

>  Hello All,
>
>
> Does Axis2 work on embedded systems with smaller amounts of memory and less
> CPU capabilities?  By less, I mean being able to run threads but not as
> powerful as an Intel processors (ARM9 for example).
>
>
>
>
>
> Thanks,
>
> 
>
> Saad Nader
>
> Middleware Engineer
>
> Powered By Gamespy
>
> www.poweredbygamespy.com
>
>
>



-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


Re: Question: WSDL file has references in an XSD file

2008-08-27 Thread Rajika Kumarasiri
On Wed, Aug 27, 2008 at 8:09 PM, Martina08 <[EMAIL PROTECTED]> wrote:
Yes, have a look at your WSDL file, you'll see XSD file is included there.

-Rajika

>
> Hi,
> I think in the wsdl file there is a location for the XSD file, so you dont
> have to add this to the command.
> But i'm not be sure.
> I generated stubs too and i didnt add the xsd file to the command. It works
> fine:) I'm glad there is somebody who works with axis2c so you can change
> experience 
> --
> View this message in context:
> http://www.nabble.com/Question%3A-WSDL-file-has-references-in-an-XSD-file-tp19181578p19182426.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://osdev.org/


Re: AXIS2 and AXIOM

2008-08-26 Thread Rajika Kumarasiri
On Tue, Aug 26, 2008 at 8:01 PM, Martina08 <[EMAIL PROTECTED]> wrote:

Have a look at this echo client sample, look how the pay load is built
there.
https://svn.apache.org/repos/asf/webservices/axis2/trunk/c/samples/client/echo/echo.c

-Rajika

>
> hi, i have some Problems to write a client by a given WSDL-File. First i
> have
> generate the stub-classes (i get one *.h and one *.c file). Then i work
> along the hello example. First Step is:
> Create the environment to be used by the client.
> env = axutil_env_create_all("example.log", AXIS_LOG_LEVEL_TRACE);
> client_home = AXIS2_GETENV("AXIS2C_HOME");
> ...
> then follow:Create an options instance, and set options.
> endpoint_uri = "http://localhost:8080/...";;
> stub = axis2_stub_create_exampleService(env, client_home, endpoint_uri);
>
> Then follow:Set options to service client instance
> 
>
> I did it a little bit different like the hello example, but i think it
> works. The main problem is the next step:
> Send the request and receive the response, Process the response
> I have read the AXIOM tutorial but i think this is very abstract. I dont
> know how i write a request and response function using AXIOM. I understand
> that you must create a tree structur with the nodes. But what is exactly a
> AXIOM_ELEMENT? How can i use SOAP
> A fragment of the wsdl document is like:
> 
>part name ="parameters" element="tns:ini"/>
> 
> ...
> ...
> 
>
>
>
>
> My question is, how i create the payload for request and receive Response?
> Is somewhere a good tutorial using AXIOM or other examples? Can somebody
> give me a few tipps to get better involve with AXIOM and Client
> programming?
>
> --
> View this message in context:
> http://www.nabble.com/AXIS2-and-AXIOM-tp19163204p19163204.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://osdev.org/


Re: compiling with gcc

2008-08-20 Thread Rajika Kumarasiri
On Wed, Aug 20, 2008 at 7:09 PM, Martina08 <[EMAIL PROTECTED]> wrote:
gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib
-laxis2_http_sender -laxis2_http_receiver *.c  -Wl,--rpath
-Wl,$AXIS2C_HOME/lib

-Rajika


> Hi,
> anyway i have problems to link Libraries i think. I dont know how to
> compile
> und link the math Example.
> I change the command to:
> gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib
> -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread
> -laxis2_http_sender -laxis2_http_receiver math_client.c axis2_math_stub.c
> axis2_math_stub.h -ldl -Wl,--rpath -Wl,$AXIS2C_HOME/lib
> but there are still the undefined reference errors:( Can somebody give me a
> right gcc command to compile and link the math-example with generated
> stubs?
>
>
>
> Martina08 wrote:
> >
> > ok i try it. In the manual the example includes only the hello.c file,
> > there is no additional header file for this example, that why it suffices
> > only compile and link the hello.c File. So i hope i solve my problem
> > otherwise i report my new problem again ;) Thanks for the fast help!!
> >
> >
> >
> > jakh wrote:
> >>
> >> On Wed, Aug 20, 2008 at 5:22 PM, Martina08 <[EMAIL PROTECTED]>
> >> wrote:
> >>
> >>>
> >>> hi,
> >>> yes i have set my $AXIS2C_HOME variable. I go over the manuals from
> >>> where i
> >>> have the gcc-command.
> >>> But i tried to compile the math example and not the hello example. I go
> >>> to
> >>> folder $AXIS2C_HOME/samples/client/math.  There are the 3 Files, which
> i
> >>> want to compile and link. The files are:
> >>> axis2_math_stub.c
> >>> axis2_math_stub.h
> >>> math_client.c
> >>> Must i include the stub files (.c and .h) into the command?
> >>
> >>
> >> Yes you do, seems like you have missed what is at the end of the command
> >> from the manual.
> >>
> >> -Rajika
> >>
> >>
> >>> I want to have
> >>> an executable File, which i can then use with the axis2 server...
> >>>
> >>> thanks for the answers...
> >>> salute
> >>>
> >>>
> >>>
> >>> Martina08 wrote:
> >>> >
> >>> > I want to build the math-example. My command is like the manual:
> >>> > gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/
> >>> -L$AXIS2C_HOME/lib
> >>> > -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread
> >>> > -laxis2_http_sender -laxis2_http_receiver math_client.c ldl
> >>> -Wl,--rpath
> >>> > -Wl,$AXIS2C_HOME/lib
> >>> >
> >>> > There is the error "Cannot find -laxutil ". I know the Libraries
> exist
> >>> and
> >>> > I set the $AXIS2C_HOME/lib to the LD_LIBRARY_PATH but this dont solve
> >>> the
> >>> > problem. In which folder I must execute this command?
> >>> > Have i forget something?
> >>> > When i use the complete Path to the libs like:
> >>> > gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/
> >>> -L$AXIS2C_HOME/lib
> >>> > -L$AXIS2C_HOME/lib/libaxutil.so -L$AXIS2C_HOME/lib/libaxis2_axiom.so
> >>> > ...
> >>> > then the compiler find the libraries(there is no error) but then i
> get
> >>> > much more "undefined reference to"-errors in function main like:
> >>> > undefined reference to axutil_env_create_all
> >>> > undefined reference to axutil_strcmp
> >>> > .
> >>> > .
> >>> > .
> >>> > Does somebody know where is my mistake?
> >>> >
> >>>
> >>> --
> >>> View this message in context:
> >>> http://www.nabble.com/compiling-with-gcc-tp19066875p19067851.html
> >>> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >>
> >> --
> >> http://wso2.org/
> >> http://llvm.org/
> >> http://osdev.org/
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/compiling-with-gcc-tp19066875p19069660.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://osdev.org/


Re: compiling with gcc

2008-08-20 Thread Rajika Kumarasiri
On Wed, Aug 20, 2008 at 5:22 PM, Martina08 <[EMAIL PROTECTED]> wrote:

>
> hi,
> yes i have set my $AXIS2C_HOME variable. I go over the manuals from where i
> have the gcc-command.
> But i tried to compile the math example and not the hello example. I go to
> folder $AXIS2C_HOME/samples/client/math.  There are the 3 Files, which i
> want to compile and link. The files are:
> axis2_math_stub.c
> axis2_math_stub.h
> math_client.c
> Must i include the stub files (.c and .h) into the command?


Yes you do, seems like you have missed what is at the end of the command
from the manual.

-Rajika


> I want to have
> an executable File, which i can then use with the axis2 server...
>
> thanks for the answers...
> salute
>
>
>
> Martina08 wrote:
> >
> > I want to build the math-example. My command is like the manual:
> > gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib
> > -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread
> > -laxis2_http_sender -laxis2_http_receiver math_client.c ldl -Wl,--rpath
> > -Wl,$AXIS2C_HOME/lib
> >
> > There is the error "Cannot find -laxutil ". I know the Libraries exist
> and
> > I set the $AXIS2C_HOME/lib to the LD_LIBRARY_PATH but this dont solve the
> > problem. In which folder I must execute this command?
> > Have i forget something?
> > When i use the complete Path to the libs like:
> > gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib
> > -L$AXIS2C_HOME/lib/libaxutil.so -L$AXIS2C_HOME/lib/libaxis2_axiom.so
> > ...
> > then the compiler find the libraries(there is no error) but then i get
> > much more "undefined reference to"-errors in function main like:
> > undefined reference to axutil_env_create_all
> > undefined reference to axutil_strcmp
> > .
> > .
> > .
> > Does somebody know where is my mistake?
> >
>
> --
> View this message in context:
> http://www.nabble.com/compiling-with-gcc-tp19066875p19067851.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://osdev.org/


Re: compiling with gcc

2008-08-20 Thread Rajika Kumarasiri
On Wed, Aug 20, 2008 at 4:13 PM, Martina08 <[EMAIL PROTECTED]> wrote:
Did you set the AXIS2C_HOME variable?
Try echo $AXIS2C_HOME from where you issue the compilation option for math
client

-Rajika

>
> I want to build the math-example. My command is like the manual:
> gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib
> -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread
> -laxis2_http_sender -laxis2_http_receiver math_client.c ldl -Wl,--rpath
> -Wl,$AXIS2C_HOME/lib
>
> There is the error "Cannot find -laxutil ". I know the Libraries exist and
> I
> set the $AXIS2C_HOME/lib to the LD_LIBRARY_PATH but this dont solve the
> problem. In which folder I must execute this command?
> Have i forget something?
> When i use the complete Path to the libs like:
> gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib
> -L$AXIS2C_HOME/lib/libaxutil.so -L$AXIS2C_HOME/lib/libaxis2_axiom.so
> ...
> then the compiler find the libraries(there is no error) but then i get much
> more "undefined reference to"-errors in function main like:
> undefined reference to axutil_env_create_all
> undefined reference to axutil_strcmp
> .
> .
> .
> Does somebody know where is my mistake?
> --
> View this message in context:
> http://www.nabble.com/compiling-with-gcc-tp19066875p19066875.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/
http://osdev.org/


Re: Max call of service

2008-08-19 Thread Rajika Kumarasiri
On Tue, Aug 19, 2008 at 3:07 PM, Michael Sutter
<[EMAIL PROTECTED]>wrote:

>  Hello Supun,
>
> what log file do you mean - the axis.log or the error log of the apache?
> Nevertheless, I don't found the exception in the log files and they contain
> a lot of messages as the log level is set to trace.
> Also I think that the service is running fine with the svn version, maybe
> it was
> a fixed memory leak with the apache module.
>

Normally the created resources are deallocated when the local object get
destroyed, i.e. when you finished execution the function, as Supun noted.

Can you start the apache server on valgrind and check whether you hit any
memory leaks? Hope you do have access to a linux box.

-Rajika

>
>
> Kind regards
> Michael
>
> Supun Kamburugamuva wrote:
>
> Hi Michael,
>
> By looking at your code it seems that it doesn't lead to a memory leak.
> Every time that function is called the object will be created and when the
> function finishes execution the object will be destroyed. I think there is
> another memory leak in your code. But I doubt that your problem is a result
> of a memory leak. Can you please send your log file?
>
> Supun..
>
> On Tue, Aug 19, 2008 at 1:47 PM, Michael Sutter <[EMAIL PROTECTED]
> > wrote:
>
>> Hello Supun,
>>
>> sorry for that. The stack is not created by me. It is the normal program
>> run-time stack from the service and the
>> object is not created as a global variable.
>>
>> The code looks like this:
>> adb_getStatusResponse_t *
>> axis2_skel_DAQStatus_getStatus(const axutil_env_t *env)
>>  {
>>   try {
>> FdDaq fd_daq;
>>   }
>>   catch (...) {
>>   }
>>   return return_node;
>> }
>>
>> where fd_daq is the object.
>>
>> Kind regards
>> Michael
>>
>> Supun Kamburugamuva wrote:
>>
>> Hi Michail,
>>
>> The stack the you mentioned is little bit confusing. Is it the stack in a
>> normal process run-time or a stack that you have created? If it is the stack
>> in a normal program run-time where are you creating your object in the code?
>> Are you creating the object as a global variable?
>>
>> Thanks,
>> Supun..
>>
>> On Tue, Aug 19, 2008 at 1:18 PM, Michael Sutter <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hello list,
>>>
>>> I have a problem with a Axis2 service and need some input if my service
>>> is developed the right
>>> way. Inside my service I make a call to a external library. So I make a
>>> variable of the object and
>>> put it on the stack. So normally the instance should be destroyed when
>>> the scope is lost. I think
>>> this is done when the execution of the service is finished and the output
>>> is given back to the client.
>>> Am I right?
>>>
>>> By doing this I had a strange problem. The mentioned service is called
>>> every 10 sec to give a state
>>> to the client. First I was running the service in Axis2 version 1.4 and
>>> get about every two hours an
>>> AxisFault: Too many open files. So I think that the destructor of my
>>> variable was not called and that
>>> I have memory leaks. After that I integrated a log message in the
>>> destructor to see, if it is called.
>>> Normally my service is running inside an Apache installation and I never
>>> saw the output of the log
>>> message.
>>>
>>> Nevertheless if I run the service in axis simple server I see the log
>>> output and so I think the implementation
>>> of my service is correct. When running the service inside the axis simple
>>> server I also get AxisFault,
>>> but after about 12 - 14 hours runtime. After searching the mailing list I
>>> found, that there is a memory
>>> leak in the mod_axis apache modul. So I compiled Axis2 from SVN and the
>>> service is running for about
>>> 17 hours without any problem.
>>>
>>> So to my question: Have I done something wrong in the implementation of
>>> my service by putting the instance
>>> on the stack and not explicitly calling the destructor or could it be
>>> that the SVN version fixes the problem?
>>> Nevertheless, why I'm getting the message by running the service inside
>>> the axis simple server, where I
>>> see that the destructor is called?
>>>
>>> Kind regards
>>> Michael
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> --
>> Software Engineer, WSO2 Inc
>>
>>
>
>
> --
> Software Engineer, WSO2 Inc
>
>


-- 
http://wso2.org/
http://llvm.org/


Re: Axis2c Soap Engine

2008-07-24 Thread Rajika Kumarasiri
On Wed, Jul 23, 2008 at 10:48 AM, Shobha AC <[EMAIL PROTECTED]> wrote:

Interesting! axiom sources (.c) gave me a total of 26046 LOC using

find axiom/  -type f  -name  *.c  -exec wc -l {} \; | awk 'BEGIN { loc = 0;
} {loc += $1;} END{print  loc;} '


-Rajika

>  Dear All,
>
> Can u pls give me the source code size of (KLOC) ONLY Axis2c
> Soap Engine, excluding the Axis2c HTTP server, and source related to Apache,
> IIS etc..
>
>
>
> Regards,
>
>Shobha
>



-- 
http://wso2.org/
http://llvm.org/


Re: httpd daemon and exceptions

2008-07-23 Thread Rajika Kumarasiri
On Wed, Jul 23, 2008 at 8:09 PM, Michael Sutter <[EMAIL PROTECTED]>
wrote:

> Hello list,
>
Hello Michael,
If you post the exact error message, logs and the back trace of the
segmentation fault it'd be easy to determine the exact problem.

-Rajika

>
> I have a strange error when running axis services with httpd daemon and
> maybe somebody can help me.
> I have a service running which is calling system libraries. Special here
> is, that the libraries can throw
> exceptions, so I put the calls in a try - catch block.
>
> Nevertheless every time such a exception is thrown the service in my httpd
> gets a segmentation fault, so
> it is not possible for me to get the error values of the service back to
> the client.
>
> Does anybody know about this behavior or how to fix it?
> I'm running Apache 2.0.49 and GCC 3.3.3.
>
> Kind regards
> Michael
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://wso2.org/
http://llvm.org/


Re: echo.wsdl file for Axis echo sample

2008-07-16 Thread Rajika Kumarasiri
On Wed, Jul 16, 2008 at 6:37 PM, Mauney <[EMAIL PROTECTED]> wrote:

>
> Hi all,
> I've just downloaded Axis2c and tried to build echo service and echo client
> on MS VC. Everything looks OK. I try to access to echo service from browser
> by using  webservice.htc but it requires echo.wsdl. Do you have echo.wsdl
> file available? Where I can get it? Or how I can make it?
> Best regards,
> MPN


IIRC, Axis2/C does not have the support for ?wsdl yet.

-Rajika

>
> --
> View this message in context:
> http://www.nabble.com/echo.wsdl-file-for-Axis-echo-sample-tp18487054p18487054.html
> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
comp.lang.c - http://groups.google.com/group/comp.lang.c/topics


Re: SSL related memory leak ?

2008-07-16 Thread Rajika Kumarasiri
On Wed, Jul 16, 2008 at 6:52 PM, Rafal Metkowski <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I've written small client using Axis2C and I've noticed memory leaks
> when connecting to service with https.
>
> I've checked with the valgrind and got following results:
> valgrind --leak-check=full
> ==8057== 58,000 (292 direct, 57,708 indirect) bytes in 1 blocks are
> definitely lost in loss record 9 of 9
> ==8057==at 0x4006AEE: malloc (vg_replace_malloc.c:207)
> ==8057==by 0x7B4E4CD: (within /lib/libcrypto.so.0.9.8g)
> ==8057==by 0x7B4EB4E: CRYPTO_malloc (in /lib/libcrypto.so.0.9.8g)
> ==8057==by 0x34C529: SSL_new (in /lib/libssl.so.0.9.8g)
> ==8057==by 0x40EB9C2: axis2_ssl_utils_initialize_ssl (ssl_utils.c:133)
> ==8057==by 0x40EB7E6: axutil_stream_create_ssl (ssl_stream.c:104)
> ==8057==by 0x40EABB1: axis2_http_client_send (http_client.c:216)
> ==8057==by 0x40E8A9D: axis2_http_sender_send (http_sender.c:1064)
> ==8057==by 0x40E32B4: axis2_http_transport_sender_write_message
> (http_transport_sender.c:771)
> ==8057==by 0x40E3AC3: axis2_http_transport_sender_invoke
> (http_transport_sender.c:306)
> ==8057==by 0x407DF6A: axis2_engine_send (engine.c:176)
> ==8057==by 0x40A5BAB: axis2_op_client_two_way_send (op_client.c:1157)
> ...
> ==8057== LEAK SUMMARY:
> ==8057==definitely lost: 332 bytes in 4 blocks.
> ==8057==indirectly lost: 57,900 bytes in 596 blocks.
> ==8057==  possibly lost: 0 bytes in 0 blocks.
> ==8057==still reachable: 28,292 bytes in 1,887 blocks.
> ==8057== suppressed: 0 bytes in 0 blocks.
>
> As I expected when I changed https to plain http the problem disapeared:
> ==9065== LEAK SUMMARY:
> ==9065==definitely lost: 40 bytes in 3 blocks.
> ==9065==indirectly lost: 192 bytes in 6 blocks.
> ==9065==  possibly lost: 0 bytes in 0 blocks.
> ==9065==still reachable: 300 bytes in 3 blocks.
> ==9065== suppressed: 0 bytes in 0 blocks.
>
> I looked at the code and it seems axis2_ssl_utils_cleanup_ssl function
> isn't called in case of successful connection.
> Is it a bug in Axis2C or am I missing something ?

There seems to be some memory leaks. Can you please raise a JIRA issue here.

http://issues.apache.org/jira/browse/AXIS2C

-Rajika


>
>
> Thanks for help
>
> Rafal Metkowski
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
comp.lang.c - http://groups.google.com/group/comp.lang.c/topics


Re: Loading mod_axis2.so module into Apache

2008-07-16 Thread Rajika Kumarasiri
On Thu, Jul 17, 2008 at 2:25 AM, Alex Bolgarov <[EMAIL PROTECTED]> wrote:

> Well, our server machine is not supposed to have development tools at
> all. So I can't compile the Axis2/C on it.
>
> Then, how it is supposed to work if I use the Axis2C binary distribution?

1. Unzip the binary to a location,
2. Copy the mod_axis2.so to the Apache module directory.
3. Set the LoadModule and the Axis2RepoPath in httpd.conf
Restart the Apache server.

-Rajika

>
>
> And it should have nothing to do with environment variables settings
> (other then possible LD_LIBRARY_PATH) because Apache can't load the
> module at all, because the ldopen() can't find the shared libraries
> that this module refers to, and I can't load those shared libraries
> manually using LoadFile directive because of the circular reference
> problem as I described. So at the moment of failure no Axis2/C code
> has executed yet that could have a chance to fix something (like, to
> find and load libraries from the location pointed by the AXIS2C_HOME
> or by any parameter in the Apache config file. Or am I wrong here?
>
> What I don't understand is why (and how) it works if I run the Apache
> server on the machine where I compile the Axis2C. Does the linker,
> when it builds the libmod_axis2.so, embeds into this library the
> pathes to the other Axis2/C libraries so, when I copy the mod_axis2.so
> into the Apache modules directory on the same machine, it finds them
> using those embedded pathes?
>
>
> Thank you,
>
>alex.
>
> On Wed, Jul 16, 2008 at 3:28 PM, lahiru gunathilake <[EMAIL PROTECTED]>
> wrote:
> > Hi Alex,
> >
> > I think you have to set AXIS2C_HOME environment variable on your server
> > machine. And why are you copying libraries from one machine to another
> why
> > don't you compile Axis2C on you server machine.AFAIK if your first
> machine
> > and the second machine are different,different in the sense first machine
> is
> > dual core and the server machine is core 2 duo or something else you have
> to
> > recompile Axis2C on your server machine and create libmod_axis2.so
> otherwise
> > previously compiled library won't work on the server machine.
> >
> > Regards
> > Lahiru
> >
> > On Thu, Jul 17, 2008 at 12:03 AM, Alex Bolgarov <[EMAIL PROTECTED]>
> wrote:
> >>
> >> Hi,
> >>
> >> How do you load a mod_axis2.so module into the Apache when you copy
> >> the Axis2/C libraries to some directory - for example, when you are
> >> using the binary Axis2/C distribution, or just build Axis2/C from
> >> source on one machine (and installed itto some directory) and then
> >> copy Axis2/C module and libraries to some directory on some othar
> >> machine with Apache server?
> >>
> >> Well, here is a longer description of the problem:
> >>
> >> Say I'm using a source distribution. I download the .tar.gz source
> >> tarball, untar, configure it with some install directory (--prefix)
> >> and build/install it, now I have this install directory with the build
> >> by me Axis2/C.
> >>
> >> I have Apache server running in this machine, so I copy mod_axis2.so
> >> into the Apache installation, I update the Apache config to load the
> >> module, I define the Axis2/C repository, I develop a web service and
> >> run tests against it. All is fine up to this point.
> >>
> >> Now I want to use the Axis2/C with the Apache server that is running
> >> on another machine.
> >>
> >> I copy everything from the install directory from the build machine
> >> into some directory on this other machine with Apache (let's call this
> >> directory "/home/alex/axis2c-dist").
> >>
> >> I rename libmod_axis2.so.0.4.0 to mod_axis2.so and copy it into the
> >> Apache's modules directory.
> >>
> >> Now I change the Apache config file so that it contains the line
> >>
> >>LoadModule axis2_module modules/mod_axis2.so
> >>
> >> I try to start Apache:
> >>
> >>$ apachectl start
> >>
> >> and see following error:
> >>
> >> Cannot load /home/alex/httpd/modules/mod_axis2.so into server:
> >> libaxis2_engine.so.0: cannot open shared object file: No such file or
> >> directory
> >>
> >> Now, I happen to know about the LoadFile Apache directive :)
> >>
> >> I add the LoadFile directive for the libaxis2_engine.so so that Apache
> >> loads it from the /home/alex/axis2c-dist directory, now the Apache
> >> config looks like this:
> >>
> >>LoadFile /home/alex/axis2c-dist/lib/libaxis2_engine.so.0.4.0
> >>LoadModule axis2_module modules/mod_axis2.so
> >>
> >> I try to start Apache again:
> >>
> >>$ apachectl start
> >>
> >> and now see:
> >>
> >> Cannot load /home/alex/axis2c-dist/lib/libaxis2_engine.so.0.4.0 into
> >> server: libneethi.so.0: cannot open shared object file: No such file
> >> or directory
> >>
> >> OK, I add LoadFile directives for the libneethi.so, and so on, when I
> >> finally arrive to the following config:
> >>
> >>LoadFile /home/alex/axis2c-dist/lib/libaxutil.so.0.4.0
> >>LoadFile /home/alex/axis2c-dist/lib/libguththila.so.0.4.0
> >>Loa

Re: Loading mod_axis2.so module into Apache

2008-07-16 Thread Rajika Kumarasiri
On Thu, Jul 17, 2008 at 12:03 AM, Alex Bolgarov <[EMAIL PROTECTED]> wrote:

> Hi,
>
> How do you load a mod_axis2.so module into the Apache when you copy
> the Axis2/C libraries to some directory

Apache load mod_axis2 using the path in  Axis2/c Loadmodule directives.(

LoadModule axis2_module MOD_AXIS2_SO_PATH)

 - for example, when you are
> using the binary Axis2/C distribution, or just build Axis2/C from
> source on one machine (and installed itto some directory) and then
> copy Axis2/C module and libraries to some directory on some othar
> machine with Apache server?

So in the second machine, in which  where you runs Apache you need to
configure the
It's you compile the source in a once machine, and then execute the binary
in once machine. Some times some issues can be occurred if the two
architectures are different from each other.

>
>
> Well, here is a longer description of the problem:
>
> Say I'm using a source distribution. I download the .tar.gz source
> tarball, untar, configure it with some install directory (--prefix)
> and build/install it, now I have this install directory with the build
> by me Axis2/C.
>
> I have Apache server running in this machine, so I copy mod_axis2.so
> into the Apache installation, I update the Apache config to load the
> module, I define the Axis2/C repository, I develop a web service and
> run tests against it. All is fine up to this point.
>
> Now I want to use the Axis2/C with the Apache server that is running
> on another machine.
>
> I copy everything from the install directory from the build machine
> into some directory on this other machine with Apache (let's call this
> directory "/home/alex/axis2c-dist").

Add
LoadModule axis2_module path_of_mod_axis2
Axis2RepoPath /home/alex/axis2c-dist


>
>
> I rename libmod_axis2.so.0.4.0 to mod_axis2.so and copy it into the
> Apache's modules directory.
>
> Now I change the Apache config file so that it contains the line
>
>LoadModule axis2_module modules/mod_axis2.so
>
> I try to start Apache:
>
>$ apachectl start
>
> and see following error:
>
> Cannot load /home/alex/httpd/modules/mod_axis2.so into server:
> libaxis2_engine.so.0: cannot open shared object file: No such file or
> directory
>
> Now, I happen to know about the LoadFile Apache directive :)
>
> I add the LoadFile directive for the libaxis2_engine.so so that Apache
> loads it from the /home/alex/axis2c-dist directory, now the Apache
> config looks like this:

You need to add the Axis2Repo path in httpd.conf.
Did you have a look at here ?
http://ws.apache.org/axis2/c/docs/axis2c_manual.html#mod_axis2


-Rajika

>
>
>LoadFile /home/alex/axis2c-dist/lib/libaxis2_engine.so.0.4.0
>LoadModule axis2_module modules/mod_axis2.so
>
> I try to start Apache again:
>
>$ apachectl start
>
> and now see:
>
> Cannot load /home/alex/axis2c-dist/lib/libaxis2_engine.so.0.4.0 into
> server: libneethi.so.0: cannot open shared object file: No such file
> or directory
>
> OK, I add LoadFile directives for the libneethi.so, and so on, when I
> finally arrive to the following config:
>
>LoadFile /home/alex/axis2c-dist/lib/libaxutil.so.0.4.0
>LoadFile /home/alex/axis2c-dist/lib/libguththila.so.0.4.0
>LoadFile /home/alex/axis2c-dist/lib/libaxis2_parser.so.0.4.0
>LoadFile /home/alex/axis2c-dist/lib/libaxis2_axiom.so.0.4.0
>LoadFile /home/alex/axis2c-dist/lib/libneethi.so.0.4.0
>LoadFile /home/alex/axis2c-dist/lib/libaxis2_http_common.so.0.4.0
>LoadFile /home/alex/axis2c-dist/lib/libaxis2_engine.so.0.4.0
>
>LoadModule axis2_module modules/mod_axis2.so
>
> But now, after I try to start Apache, I see new error:
>
> Cannot load /home/alex/axis2c-dist/lib/libaxis2_http_common.so.0.4.0
> into server: /home/alex/axis2c-dist/lib/libaxis2_http_common.so.0.4.0:
> undefined symbol: axis2_handler_invoke
>
> Which means that the libaxis2_engine.so depends on the
> libaxis2_http_common.so, and requires it to be loaded by Apache first,
> but the libaxis2_http_common.so contains a reference to undefined
> symbol "axis2_handler_invoke", that is defined by the
> libaxis2_engine.so. (Yes, I used 'nm libaxis2_engine.so | grep
> axis2_handler_invoke" to check that this symbol is indeed defined in
> this library.)
>
> Circular dependency?
>
> How do I break it?
>
> (note that the same thing happens if I download the binary
> distribution, untar it into some directory and copy the mod_axis2 into
> the Apache moddules directory. Up to the same point I can use LoadFile
> to load Axis2/C libraries, but then again I see this circular
> dependency)
>
>
> Thank you,
>
>alex.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
comp.lang.c - http://groups.google.com/group/comp.lang.c/topics


Re: Axis2/C inside Eclipse

2008-07-03 Thread Rajika Kumarasiri
On Fri, Jul 4, 2008 at 12:18 AM, Mauricio Porto <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I am trying to learn about Axis2/C and I would like to use the Eclipse IDE
> since I am used to working with it in Java projects.
>
> Is there some documents regarding how to set an Eclipse project to work
> with Axis2/C inside Eclipse? I would like to try Axis2/C and its related
> projects (like Savan, Rampart, etc.) in the same environment.

Currently most of the developers are using vim, Microsoft  Visual studio  or
Anjuta for developments works. AFAIK there is no any eclipse project for
Axis2/C. And of course it'd be nice if we can
have an eclipse project for Axis2/C. The information for available IDEs can
be found  here[1].

[1] - https://svn.apache.org/repos/asf/webservices/axis2/trunk/c/ides/

-Rajika

>
>
> Any help would be greatly appreciated.
>
> Best regards,
>
> Mauricio Porto
>
>


-- 
comp.lang.c - http://groups.google.com/group/comp.lang.c/topics


Re: Why Axis2C ?

2008-07-01 Thread Rajika Kumarasiri
On Tue, Jul 1, 2008 at 11:37 AM, vamsi krishna <[EMAIL PROTECTED]> wrote:

> Hi Friends,
>
> Can any of you answer
>
> 1. Why should we use Axis2C when we have other tools like
> gSoap?
>
> 2. What are the differentiating factors between Axis2C and
> gSoap?
>
There was a rough comparison between gSoap and Axis2/C some time back in the
same list.

-Rajika

> 3. Isn't Axis2C heavier compared to gSoap, with its Axiom
> architectire? If no, why? If yes, what other advantages of Axiom is making
> us use it with Axis2C? [In terms of memory usage, efficiency, speed, etc.]
>
>
>
>Eagerly waiting for your reply.
>
>
>  Vamsi, IIIT-Hyd.
>
>


-- 
comp.lang.c - http://groups.google.com/group/comp.lang.c/topics


Re: Bridging Axis2c and Apache http v 2.0

2008-07-01 Thread Rajika Kumarasiri
Can you set the debug level of Axis2/C to debug in httpd.conf and attach(if
possible) the axis2.log and the error_log ? That would be helpful to figure
our the exact problem.

-Rajika

On Tue, Jul 1, 2008 at 5:39 PM, Supun Kamburugamuva <[EMAIL PROTECTED]>
wrote:

> Hi Shoba,
>
> It is hard to figure out the error with the provided information. But these
> are some of the things that can go wrong.
>
> Invalid configuration in the httpd.conf
> File system access rights problems with the Axis2/C directory or axis2/c
> log file
> Invalid axis2/c configurations. i.e invalid services
>
> Does the axis2_http_server working fine? Are you using a binary version of
> Axis2/C/ The binary is built with Apache 2.2. So it can be a problem as
> well.
>
> Supun..
>
>
>
> On Tue, Jul 1, 2008 at 4:43 PM, Shobha AC <[EMAIL PROTECTED]> wrote:
>
>>  Dear All,
>>
>> In my target (ARM Processor) over montavista linux, I already
>> have apache http v2.0.52 running.
>>
>> I am trying to bridge the axis2c with apache http by generating the
>> mod_axis2 as mentioned in section 11.1 and 11.3 in axis2c_manual.html.
>>
>>
>>
>> When I try to start the apache after deploying the mod_axis2, the service
>> comes up with httpd[defunct] when chk through ps ax command.
>>
>> Also when I try to browse through URL :http://IPAddress/, am not able to
>> see any page.
>>
>>
>>
>> Suspecting that mod_axis2 library might not have been generated properly
>> as its crashing.
>>
>>
>>
>> When we checked the apache\error_log we found "Segmentation Fault"
>>
>>
>>
>> Can anyone pls help us in resolving this issue.
>>
>>
>>
>> Best regards,
>>
>>Shobha
>>
>>
>>
>
>


-- 
comp.lang.c - http://groups.google.com/group/comp.lang.c/topics