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 Davanum Srinivas <da...@gmail.com> on 2006/01/04 23:37:28 UTC
[Axis2] Keep it simple
Folks,
I've checked in a few changes to generated code and wanted to give you
all an update. With the current SVN, here's what you can do.
1. Add the axis2 jar and all dependent jars to CLASSPATH
HINT: if you run "maven create-lib" it will create a directory
target/lib with all the dependency jars
2. Run WSDL2Java against say the perf.wsdl in SVN
HINT: I use "java org.apache.axis2.wsdl.WSDL2Java -d adb -o work
-s -p samples.perf -t -ss -sd -uri
\APACHE\axis2\modules\samples\wsdl\perf.wsdl", this will create all
the generated code under a new directory named work.
3. Drop perf.wsdl into the work/resources directory.
4. Edit the server and the client
HINT: work\src\samples\perf\PerfPortTypeSkeleton.java is the
server, work\test\samples\perf\PerfPortTypeTest.java is the client
5. CD to work and run "ant start.server"
HINT: point your browser to http://localhost:8080/, it will
redirect you to http://localhost:8080/axis2/services. You can click on
the service name and look at the WSDL to make sure it's the same you
dropped in step #3.
6. open another prompt, set the classpath (see #1) and run "ant run.test"
HINT: this will use junit to run the test case, output will be in
work/build/test-reports
That's it folks, You have your first service and client working with
each other :)
Thanks,
dims
PS: use "ant clean" to start fresh, it cleans up all the build artifacts
PPS: If you wish you can edit the stub or test case to edit the port
and then use tcpmon to look at the messages.
--
Davanum Srinivas : http://wso2.com/blogs/
Re: [Axis2] Keep it simple
Posted by Eran Chinthaka <ch...@opensource.lk>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hmm, nice mail conversation worth enough to be included as a topic in
our user guide. Please let me know once the proposal Sanjiva made, get
implemented. Or shall I just put whatver Dims has put in his first mail.
Anyway, thanks Dims for this :-)
- - Chinthaka
Davanum Srinivas wrote:
> +1. Let's do it :)
>
> On 1/4/06, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
>
>> On Wed, 2006-01-04 at 17:37 -0500, Davanum Srinivas wrote:
>>
>>> Folks,
>>>
>>> I've checked in a few changes to generated code and wanted to
>>> give you all an update. With the current SVN, here's what you
>>> can do.
>>
>> Excellent!
>>
>>> 1. Add the axis2 jar and all dependent jars to CLASSPATH HINT:
>>> if you run "maven create-lib" it will create a directory
>>> target/lib with all the dependency jars
>>>
>>> 2. Run WSDL2Java against say the perf.wsdl in SVN HINT: I use
>>> "java org.apache.axis2.wsdl.WSDL2Java -d adb -o work -s -p
>>> samples.perf -t -ss -sd -uri
>>> \APACHE\axis2\modules\samples\wsdl\perf.wsdl", this will create
>>> all the generated code under a new directory named work.
>>
>> If these WSDL2Java options are the right ones for the common
>> case, can we set them as defaults? Ideally, IMO, to generate a
>> stub literally I should have to type "WSDL2Java foo.wsdl" and
>> that's it. In that case, IMO, we should generate exactly one
>> foo.java for the entire stub in the current directory. Maybe no
>> build.xml even: if I was able to run WSDL2Java at all then I had
>> the classpath right in the first place .. so compiling should be
>> simply a matter typing javac foo.java, no?
>>
>> To do the client and server both then of course we need more
>> stuff .. so maybe another combination of behaviors?
>>
>> Basically I'm pushing for making intelligent choices for defaults
>> for the 17 options of WSDL2Java.
>>
>> Sanjiva.
>>
>>
>
>
> -- Davanum Srinivas : http://wso2.com/blogs/
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
iD8DBQFDvH3/jON2uBzUhh8RAi8IAJ4+q4/qDrELb83vBf6vvQoOPgoULwCdEDLJ
Bvk99ckwh/mOp9pjriZ9k/w=
=ajRj
-----END PGP SIGNATURE-----
Re: [Axis2] Keep it simple
Posted by Davanum Srinivas <da...@gmail.com>.
+1. Let's do it :)
On 1/4/06, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> On Wed, 2006-01-04 at 17:37 -0500, Davanum Srinivas wrote:
> > Folks,
> >
> > I've checked in a few changes to generated code and wanted to give you
> > all an update. With the current SVN, here's what you can do.
>
> Excellent!
>
> > 1. Add the axis2 jar and all dependent jars to CLASSPATH
> > HINT: if you run "maven create-lib" it will create a directory
> > target/lib with all the dependency jars
> >
> > 2. Run WSDL2Java against say the perf.wsdl in SVN
> > HINT: I use "java org.apache.axis2.wsdl.WSDL2Java -d adb -o work
> > -s -p samples.perf -t -ss -sd -uri
> > \APACHE\axis2\modules\samples\wsdl\perf.wsdl", this will create all
> > the generated code under a new directory named work.
>
> If these WSDL2Java options are the right ones for the common case, can
> we set them as defaults? Ideally, IMO, to generate a stub literally I
> should have to type "WSDL2Java foo.wsdl" and that's it. In that case,
> IMO, we should generate exactly one foo.java for the entire stub in the
> current directory. Maybe no build.xml even: if I was able to run
> WSDL2Java at all then I had the classpath right in the first place .. so
> compiling should be simply a matter typing javac foo.java, no?
>
> To do the client and server both then of course we need more stuff .. so
> maybe another combination of behaviors?
>
> Basically I'm pushing for making intelligent choices for defaults for
> the 17 options of WSDL2Java.
>
> Sanjiva.
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
Re: [Axis2] Keep it simple
Posted by Wade Chandler <hw...@yahoo.com>.
--- Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> On Wed, 2006-01-04 at 17:37 -0500, Davanum Srinivas
> wrote:
> > Folks,
> >
> > I've checked in a few changes to generated code
> and wanted to give you
> > all an update. With the current SVN, here's what
> you can do.
>
> Excellent!
>
> > 1. Add the axis2 jar and all dependent jars to
> CLASSPATH
> > HINT: if you run "maven create-lib" it will
> create a directory
> > target/lib with all the dependency jars
> >
> > 2. Run WSDL2Java against say the perf.wsdl in SVN
> > HINT: I use "java
> org.apache.axis2.wsdl.WSDL2Java -d adb -o work
> > -s -p samples.perf -t -ss -sd -uri
> > \APACHE\axis2\modules\samples\wsdl\perf.wsdl",
> this will create all
> > the generated code under a new directory named
> work.
>
> If these WSDL2Java options are the right ones for
> the common case, can
> we set them as defaults? Ideally, IMO, to generate a
> stub literally I
> should have to type "WSDL2Java foo.wsdl" and that's
> it. In that case,
> IMO, we should generate exactly one foo.java for the
> entire stub in the
> current directory. Maybe no build.xml even: if I was
> able to run
> WSDL2Java at all then I had the classpath right in
> the first place .. so
> compiling should be simply a matter typing javac
> foo.java, no?
>
> To do the client and server both then of course we
> need more stuff .. so
> maybe another combination of behaviors?
>
> Basically I'm pushing for making intelligent choices
> for defaults for
> the 17 options of WSDL2Java.
>
> Sanjiva.
>
>
I think the package argument should be required or
you'll see a bunch of questions about why my class has
this different package, plus most specifications and
servers (even Tomcat) mention packages should really
always be used.
Wade
Re: [Axis2] Keep it simple
Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Wed, 2006-01-04 at 17:37 -0500, Davanum Srinivas wrote:
> Folks,
>
> I've checked in a few changes to generated code and wanted to give you
> all an update. With the current SVN, here's what you can do.
Excellent!
> 1. Add the axis2 jar and all dependent jars to CLASSPATH
> HINT: if you run "maven create-lib" it will create a directory
> target/lib with all the dependency jars
>
> 2. Run WSDL2Java against say the perf.wsdl in SVN
> HINT: I use "java org.apache.axis2.wsdl.WSDL2Java -d adb -o work
> -s -p samples.perf -t -ss -sd -uri
> \APACHE\axis2\modules\samples\wsdl\perf.wsdl", this will create all
> the generated code under a new directory named work.
If these WSDL2Java options are the right ones for the common case, can
we set them as defaults? Ideally, IMO, to generate a stub literally I
should have to type "WSDL2Java foo.wsdl" and that's it. In that case,
IMO, we should generate exactly one foo.java for the entire stub in the
current directory. Maybe no build.xml even: if I was able to run
WSDL2Java at all then I had the classpath right in the first place .. so
compiling should be simply a matter typing javac foo.java, no?
To do the client and server both then of course we need more stuff .. so
maybe another combination of behaviors?
Basically I'm pushing for making intelligent choices for defaults for
the 17 options of WSDL2Java.
Sanjiva.
Re: [Axis2] Keep it simple
Posted by Davanum Srinivas <da...@gmail.com>.
Hehe, thanks :)
-- dims
On 1/4/06, Ajith Ranabahu <aj...@gmail.com> wrote:
> Guess any codegen/adb issues drop on my plate :). this is actually an easy
> enough change to do so will do it today
>
>
> On 1/5/06, Deepal Jayasinghe < deepal@opensource.lk> wrote:
> > great work dims !
> >
> > Thanks,
> > Deepal
> >
> ................................................................
> > ~Future is Open~
> >
> > ----- Original Message -----
> > From: "Davanum Srinivas" <da...@gmail.com>
> > To: "Axis developer list" < axis-dev@ws.apache.org>
> > Sent: Thursday, January 05, 2006 4:37 AM
> > Subject: [Axis2] Keep it simple
> >
> >
> > Folks,
> >
> > I've checked in a few changes to generated code and wanted to give you
> > all an update. With the current SVN, here's what you can do.
> >
> > 1. Add the axis2 jar and all dependent jars to CLASSPATH
> > HINT: if you run "maven create-lib" it will create a directory
> > target/lib with all the dependency jars
> >
> > 2. Run WSDL2Java against say the perf.wsdl in SVN
> > HINT: I use "java org.apache.axis2.wsdl.WSDL2Java -d adb -o work
> > -s -p samples.perf -t -ss -sd -uri
> > \APACHE\axis2\modules\samples\wsdl\perf.wsdl", this will
> create all
> > the generated code under a new directory named work.
> >
> > 3. Drop perf.wsdl into the work/resources directory.
> >
> > 4. Edit the server and the client
> > HINT: work\src\samples\perf\PerfPortTypeSkeleton.java
> is the
> > server, work\test\samples\perf\PerfPortTypeTest.java is
> the client
> >
> > 5. CD to work and run "ant start.server"
> > HINT: point your browser to http://localhost:8080/, it will
> > redirect you to http://localhost:8080/axis2/services. You
> can click on
> > the service name and look at the WSDL to make sure it's the same you
> > dropped in step #3.
> >
> > 6. open another prompt, set the classpath (see #1) and run "ant run.test"
> > HINT: this will use junit to run the test case, output will be in
> > work/build/test-reports
> >
> > That's it folks, You have your first service and client working with
> > each other :)
> >
> > Thanks,
> > dims
> >
> > PS: use "ant clean" to start fresh, it cleans up all the build artifacts
> > PPS: If you wish you can edit the stub or test case to edit the port
> > and then use tcpmon to look at the messages.
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> >
> >
>
>
>
> --
> Ajith Ranabahu
--
Davanum Srinivas : http://wso2.com/blogs/
Re: [Axis2] Keep it simple
Posted by Ajith Ranabahu <aj...@gmail.com>.
Guess any codegen/adb issues drop on my plate :). this is actually an easy
enough change to do so will do it today
On 1/5/06, Deepal Jayasinghe <de...@opensource.lk> wrote:
>
> great work dims !
>
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
> ----- Original Message -----
> From: "Davanum Srinivas" <da...@gmail.com>
> To: "Axis developer list" <ax...@ws.apache.org>
> Sent: Thursday, January 05, 2006 4:37 AM
> Subject: [Axis2] Keep it simple
>
>
> Folks,
>
> I've checked in a few changes to generated code and wanted to give you
> all an update. With the current SVN, here's what you can do.
>
> 1. Add the axis2 jar and all dependent jars to CLASSPATH
> HINT: if you run "maven create-lib" it will create a directory
> target/lib with all the dependency jars
>
> 2. Run WSDL2Java against say the perf.wsdl in SVN
> HINT: I use "java org.apache.axis2.wsdl.WSDL2Java -d adb -o work
> -s -p samples.perf -t -ss -sd -uri
> \APACHE\axis2\modules\samples\wsdl\perf.wsdl", this will create all
> the generated code under a new directory named work.
>
> 3. Drop perf.wsdl into the work/resources directory.
>
> 4. Edit the server and the client
> HINT: work\src\samples\perf\PerfPortTypeSkeleton.java is the
> server, work\test\samples\perf\PerfPortTypeTest.java is the client
>
> 5. CD to work and run "ant start.server"
> HINT: point your browser to http://localhost:8080/, it will
> redirect you to http://localhost:8080/axis2/services. You can click on
> the service name and look at the WSDL to make sure it's the same you
> dropped in step #3.
>
> 6. open another prompt, set the classpath (see #1) and run "ant run.test"
> HINT: this will use junit to run the test case, output will be in
> work/build/test-reports
>
> That's it folks, You have your first service and client working with
> each other :)
>
> Thanks,
> dims
>
> PS: use "ant clean" to start fresh, it cleans up all the build artifacts
> PPS: If you wish you can edit the stub or test case to edit the port
> and then use tcpmon to look at the messages.
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>
>
--
Ajith Ranabahu
Re: [Axis2] Keep it simple
Posted by Deepal Jayasinghe <de...@opensource.lk>.
great work dims !
Thanks,
Deepal
................................................................
~Future is Open~
----- Original Message -----
From: "Davanum Srinivas" <da...@gmail.com>
To: "Axis developer list" <ax...@ws.apache.org>
Sent: Thursday, January 05, 2006 4:37 AM
Subject: [Axis2] Keep it simple
Folks,
I've checked in a few changes to generated code and wanted to give you
all an update. With the current SVN, here's what you can do.
1. Add the axis2 jar and all dependent jars to CLASSPATH
HINT: if you run "maven create-lib" it will create a directory
target/lib with all the dependency jars
2. Run WSDL2Java against say the perf.wsdl in SVN
HINT: I use "java org.apache.axis2.wsdl.WSDL2Java -d adb -o work
-s -p samples.perf -t -ss -sd -uri
\APACHE\axis2\modules\samples\wsdl\perf.wsdl", this will create all
the generated code under a new directory named work.
3. Drop perf.wsdl into the work/resources directory.
4. Edit the server and the client
HINT: work\src\samples\perf\PerfPortTypeSkeleton.java is the
server, work\test\samples\perf\PerfPortTypeTest.java is the client
5. CD to work and run "ant start.server"
HINT: point your browser to http://localhost:8080/, it will
redirect you to http://localhost:8080/axis2/services. You can click on
the service name and look at the WSDL to make sure it's the same you
dropped in step #3.
6. open another prompt, set the classpath (see #1) and run "ant run.test"
HINT: this will use junit to run the test case, output will be in
work/build/test-reports
That's it folks, You have your first service and client working with
each other :)
Thanks,
dims
PS: use "ant clean" to start fresh, it cleans up all the build artifacts
PPS: If you wish you can edit the stub or test case to edit the port
and then use tcpmon to look at the messages.
--
Davanum Srinivas : http://wso2.com/blogs/