Re: Is AXIS2/C what I need?

2007-08-22 Thread Michael Sutter

Hello,

I tested axis2 with c++ and was not able to get it running. But I 
communicated with some one and he told me, that it is working.

If anybody knows how it goes it would be very nice to tell it me.
What I tried is to compile a axis2c service with g++. With some tricks 
the compiling and linkings works. But the call of the service always 
ends in a segmentation fault.


Regards Michael

Carlos Escobar wrote:

Samisa:

By your reply i can say over safe ground that i can use axis and/or axis2 (both 
for c/c++) in a production environment without surprises, am i right?

Well, another reason for stopping our trying axis was due to the difficulties 
we had installing it, hope you or any of the mailing list members can help... 
i'll be posting my experience tomorrow at work (i'm at home now), but what i 
recall is always having trouble with the AxisXMLParser.Dll thing. I haven't 
fully tried Axis 2 for C/C++, but I'd like to hear comments/recommendations on 
which one would be better to use.

Thanks

Carlos
-- Original Message --
From: Samisa Abeysinghe <[EMAIL PROTECTED]>
Reply-To: "Apache AXIS C User List" 
Date:  Wed, 22 Aug 2007 06:53:47 +0600

  

Carlos Escobar Zarzar wrote:


Hi Frank,

It has to.. at our company we ceased researching axis due to it's 
development status, but have been using gSOAP for most of our C/C++ 
webservices, and of course, they all pack a wsdl with them ;) now 
where that parser is being used I don't know, but I can tell for sure 
it does parse them.
  

Axis2/C also have the contract first model of development.

We had success communicating a webservice written in a z/OS server 
with a Windows XP C++ client which was built using gSOAP.
  
Axis2/C has proved to interop with .NET and J2EE with basic SOAP as well 
as WS-* level.


Samisa...


Hope that helps

Carlos

Frank Zhou escribió:
  

Thanks much for your replies. I had quite a bit of
experience with AXIS-J but not gSOAP or AXIS-c. Does
gSOAP come with a WSDL parser with APIs to allow me
traverse the various parts of a WSDL? In my
application, I do not intend to deploy just one web
services (so no code generation), I need to be able to
parse any standard WSDLs.

Thanks much.
Frank
--- cara <[EMAIL PROTECTED]> wrote:

  


Frank,

Hi again. Just to cover our reasons for using gsoap:

1. It is older software ... fewer bugs. Lower risk
for a production project.
2. We used it for an rpc wsdl, so nothing too fancy
as far as wsdls go.
3. Our legacy C++ software developers and
integration team knows almost
nothing about building C++ code with ant (they
dislike all things java).
4. Axis2 for java was not ready for production so
(at the time) we did not
consider Axis2/c.

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

  

Frank Zhou wrote:
  


Hi All,

I am trying to build a web service application

  

in c++,

  

and now investigate to see if AXIS2/c can

  

satisfy my

  

needs. Specifically, I have the following
requirements:

(1) The library supports common web services

  

standards

  

 like SOAP/HTTP/WSDL et cetera. I will use it to

  

build

  

 a web service client application (web service
 consumer).


  

Axis2/C can handle SOAP over HTTP. But there are
  


some TODOs pending in

  

WSDL space.
  


(2) It should provides a rich set of APIs for me

  

to

  

 traverse through a WSDL and make SOAP/HTTP

  

calls. In

  

 particular, I need a WSDL parser so that I can

  

parse

  

a
 WSDL (given the WSDL file or the URL)to get the
 definitions. I DO NOT NEED TO CONVERT THE WSDL

  

TO

  

 C++ code, just need to parse a WSDL to get the
 definitions, later on I will traverse the

  

parsed

  

 objects to get the services, operations,

  

messages

  

 and types (XML schemas) et cetera to build my

  

only

  

 datastore for a given WSDL. This way I can
 dynamically handle different WSDLs in my

  

application

  

 without generating the c++ code stubs every

  

time.

  

As mentioned earlier, there is a piece of code
  


