No.. You do not need to have axis2-test.jar...
What you need to get hold is the SimpleHttpServer in axis2-kernel.jar..

Have a look at this [1] to get an idea of it's usage... You can
initialize a SimpleHttpServer by passing a ConfigurationContext
created from an Axis2 repository. You can enable addressing on the
server by doing so in the axis2.xml you are giving in the above
mentioned repository..

        protected void setUp() throws Exception {
                File file = new File(repository);
                File configFile = new File(repository + "/conf/axis2.xml");
                ......
                ConfigurationContext er = ConfigurationContextFactory
                                .createConfigurationContextFromFileSystem(file
                                                .getAbsolutePath(), 
configFile.getAbsolutePath());
                server = new SimpleHTTPServer(er, 8081);
                server.start();
        }

HTH,
~Thilina

[1] 
http://svn.apache.org/viewvc/webservices/kandula/trunk/java/test/org/apache/kandula/integration/CompletionCommitTest.java?view=markup

On 10/4/06, Punnoose, Roshan <[EMAIL PROTECTED]> wrote:
Hi,

What is the best way to get a hold of the axis2-test jar? So that I can
get access to the UtilServer? Thanks.

Roshan Punnoose
Phone: 301-497-6039

-----Original Message-----
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 04, 2006 8:34 AM
To: [email protected]
Subject: Re: [Axis2] Embedded Axis Server

You can use the SimpleAxisServer for this.. Most of the Axis2
integration tests use that...

Following test cases will give you an idea...
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integr
ation/test/org/apache/axis2/engine/EchoRawXMLTest.java?view=markup

http://svn.apache.org/viewvc/webservices/kandula/trunk/java/test/org/apa
che/kandula/integration/CompletionCommitTest.java?view=markup

~Thilina

On 10/4/06, Punnoose, Roshan <[EMAIL PROTECTED]> wrote:
> Is it possible to configure an embedded test server that axis can run
locally that consumes the services.xml and the axis2.xml? I have
configurations in there I want to test/use.
>
> Roshan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

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





--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

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

Reply via email to