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 "Villalba, Gregorio, VF-ES (gvillal2) EXT" <gv...@corp.vodafone.es> on 2006/05/12 14:59:50 UTC

RV: Axis2 service without Apache

Hi all.

 

My question is very siple, but I have no found the answer in the documentation, maybe someone can help me.

Can the code generation tool be used to create automatically a service from a WSDL, and deploy it without any servlet container? 

For example if I want to develop and deploy a service using java org.apache.axis2.transport.http.SimpleHTTPServer.

 

Thanks in advance.

 

  _____  

De: Paul Fremantle [mailto:pzfreo@gmail.com] 
Enviado el: martes, 29 de noviembre de 2005 17:44
Para: axis-dev@ws.apache.org
Asunto: Re: Axis2 service without Apache

 

java org.apache.axis2.transport.http.SimpleHTTPServer /path/to/repository/dir 6060

Will start up a simple HTTP listener. No Servlets.

Paul

On 11/29/05, Villalba, Gregorio, VF-ES (gvillal2) EXT <gv...@corp.vodafone.es> wrote:

Hi again.

Ok, so it is possible to develope and deploy a service without a servlet
container. But, How can I use Axis2 to do it? Is there any documentation
or example? Sincerely I don't know where to start.


-----Mensaje original-----
De: Sanjiva Weerawarana [mailto:sanjiva@opensource.lk]
Enviado el: martes, 29 de noviembre de 2005 16:59
Para: axis-dev@ws.apache.org
Asunto: Re: Axis2 service without Apache


On Tue, 2005-11-29 at 16:03 +0100, Villalba, Gregorio, VF-ES (gvillal2)
EXT wrote:
> Hi everybody.
>
> I am not new to Axis 2, but I have been reading documentation 
> recently. In the Architecture Guide are mentined some interesting WS
> concepts, like listeners, handlers, message receivers...
>
> But when I read how to build and install a service I understood that 
> the only way to use Axis2 to deploy a WS is using a servlet container.

> Maybe I am wrong but Is Axis2 designed to work always integrated with
> a Servlet Container?

Absolutely not .. it can work under any transport infrastructure. We use 
a simple server for test purposes but I know others have tried with
various other middleware to get messages into Axis2.

Sanjiva.


Confidencialidad
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios y propiedad de Vodafone España. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Vodafone España, en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente y la destrucción del mismo. 

Confidentiality
The information in this e-mail and in any attachments is classified as Vodafone España Confidential and Proprietary Information and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Vodafone España and is s strictly prohibited by law. If you have received this communication in error, please, notify the sender by reply e-mail. 

 

Confidencialidad 
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios y propiedad de Vodafone España. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Vodafone España, en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente y la destrucción del mismo.

Confidentiality 
The information in this e-mail and in any attachments is classified as Vodafone España Confidential and Proprietary Information and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Vodafone España and is s strictly prohibited by law. If you have received this communication in error, please, notify the sender by reply e-mail.

Re: RV: Axis2 service without Apache

Posted by Rajith Attapattu <ra...@gmail.com>.
Hi Villalba,

Use the WSDL2Java tool to generate the code from a wsdl file

Here is the code sample to start a simple HTTP server

--------------------------------------------------------------------------------------------------------------------------
SimpleHTTPServer receiver = new SimpleHTTPServer(
        ConfigurationContextFactory.createConfigurationContextFromFileSystem
(
                repo, axis2File), port, null);
receiver.start();
--------------------------------------------------------------------------------------------------------------------------

repo =  path to the axis2 repository (u need to have your service and module
archives in this directory)
axis2File = location of the axis2.xml
port  = port number on which you want to start your HTTP server.

Hope this helps

Regards,

Rajith

