You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Owen D Burroughs <OW...@uk.ibm.com> on 2002/09/12 16:56:45 UTC

Reuse of code between projects

Hi,

What is the view with regards to reusing code between Apache projects. I'd
like to reuse the base64 encoding code from the
org.apache.axis.encoding.Base64 class in a new class in WSIF. Since the
core WSIF API does not have a dependency on Axis I cannot simply use the
class directly. I notice that the Base64 class is almost identical to the
Base64 class in Apache SOAP and so I guess that reuse on an entire class is
OK? (Strangely the SOAP class has an IBM license on it but the Axis class
has an Apache License on it!)

Obviously the base64 encoding algorithm is well known and so I could resort
to writing my own implementation but the code in Axis seems a neat way of
coding it so I'd prefer to simply reuse that. Of course I would credit the
original author.

Thoughts welcomed.

Thanks,
Owen


Re: Reuse of code between projects

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Owen D Burroughs" <OW...@uk.ibm.com>
To: <ax...@xml.apache.org>
Sent: Thursday, September 12, 2002 7:56 AM
Subject: Reuse of code between projects


> Hi,
>
> What is the view with regards to reusing code between Apache projects. I'd
> like to reuse the base64 encoding code from the
> org.apache.axis.encoding.Base64 class in a new class in WSIF. Since the
> core WSIF API does not have a dependency on Axis I cannot simply use the
> class directly. I notice that the Base64 class is almost identical to the
> Base64 class in Apache SOAP and so I guess that reuse on an entire class
is
> OK? (Strangely the SOAP class has an IBM license on it but the Axis class
> has an Apache License on it!)
>
> Obviously the base64 encoding algorithm is well known and so I could
resort
> to writing my own implementation but the code in Axis seems a neat way of
> coding it so I'd prefer to simply reuse that. Of course I would credit the
> original author.

there are so many base-64 impls around in apache code its unbelievable

-httpclient
-ant (get auth)
-batik
-SOAP
-axis

...pick any one.


Re: Include comments when generating WSDL2Java and Java2WSDL

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Marwan Semaan" <ma...@incomit.com>
To: <ax...@xml.apache.org>
Sent: Thursday, September 12, 2002 8:36 AM
Subject: Include comments when generating WSDL2Java and Java2WSDL


> Hi
> How possible it is to include comments in the WSDL file from a java source
> code (JavaDoc).
>
> this makes it easy to the developer that downloads the WSDL file and to
> easily understand
> the code after a java is generated via WSDL2Java.
>
> Notes: I don't want to include the comments manually after I generated the
> WSDL file, it would be perfect to be done automatically and include the
> javadoc in the Java Web Services API
>

there are no javadoc comments in compiled code, so java2wsdl, which acts on
compiled code, wont work.

XDoclet metadata, perhaps.


Include comments when generating WSDL2Java and Java2WSDL

Posted by Marwan Semaan <ma...@incomit.com>.
Hi
How possible it is to include comments in the WSDL file from a java source
code (JavaDoc).

this makes it easy to the developer that downloads the WSDL file and to
easily understand
the code after a java is generated via WSDL2Java.

Notes: I don't want to include the comments manually after I generated the
WSDL file, it would be perfect to be done automatically and include the
javadoc in the Java Web Services API

I appreciate any comments and ideas, I may missed something on the road.

regards
Marwan


Re: Reuse of code between projects

Posted by Richard Sitze <rs...@us.ibm.com>.
The base64 code in AXIS was lifted (if I recall) from ANOTHER apache 
project... (don't recall which).  It's not clear to me who owns it, or who 
maintains it (bugs, etc).  Probably do for a review, so feel free to shop 
around and compare...

*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development




"Owen D Burroughs" <OW...@uk.ibm.com>
09/12/2002 09:56 AM
Please respond to axis-dev
 
        To:     axis-dev@xml.apache.org
        cc: 
        Subject:        Reuse of code between projects

 


Hi,

What is the view with regards to reusing code between Apache projects. I'd
like to reuse the base64 encoding code from the
org.apache.axis.encoding.Base64 class in a new class in WSIF. Since the
core WSIF API does not have a dependency on Axis I cannot simply use the
class directly. I notice that the Base64 class is almost identical to the
Base64 class in Apache SOAP and so I guess that reuse on an entire class 
is
OK? (Strangely the SOAP class has an IBM license on it but the Axis class
has an Apache License on it!)

Obviously the base64 encoding algorithm is well known and so I could 
resort
to writing my own implementation but the code in Axis seems a neat way of
coding it so I'd prefer to simply reuse that. Of course I would credit the
original author.

Thoughts welcomed.

Thanks,
Owen