written in Axis2/C called

  

woden, that can deal with the WSDL functionality
  


that you are looking for.

  

Unfortunately that is not in the main source tree,
  


because we could not

  

maintain it -  due to lack of contributors in that
  


space.

  

At some point, h

Problems building SVN version

2007-08-22 Thread Roland Landertshamer
Hello,

I'm new to Axis2/C and wanted to install the current SVN version (revision 
568555) on a Gentoo Linux machine. When i try to build it i get the following 
error:

...
Making all in platforms/unix
make[5]: Entering directory `/var/edutain/axis2c-SVN/util/src/platforms/unix'
/bin/sh ../../../libtool --tag=CC   --mode=compile 
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include 
-I../../../include/platforms -I../../../include/platforms/unix-g -O2 
-D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -Werror  
-MT 
uuid_gen_unix.lo -MD -MP -MF .deps/uuid_gen_unix.Tpo -c -o uuid_gen_unix.lo 
uuid_gen_unix.c
mkdir .libs
 
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../include 
-I../../../include/platforms -I../../../include/platforms/unix -g -O2 
-D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -Werror 
-MT 
uuid_gen_unix.lo -MD -MP -MF .deps/uuid_gen_unix.Tpo -c 
uuid_gen_unix.c  -fPIC -DPIC -o .libs/uuid_gen_unix.o
uuid_gen_unix.c: In function 'axutil_uuid_get_mac_addr':
uuid_gen_unix.c:216: error: storage size of 'ifr' isn't known
uuid_gen_unix.c:218: error: storage size of 'ifc' isn't known
uuid_gen_unix.c:234: error: invalid application of 'sizeof' to incomplete 
type 'struct ifreq'
uuid_gen_unix.c:234: error: increment of pointer to unknown structure
uuid_gen_unix.c:234: error: arithmetic on pointer to an incomplete type
uuid_gen_unix.c:236: error: dereferencing pointer to incomplete type
uuid_gen_unix.c:240: error: 'IFF_LOOPBACK' undeclared (first use in this 
function)
uuid_gen_unix.c:240: error: (Each undeclared identifier is reported only once
uuid_gen_unix.c:240: error: for each function it appears in.)
cc1: warnings being treated as errors
uuid_gen_unix.c:218: warning: unused variable 'ifc'
uuid_gen_unix.c:216: warning: unused variable 'ifr'
make[5]: *** [uuid_gen_unix.lo] Error 1

I already checked the dependencies, there should be no problem with that:
> Autoconf 2.59 or higher
=autoconf 2.61
> Automake 1.9 or higher
=automake 1.10
> Aclocal 1.9 or higher
=aclocal 1.10
> libtool 1.9 or higher
=libtool 1.5.23b
> libxml2-dev
=libxml2 2.6.28
> zlib1g-dev
=zlib 1.2.3-r1
> pkg-config
=pkg-config 0.21

I'm building with build.sh.
It seems that the file /usr/include/linux/if.h is causing the problem.

Any ideas why this error occurs or how i can fix that?

Thanks in advance

Roland


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



Re: Is AXIS2/C what I need?

2007-08-22 Thread Dinesh Premalal
Michael Sutter <[EMAIL PROTECTED]> writes:
> I tested axis2 with c++ and was not able to get it running. But I
> communicated with some one and he told me, that it is working.
> If anybody knows how it goes it would be very nice to tell it me.
> What I tried is to compile a axis2c service with g++. With some tricks
> the compiling and linkings works. But the call of the service always
> ends in a segmentation fault.
Could you please be more specific and send your gdb backtraces, log
files and what ever information related to you problem. Then we could
locate the error. BTW is it possible to compile c using g++, thought
It for C++ (may be I need to read more ;))

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

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



Re: SOAP fault builder

2007-08-22 Thread Subra A Narayanan
Dinesh,

Thanks for your reply. I tried running the same servive with the
asix2_http_server and the client successfully receives a soap fault. No
problems there. So I think it is a bug with apache http server module. If
you guys concur, I will open a JIRA issue. It would be really nice to have
this problem fixed.

Having a way to return custom error codes/messages to client would be a big
plus? This way the client would know where exactly the error lies, on the
server side or in the request itself. Should I create a JIRA issue for this
too. If yes, under which category?

Thanks,
Subra


On 8/21/07, Dinesh Premalal <[EMAIL PROTECTED]> wrote:
>
> Hi Subra,
> "Subra A Narayanan" <[EMAIL PROTECTED]> writes:
>
> > I modified the axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync
> > function to log the soap fault message to axis2.log file just before it
> returns
> > and see the correct soap fault message. So something happens after this
> point
> > which makes the apache http server send a 500 Internal server error to
> the
> > client.
> were you able to log those fault to axis2.log? My feeling is, there
> might be some misconfiguration in apache server. Did you try with
> axis2_http_server?
>
> > My second question was, is there a way to return custom error numbers
> and error
> > message to the myservice_on_fault function so that the error number/msg
> can be
> > included in the soap fault. Right now only predefined AXIS2 error
> message can
> > be set using AXIS2_ERROR_SET. I understand that I can modify
> axutil_error.h
> > file but it says that the error codes are reserved for modules. Is there
> any
> > other better way of doing this?
> AFAIK, there is no such a mechanism. However I think we should
> provide custom error mechanism to user. May be an extension for
> current axis2 error mechanism will be helpful.
>
> Thoughts ???
>
> thanks,
> Dinesh
> --
> Dinesh Premalal
> http://xydinesh.wordpress.com/
> GPG ID : A255955C
> GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: SOAP fault builder

2007-08-22 Thread Dinesh Premalal
"Subra A Narayanan" <[EMAIL PROTECTED]> writes:
Hi Subra,
"Subra A Narayanan" <[EMAIL PROTECTED]> writes:
> Thanks for your reply. I tried running the same servive with the
> asix2_http_server and the client successfully receives a soap fault. No
> problems there. So I think it is a bug with apache http server module. If you
> guys concur, I will open a JIRA issue. It would be really nice to have this
> problem fixed.
Yes, Please do raise a JIRA issue. 
>
> Having a way to return custom error codes/messages to client would be a big
> plus? This way the client would know where exactly the error lies, on the
> server side or in the request itself. Should I create a JIRA issue for this
> too. If yes, under which category?
I too think, we need to implement customize errors for user. yes
please raise a jira under axis2c/util because error implementation is
under the utils. If others think there should be alternate method, we
could do it in the JIRA itself. (we could edit the JIRA accordingly).

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

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



Re: Problems building SVN version

2007-08-22 Thread Chintana Wilamuna
On 8/22/07, Roland Landertshamer <[EMAIL PROTECTED]> wrote:

> I already checked the dependencies, there should be no problem with that:
> > Autoconf 2.59 or higher
> =autoconf 2.61
> > Automake 1.9 or higher
> =automake 1.10
> > Aclocal 1.9 or higher
> =aclocal 1.10
> > libtool 1.9 or higher
> =libtool 1.5.23b
> > libxml2-dev
> =libxml2 2.6.28
> > zlib1g-dev
> =zlib 1.2.3-r1
> > pkg-config
> =pkg-config 0.21
>
> I'm building with build.sh.

Roland,

My system had,

pkg-config (0.20)
libtool (1.5.22)
libxml2 (2.6.26)

rest of the stuff was the same versions.

On this configuration revision 568555 compiled without a problem.

I upgraded those three to the versions you have mentioned and did a
recomplie and it also was successful.

What's the CPU architecture of your system?  I'm running Gentoo on i386.

Bye,

-Chintana

-- 
http://trevet.blogspot.com/

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



Re: Problems building SVN version

2007-08-22 Thread Roland Landertshamer
Hi Chintana,

Thanks for your answer.
I have a Intel(R) Pentium(R) 4 CPU 3.00GHz, so also i386. Interesting that 
this works for you since our systems should be mainly the same. How up to 
date is your Gentoo installation. Mine is updated daily, so maybe there is 
some system package causing the troubles.

Regards,
  Roland



On Wednesday 22 August 2007 16:52:56 Chintana Wilamuna wrote:
> On 8/22/07, Roland Landertshamer <[EMAIL PROTECTED]> wrote:
> > I already checked the dependencies, there should be no problem with that:
> > > Autoconf 2.59 or higher
> >
> > =autoconf 2.61
> >
> > > Automake 1.9 or higher
> >
> > =automake 1.10
> >
> > > Aclocal 1.9 or higher
> >
> > =aclocal 1.10
> >
> > > libtool 1.9 or higher
> >
> > =libtool 1.5.23b
> >
> > > libxml2-dev
> >
> > =libxml2 2.6.28
> >
> > > zlib1g-dev
> >
> > =zlib 1.2.3-r1
> >
> > > pkg-config
> >
> > =pkg-config 0.21
> >
> > I'm building with build.sh.
>
> Roland,
>
> My system had,
>
> pkg-config (0.20)
> libtool (1.5.22)
> libxml2 (2.6.26)
>
> rest of the stuff was the same versions.
>
> On this configuration revision 568555 compiled without a problem.
>
> I upgraded those three to the versions you have mentioned and did a
> recomplie and it also was successful.
>
> What's the CPU architecture of your system?  I'm running Gentoo on i386.
>
> Bye,
>
> -Chintana



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



Re: Mac OS X build problems - Axis 1.0.0

2007-08-22 Thread Simon Parker


Hi -

OK, so the _axis2_remove_instance and _axis2_get_instance functions  
are defined in 2 places:


axis2c-src-1.1.0/src/core/receivers/raw_xml_in_out_msg_recv.c

and

axis2c-src-1.1.0/src/modules/mod_addr/mod_addr.c

Looking at how the build works I commented out the 2 definitions in  
raw_xml_in_out_msg_recv.c


As a result I can now build, install and run

${AXIS2C_HOME}/bin/axis2_http_server

Assuming this is a reasonable solution how do I go about getting this  
fixed?


best regards

Simon

On 22 Aug 2007, at 07:30, Simon Parker wrote:


Samisa -

Many thanks for your response.

I downloaded axis2c-src-1.1.0 and tried again. Far fewer 'multiple  
definitions of symbol' messages this time, but still not error free.


gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress - 
o .libs/libaxis2_mod_addr.0.1.0.dylib  .libs/ 
addr_in_handler.o .libs/addr_out_handler.o .libs/mod_addr.o  - 
lpthread ../../../axiom/src/om/.libs/libaxis2_axiom.dylib /Users/ 
simon/product_builds/axis2c-src-1.1.0/axiom/src/parser/ 
guththila/.libs/libaxis2_parser.dylib /Users/simon/product_builds/ 
axis2c-src-1.1.0/guththila/src/.libs/libguththila.dylib /Users/ 
simon/product_builds/axis2c-src-1.1.0/util/src/.libs/ 
libaxutil.dylib /Users/simon/product_builds/axis2c-src-1.1.0/util/ 
src/minizip/.libs/libaxis2_minizip.dylib ../../../util/src/.libs/ 
libaxutil.dylib ../../../src/core/engine/.libs/ 
libaxis2_engine.dylib /Users/simon/product_builds/axis2c-src-1.1.0/ 
neethi/src/.libs/libneethi.dylib /Users/simon/product_builds/axis2c- 
src-1.1.0/src/core/transport/http/common/.libs/ 
libaxis2_http_common.dylib /Users/simon/product_builds/axis2c- 
src-1.1.0/axiom/src/om/.libs/libaxis2_axiom.dylib /Users/simon/ 
product_builds/axis2c-src-1.1.0/src/core/engine/.libs/ 
libaxis2_engine.dylib -lz -ldl  -install_name  /usr/local/axis2c/ 
modules/addressing/libaxis2_mod_addr.0.dylib -Wl,- 
compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0

ld: multiple definitions of symbol _axis2_remove_instance
.libs/mod_addr.o definition of _axis2_remove_instance in section  
(__TEXT,__text)
../../../src/core/engine/.libs/libaxis2_engine.dylib 
(raw_xml_in_out_msg_recv.o) definition of _axis2_remove_instance

ld: multiple definitions of symbol _axis2_get_instance
.libs/mod_addr.o definition of _axis2_get_instance in section  
(__TEXT,__text)
../../../src/core/engine/.libs/libaxis2_engine.dylib 
(raw_xml_in_out_msg_recv.o) definition of _axis2_get_instance

/usr/bin/libtool: internal link edit command failed
make[4]: *** [libaxis2_mod_addr.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

best regards

Simon

On 22 Aug 2007, at 02:03, Samisa Abeysinghe wrote:

Hopefully, this issue is resolved by now in the latest svn. This  
was done after 1.0.0 release.
Please try the source of 1.1.0 RC1 hosted here: http:// 
people.apache.org/~samisa/1.1.0-RC1/


Thanks,
Samisa...

Simon Parker wrote:


Hi -

I'm trying to build the axis2c-src-1.0.0 source distribution on a  
MacBook Pro. The Mac OS X release is:


*Darwin Simons-MacBook-Pro.local 8.10.1 Darwin Kernel Version  
8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/ 
RELEASE_I386 i386 i386*


Having run ./configure successfully I get the following error  
when doing a make:


*ld: multiple definitions of symbol _axutil_error_messages *
*.libs/hash.o definition of _axutil_error_messages in section  
(__DATA,__common)*
*.libs/allocator.o definition of _axutil_error_messages in  
section (__DATA,__common)*
*.libs/env.o definition of _axutil_error_messages in section  
(__DATA,__common)*
*.libs/error.o definition of _axutil_error_messages in section  
(__DATA,__common)*

.
.
.etc

Has anyone managed to resolve this issue as yet?

thanks in advance

Simon




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



-
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: SOAP fault builder

2007-08-22 Thread Subra A Narayanan
Dinesh,

I have created JIRA issues for both the issues we have been talking about.
Here is a link to the issues:

Internal server error => https://issues.apache.org/jira/browse/AXIS2C-676
Ability to return custom error messages/codes to the client  =>
https://issues.apache.org/jira/browse/AXIS2C-678


Thanks!!
Subra


On 8/22/07, Dinesh Premalal <[EMAIL PROTECTED]> wrote:
>
> "Subra A Narayanan" <[EMAIL PROTECTED]> writes:
> Hi Subra,
> "Subra A Narayanan" <[EMAIL PROTECTED]> writes:
> > Thanks for your reply. I tried running the same servive with the
> > asix2_http_server and the client successfully receives a soap fault. No
> > problems there. So I think it is a bug with apache http server module.
> If you
> > guys concur, I will open a JIRA issue. It would be really nice to have
> this
> > problem fixed.
> Yes, Please do raise a JIRA issue.
> >
> > Having a way to return custom error codes/messages to client would be a
> big
> > plus? This way the client would know where exactly the error lies, on
> the
> > server side or in the request itself. Should I create a JIRA issue for
> this
> > too. If yes, under which category?
> I too think, we need to implement customize errors for user. yes
> please raise a jira under axis2c/util because error implementation is
> under the utils. If others think there should be alternate method, we
> could do it in the JIRA itself. (we could edit the JIRA accordingly).
>
> thanks,
> Dinesh
> --
> Dinesh Premalal
> http://xydinesh.wordpress.com/
> GPG ID : A255955C
> GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Is AXIS2/C what I need?

2007-08-22 Thread Michael Sutter

Sorry,

I'm not so familiar with c. I think I can't debug a axis2c service with
gdb. If it is possible please tell me how.

I have a very simple service, adding to numbers in it. For the add a c++
class is used, to test if I can access c++ from the service.
All I have done is generating the skeletons and stubs from the wsdl. The
Stubs are in Java. Then I renamed the Skeleton.c to Skeleton.cpp and
implemented the functionality of the service. After that I compiled the
*.c files with gcc and the *.cpp files with g++ at the end I linked all
together with g++ - e.g.
gcc -c -o axis2_add.o -I $AXIS2C_HOME/include/axis2-1.0/ axis2_add.c
g++ -c -o axis2_skel_TestService.o -I $AXIS2C_HOME/include/axis2-1.0/
axis2_skel_TestService.cpp
g++ -shared -o libTestService.so -L $AXIS2C_HOME/lib/ -laxis2
axis2_add.o axis2_addResponse.o axis2_skel_TestService.o
axis2_svc_skel_TestService.o myadd.o
When I want to access the service I always get an segmentation fault.
If you have any idea how I can solve the problem please tell it me.
I use AXIS2C 1.0 and AXIS2 1.2

Kind regards
Michael

Dinesh Premalal wrote:

Michael Sutter <[EMAIL PROTECTED]> writes:
  

I tested axis2 with c++ and was not able to get it running. But I
communicated with some one and he told me, that it is working.
If anybody knows how it goes it would be very nice to tell it me.
What I tried is to compile a axis2c service with g++. With some tricks
the compiling and linkings works. But the call of the service always
ends in a segmentation fault.


Could you please be more specific and send your gdb backtraces, log
files and what ever information related to you problem. Then we could
locate the error. BTW is it possible to compile c using g++, thought
It for C++ (may be I need to read more ;))

thanks,
Dinesh
  


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



Re: Problems building SVN version

2007-08-22 Thread Chintana Wilamuna
On 8/22/07, Roland Landertshamer <[EMAIL PROTECTED]> wrote:

> I have a Intel(R) Pentium(R) 4 CPU 3.00GHz, so also i386. Interesting that
> this works for you since our systems should be mainly the same. How up to
> date is your Gentoo installation. Mine is updated daily, so maybe there is
> some system package causing the troubles.

Mine is not updated that frequently.  I usually do upgrade if I badly
need the new feature of a package or there is some security issues.
What's the gcc version you're using?  I tried building with both 4.1.1
and 4.1.2 and both seems to be fine.

Earlier, by i386, I meant IA32 (sorry if that made any confusions),
are you on a 64bit processor?

Bye,

-Chintana

-- 
http://trevet.blogspot.com/

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



Re: Mac OS X build problems - Axis 1.0.0

2007-08-22 Thread Sanjaya Ratnaweera

Hi Simon,
Try removing the following line from src/modules/mod_addr/Makefile.am.

$(top_builddir)/src/core/engine/libaxis2_engine.la -laxis2_engine

We do not want to link engine there. I've committed the change to the trunk. 


Thanks

~sanjaya


Simon Parker wrote:

Samisa -

Many thanks for your response.

I downloaded axis2c-src-1.1.0 and tried again. Far fewer 'multiple 
definitions of symbol' messages this time, but still not error free.


gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o 
.libs/libaxis2_mod_addr.0.1.0.dylib .libs/addr_in_handler.o 
.libs/addr_out_handler.o .libs/mod_addr.o -lpthread 
../../../axiom/src/om/.libs/libaxis2_axiom.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/axiom/src/parser/guththila/.libs/libaxis2_parser.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/guththila/src/.libs/libguththila.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/util/src/.libs/libaxutil.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/util/src/minizip/.libs/libaxis2_minizip.dylib 
../../../util/src/.libs/libaxutil.dylib 
../../../src/core/engine/.libs/libaxis2_engine.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/neethi/src/.libs/libneethi.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/src/core/transport/http/common/.libs/libaxis2_http_common.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/axiom/src/om/.libs/libaxis2_axiom.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/src/core/engine/.libs/libaxis2_engine.dylib 
-lz -ldl -install_name 
/usr/local/axis2c/modules/addressing/libaxis2_mod_addr.0.dylib 
-Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0

ld: multiple definitions of symbol _axis2_remove_instance
.libs/mod_addr.o definition of _axis2_remove_instance in section 
(__TEXT,__text)
../../../src/core/engine/.libs/libaxis2_engine.dylib(raw_xml_in_out_msg_recv.o) 
definition of _axis2_remove_instance

ld: multiple definitions of symbol _axis2_get_instance
.libs/mod_addr.o definition of _axis2_get_instance in section 
(__TEXT,__text)
../../../src/core/engine/.libs/libaxis2_engine.dylib(raw_xml_in_out_msg_recv.o) 
definition of _axis2_get_instance

/usr/bin/libtool: internal link edit command failed
make[4]: *** [libaxis2_mod_addr.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

best regards

Simon

On 22 Aug 2007, at 02:03, Samisa Abeysinghe wrote:

Hopefully, this issue is resolved by now in the latest svn. This was 
done after 1.0.0 release.
Please try the source of 1.1.0 RC1 hosted here: 
http://people.apache.org/~samisa/1.1.0-RC1/


Thanks,
Samisa...

Simon Parker wrote:


Hi -

I'm trying to build the axis2c-src-1.0.0 source distribution on a 
MacBook Pro. The Mac OS X release is:


*Darwin Simons-MacBook-Pro.local 8.10.1 Darwin Kernel Version 
8.10.1: Wed May 23 16:33:00 PDT 2007; 
root:xnu-792.22.5~1/RELEASE_I386 i386 i386*


Having run ./configure successfully I get the following error when 
doing a make:


*ld: multiple definitions of symbol _axutil_error_messages *
*.libs/hash.o definition of _axutil_error_messages in section 
(__DATA,__common)*
*.libs/allocator.o definition of _axutil_error_messages in section 
(__DATA,__common)*
*.libs/env.o definition of _axutil_error_messages in section 
(__DATA,__common)*
*.libs/error.o definition of _axutil_error_messages in section 
(__DATA,__common)*

.
.
.etc

Has anyone managed to resolve this issue as yet?

thanks in advance

Simon




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




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




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



REST with Axis2/C

2007-08-22 Thread Subra A Narayanan
Good morning folks!

This is more of a approach/design question rather than an Axis2/C question.

The project I am working on requires that I provide both SOAP and REST
interface to my webservice. With Axis2/C SOAP is no big deal. But REST is
something I am not too sure about. As it says in the API documentation
itself, Axis2/C is a SOAP toolkit and REST is not supported that well.

These 2 issues in particular
1) There is no support for PUT and DELETE
2) Also the way Axis2/C requires the operation name and the operation
parameters in the url, is a shift away from REST as there is no resource
representation.

So the solution looks like writing an Apache module (I have never written
one before) which receives the REST request, translates the request to a
SOAP request and then forwards it on to Axis2/c. But this is exactly what
Axis2/C is also doing.

I want to start looking in to improving REST support in Axis2/C. Is it
doable? Am I missing something very obvious which would prevent us from
implementing such support in Axis2? If not please let me know as to where I
should start looking in the Axis2 source.

If the above approach is not feasible, I will have to look at other ways of
supporting REST. One way would be to write my own apache module.

I would love to hear any comments/suggestions.


Thanks a lot for all the help!

Subra


Re: Mac OS X build problems - Axis 1.0.0

2007-08-22 Thread Sanjaya Ratnaweera

Hi Simon,
  
   I have created a nightly build with the fix. You can find it here
  
   http://people.apache.org/~pini/nightly/20070823/ 



Thanks

   ~sanjaya

Sanjaya Ratnaweera wrote:

Hi Simon,
Try removing the following line from src/modules/mod_addr/Makefile.am.

$(top_builddir)/src/core/engine/libaxis2_engine.la -laxis2_engine

We do not want to link engine there. I've committed the change to the 
trunk.

Thanks

~sanjaya


Simon Parker wrote:

Samisa -

Many thanks for your response.

I downloaded axis2c-src-1.1.0 and tried again. Far fewer 'multiple 
definitions of symbol' messages this time, but still not error free.


gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o 
.libs/libaxis2_mod_addr.0.1.0.dylib .libs/addr_in_handler.o 
.libs/addr_out_handler.o .libs/mod_addr.o -lpthread 
../../../axiom/src/om/.libs/libaxis2_axiom.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/axiom/src/parser/guththila/.libs/libaxis2_parser.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/guththila/src/.libs/libguththila.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/util/src/.libs/libaxutil.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/util/src/minizip/.libs/libaxis2_minizip.dylib 
../../../util/src/.libs/libaxutil.dylib 
../../../src/core/engine/.libs/libaxis2_engine.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/neethi/src/.libs/libneethi.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/src/core/transport/http/common/.libs/libaxis2_http_common.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/axiom/src/om/.libs/libaxis2_axiom.dylib 
/Users/simon/product_builds/axis2c-src-1.1.0/src/core/engine/.libs/libaxis2_engine.dylib 
-lz -ldl -install_name 
/usr/local/axis2c/modules/addressing/libaxis2_mod_addr.0.dylib 
-Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.0

ld: multiple definitions of symbol _axis2_remove_instance
.libs/mod_addr.o definition of _axis2_remove_instance in section 
(__TEXT,__text)
../../../src/core/engine/.libs/libaxis2_engine.dylib(raw_xml_in_out_msg_recv.o) 
definition of _axis2_remove_instance

ld: multiple definitions of symbol _axis2_get_instance
.libs/mod_addr.o definition of _axis2_get_instance in section 
(__TEXT,__text)
../../../src/core/engine/.libs/libaxis2_engine.dylib(raw_xml_in_out_msg_recv.o) 
definition of _axis2_get_instance

/usr/bin/libtool: internal link edit command failed
make[4]: *** [libaxis2_mod_addr.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

best regards

Simon

On 22 Aug 2007, at 02:03, Samisa Abeysinghe wrote:

Hopefully, this issue is resolved by now in the latest svn. This was 
done after 1.0.0 release.
Please try the source of 1.1.0 RC1 hosted here: 
http://people.apache.org/~samisa/1.1.0-RC1/


Thanks,
Samisa...

Simon Parker wrote:


Hi -

I'm trying to build the axis2c-src-1.0.0 source distribution on a 
MacBook Pro. The Mac OS X release is:


*Darwin Simons-MacBook-Pro.local 8.10.1 Darwin Kernel Version 
8.10.1: Wed May 23 16:33:00 PDT 2007; 
root:xnu-792.22.5~1/RELEASE_I386 i386 i386*


Having run ./configure successfully I get the following error when 
doing a make:


*ld: multiple definitions of symbol _axutil_error_messages *
*.libs/hash.o definition of _axutil_error_messages in section 
(__DATA,__common)*
*.libs/allocator.o definition of _axutil_error_messages in section 
(__DATA,__common)*
*.libs/env.o definition of _axutil_error_messages in section 
(__DATA,__common)*
*.libs/error.o definition of _axutil_error_messages in section 
(__DATA,__common)*

.
.
.etc

Has anyone managed to resolve this issue as yet?

thanks in advance

Simon




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




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




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





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



Re: REST with Axis2/C

2007-08-22 Thread Dinesh Premalal
Hi Subra,
"Subra A Narayanan" <[EMAIL PROTECTED]> writes:
> So the solution looks like writing an Apache module (I have never written one
> before) which receives the REST request, translates the request to a SOAP
> request and then forwards it on to Axis2/c. But this is exactly what Axis2/C 
> is
> also doing.
Yes, that is also a possibility. However I think it will be quite
arduous to maintain two apache modules in the long run. I would rather 
like improving Axis2/C REST support.
> I want to start looking in to improving REST support in Axis2/C. Is
> it doable?
Yes, It is.
> Am I missing something very obvious which would prevent us from implementing
> such support in Axis2? If not please let me know as to where I should start
> looking in the Axis2 source.
You could start at looking HTTP transport I guess. If you could debug
echo_rest sample, it will be helpful to understand the underlying
logic. 

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

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