On 5/12/06, Villalba, Gregorio, VF-ES (gvillal2) EXT <
gvillal2@corp.vodafone.es> wrote:
>
>  Hi all.
>
>
>
> My question is very siple, but I have no found the answer in the
> documentation, maybe someone can help me.
>
> Can the code generation tool be used to create automatically a service
> from a WSDL, and deploy it without any servlet container?
>
> For example if I want to develop and deploy a service using java
> org.apache.axis2.transport.http.SimpleHTTPServer.
>
>
>
> Thanks in advance.
>
>
>  ------------------------------
>
> *De:* Paul Fremantle [mailto:pzfreo@gmail.com]
> *Enviado el:* martes, 29 de noviembre de 2005 17:44
> *Para:* axis-dev@ws.apache.org
> *Asunto:* Re: Axis2 service without Apache
>
>
>
> java org.apache.axis2.transport.http.SimpleHTTPServer/path/to/repository/dir 6060
>
> Will start up a simple HTTP listener. No Servlets.
>
> Paul
>
> On 11/29/05, *Villalba, Gregorio, VF-ES** (gvillal2) EXT* <
> gvillal2@corp.vodafone.es> wrote:
>
> Hi again.
>
> Ok, so it is possible to develope and deploy a service without a servlet
> container. But, How can I use Axis2 to do it? Is there any documentation
> or example? Sincerely I don't know where to start.
>
>
> -----Mensaje original-----
> De: Sanjiva Weerawarana [mailto:sanjiva@opensource.lk]
> Enviado el: martes, 29 de noviembre de 2005 16:59
> Para: axis-dev@ws.apache.org
> Asunto: Re: Axis2 service without Apache
>
>
> On Tue, 2005-11-29 at 16:03 +0100, Villalba, Gregorio, VF-ES (gvillal2)
> EXT wrote:
> > Hi everybody.
> >
> > I am not new to Axis 2, but I have been reading documentation
> > recently. In the Architecture Guide are mentined some interesting WS
> > concepts, like listeners, handlers, message receivers...
> >
> > But when I read how to build and install a service I understood that
> > the only way to use Axis2 to deploy a WS is using a servlet container.
>
> > Maybe I am wrong but Is Axis2 designed to work always integrated with
> > a Servlet Container?
>
> Absolutely not .. it can work under any transport infrastructure. We use
> a simple server for test purposes but I know others have tried with
> various other middleware to get messages into Axis2.
>
> Sanjiva.
>
>
> Confidencialidad
> Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
> contiene información de carácter confidencial exclusivamente dirigida a su
> destinatario o destinatarios y propiedad de Vodafone España. Queda prohibida
> su divulgación, copia o distribución a terceros sin la previa autorización
> escrita de Vodafone España, en virtud de la legislación vigente. En el caso
> de haber recibido este correo electrónico por error, se ruega notificar
> inmediatamente esta circunstancia mediante reenvío a la dirección
> electrónica del remitente y la destrucción del mismo.
>
> Confidentiality
> The information in this e-mail and in any attachments is classified as
> Vodafone España Confidential and Proprietary Information and solely for the
> attention and use of the named addressee(s). You are hereby notified that
> any dissemination, distribution or copy of this communication is prohibited
> without the prior written consent of Vodafone España and is s strictly
> prohibited by law. If you have received this communication in error, please,
> notify the sender by reply e-mail.
>
>
>  Confidencialidad
> Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
> contiene información de carácter confidencial exclusivamente dirigida a su
> destinatario o destinatarios y propiedad de Vodafone España. Queda prohibida
> su divulgación, copia o distribución a terceros sin la previa autorización
> escrita de Vodafone España, en virtud de la legislación vigente. En el caso
> de haber recibido este correo electrónico por error, se ruega notificar
> inmediatamente esta circunstancia mediante reenvío a la dirección
> electrónica del remitente y la destrucción del mismo.
>
> Confidentiality
> The information in this e-mail and in any attachments is classified as
> Vodafone España Confidential and Proprietary Information and solely for the
> attention and use of the named addressee(s). You are hereby notified that
> any dissemination, distribution or copy of this communication is prohibited
> without the prior written consent of Vodafone España and is s strictly
> prohibited by law. If you have received this communication in error, please,
> notify the sender by reply e-mail.
>