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 SivaKumarl <si...@naradaproducts.com> on 2009/10/19 06:18:04 UTC

Enabling ws-security to axis2 webservices

Hi Friends,
            I have developed a simple axis2 webservices, now i have to
integrate ws security, suggest me how to develop/integrate ws-security to
existing services. One more thing friends i need to implement
1)Authentication 2)Authorization and Transport Encoding.

The way i implement this services in eclipse IDE. First i generated a WSDL
using axis code generator plugin and then i web servrice(server) web
application , and client(java application).

  Kindly suggest me friends how to integrate ws-security ,it is very
important to my developed.Actually i studied about this,but i am not
succeded. kindly give me step by step process

Thanks in advance
------------------
Siva kumar
-- 
View this message in context: http://www.nabble.com/Enabling-ws-security-to-axis2-webservices-tp25953137p25953137.html
Sent from the Axis - Dev mailing list archive at Nabble.com.


Re: Enabling ws-security to axis2 webservices

Posted by SivaKumarl <si...@naradaproducts.com>.
Hi DSosnoski,
             Thanks for your reply, i will try this links.
Thanks
--------
Siva.

DSosnoski wrote:
> 
> Try my series on developerWorks:
> 
> http://www.ibm.com/developerworks/java/library/j-jws4/
> http://www.ibm.com/developerworks/java/library/j-jws5/
> http://www.ibm.com/developerworks/java/library/j-jws6/
> http://www.ibm.com/developerworks/java/library/j-jws7.html
> 
> The first three work with direct configuration of WS-Policy on client 
> and server, while the last one shows how to work with WS-Policy embedded 
> in WSDL.
> 
>   - Dennis
> 
> Dennis M. Sosnoski
> XML and Web Services in Java
> Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
> 
> 
> 
> SivaKumarl wrote:
>> Hi Chinmoy,
>>              First of all thanks for your reply, actually is studied this
>> link, but i am not succeded, whts my problem is client application
>> doesn't
>> contains any axis2.xml and service.xml file it contains only stub to
>> connect
>> server. can you please suggest me how to configure.
>>
>> The structure how i created is as follows.
>>
>> Client structure(java application)
>> ---------------
>> axis2client
>> |
>> |--src
>>     |-HelloWorldCallbackHandler.java
>>     |-HelloWorldClient.java
>>     |-HelloWorldStub
>>
>> Server Strucute(web application)
>> -------------
>> axis2Server
>> |
>> |
>> |--src
>>     |(set of classes)
>> |
>> |
>> |
>> |--web
>>     |-axis2-web
>>     |
>>     |-WEB-INF
>> 	|-conf
>> 	   |-axis2.xml
>> 	|-modules
>> 	|-services
>> 	|-web.xml
>>
>>
>>
>> Chinmoy Chakraborty wrote:
>>   
>>> You can have a look at [1].
>>>
>>> [1]. https://www.wso2.org/library/3190
>>>
>>> Chinmoy
>>>
>>> On Mon, Oct 19, 2009 at 9:48 AM, SivaKumarl
>>> <si...@naradaproducts.com>wrote:
>>>
>>>     
>>>> Hi Friends,
>>>>            I have developed a simple axis2 webservices, now i have to
>>>> integrate ws security, suggest me how to develop/integrate ws-security
>>>> to
>>>> existing services. One more thing friends i need to implement
>>>> 1)Authentication 2)Authorization and Transport Encoding.
>>>>
>>>> The way i implement this services in eclipse IDE. First i generated a
>>>> WSDL
>>>> using axis code generator plugin and then i web servrice(server) web
>>>> application , and client(java application).
>>>>
>>>>  Kindly suggest me friends how to integrate ws-security ,it is very
>>>> important to my developed.Actually i studied about this,but i am not
>>>> succeded. kindly give me step by step process
>>>>
>>>> Thanks in advance
>>>> ------------------
>>>> Siva kumar
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Enabling-ws-security-to-axis2-webservices-tp25953137p25953137.html
>>>> Sent from the Axis - Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>>       
>>>     
>>
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/Enabling-ws-security-to-axis2-webservices-tp25953137p25955276.html
Sent from the Axis - Dev mailing list archive at Nabble.com.


Re: Enabling ws-security to axis2 webservices

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Try my series on developerWorks:

http://www.ibm.com/developerworks/java/library/j-jws4/
http://www.ibm.com/developerworks/java/library/j-jws5/
http://www.ibm.com/developerworks/java/library/j-jws6/
http://www.ibm.com/developerworks/java/library/j-jws7.html

The first three work with direct configuration of WS-Policy on client 
and server, while the last one shows how to work with WS-Policy embedded 
in WSDL.

  - Dennis

Dennis M. Sosnoski
XML and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



SivaKumarl wrote:
> Hi Chinmoy,
>              First of all thanks for your reply, actually is studied this
> link, but i am not succeded, whts my problem is client application doesn't
> contains any axis2.xml and service.xml file it contains only stub to connect
> server. can you please suggest me how to configure.
>
> The structure how i created is as follows.
>
> Client structure(java application)
> ---------------
> axis2client
> |
> |--src
>     |-HelloWorldCallbackHandler.java
>     |-HelloWorldClient.java
>     |-HelloWorldStub
>
> Server Strucute(web application)
> -------------
> axis2Server
> |
> |
> |--src
>     |(set of classes)
> |
> |
> |
> |--web
>     |-axis2-web
>     |
>     |-WEB-INF
> 	|-conf
> 	   |-axis2.xml
> 	|-modules
> 	|-services
> 	|-web.xml
>
>
>
> Chinmoy Chakraborty wrote:
>   
>> You can have a look at [1].
>>
>> [1]. https://www.wso2.org/library/3190
>>
>> Chinmoy
>>
>> On Mon, Oct 19, 2009 at 9:48 AM, SivaKumarl
>> <si...@naradaproducts.com>wrote:
>>
>>     
>>> Hi Friends,
>>>            I have developed a simple axis2 webservices, now i have to
>>> integrate ws security, suggest me how to develop/integrate ws-security to
>>> existing services. One more thing friends i need to implement
>>> 1)Authentication 2)Authorization and Transport Encoding.
>>>
>>> The way i implement this services in eclipse IDE. First i generated a
>>> WSDL
>>> using axis code generator plugin and then i web servrice(server) web
>>> application , and client(java application).
>>>
>>>  Kindly suggest me friends how to integrate ws-security ,it is very
>>> important to my developed.Actually i studied about this,but i am not
>>> succeded. kindly give me step by step process
>>>
>>> Thanks in advance
>>> ------------------
>>> Siva kumar
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Enabling-ws-security-to-axis2-webservices-tp25953137p25953137.html
>>> Sent from the Axis - Dev mailing list archive at Nabble.com.
>>>
>>>
>>>       
>>     
>
>   

Re: Enabling ws-security to axis2 webservices

Posted by Chinmoy Chakraborty <cc...@gmail.com>.
You can go through the following link also:

Parameter based: http://wso2.org/library/240 <http://wso2.org/library/240>

You can download the samples and you get the axis2.xml required at client
side.



On Mon, Oct 19, 2009 at 10:36 AM, SivaKumarl
<si...@naradaproducts.com>wrote:

>
> Hi Chinmoy,
>             First of all thanks for your reply, actually is studied this
> link, but i am not succeded, whts my problem is client application doesn't
> contains any axis2.xml and service.xml file it contains only stub to
> connect
> server. can you please suggest me how to configure.
>
> The structure how i created is as follows.
>
> Client structure(java application)
> ---------------
> axis2client
> |
> |--src
>    |-HelloWorldCallbackHandler.java
>    |-HelloWorldClient.java
>    |-HelloWorldStub
>
> Server Strucute(web application)
> -------------
> axis2Server
> |
> |
> |--src
>    |(set of classes)
> |
> |
> |
> |--web
>    |-axis2-web
>    |
>    |-WEB-INF
>        |-conf
>           |-axis2.xml
>        |-modules
>        |-services
>        |-web.xml
>
>
>
> Chinmoy Chakraborty wrote:
> >
> > You can have a look at [1].
> >
> > [1]. https://www.wso2.org/library/3190
> >
> > Chinmoy
> >
> > On Mon, Oct 19, 2009 at 9:48 AM, SivaKumarl
> > <si...@naradaproducts.com>wrote:
> >
> >>
> >> Hi Friends,
> >>            I have developed a simple axis2 webservices, now i have to
> >> integrate ws security, suggest me how to develop/integrate ws-security
> to
> >> existing services. One more thing friends i need to implement
> >> 1)Authentication 2)Authorization and Transport Encoding.
> >>
> >> The way i implement this services in eclipse IDE. First i generated a
> >> WSDL
> >> using axis code generator plugin and then i web servrice(server) web
> >> application , and client(java application).
> >>
> >>  Kindly suggest me friends how to integrate ws-security ,it is very
> >> important to my developed.Actually i studied about this,but i am not
> >> succeded. kindly give me step by step process
> >>
> >> Thanks in advance
> >> ------------------
> >> Siva kumar
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Enabling-ws-security-to-axis2-webservices-tp25953137p25953137.html
> >> Sent from the Axis - Dev mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Enabling-ws-security-to-axis2-webservices-tp25953137p25953403.html
>  Sent from the Axis - Dev mailing list archive at Nabble.com.
>
>

Re: Enabling ws-security to axis2 webservices

Posted by SivaKumarl <si...@naradaproducts.com>.
Hi Chinmoy,
             First of all thanks for your reply, actually is studied this
link, but i am not succeded, whts my problem is client application doesn't
contains any axis2.xml and service.xml file it contains only stub to connect
server. can you please suggest me how to configure.

The structure how i created is as follows.

Client structure(java application)
---------------
axis2client
|
|--src
    |-HelloWorldCallbackHandler.java
    |-HelloWorldClient.java
    |-HelloWorldStub

Server Strucute(web application)
-------------
axis2Server
|
|
|--src
    |(set of classes)
|
|
|
|--web
    |-axis2-web
    |
    |-WEB-INF
	|-conf
	   |-axis2.xml
	|-modules
	|-services
	|-web.xml



Chinmoy Chakraborty wrote:
> 
> You can have a look at [1].
> 
> [1]. https://www.wso2.org/library/3190
> 
> Chinmoy
> 
> On Mon, Oct 19, 2009 at 9:48 AM, SivaKumarl
> <si...@naradaproducts.com>wrote:
> 
>>
>> Hi Friends,
>>            I have developed a simple axis2 webservices, now i have to
>> integrate ws security, suggest me how to develop/integrate ws-security to
>> existing services. One more thing friends i need to implement
>> 1)Authentication 2)Authorization and Transport Encoding.
>>
>> The way i implement this services in eclipse IDE. First i generated a
>> WSDL
>> using axis code generator plugin and then i web servrice(server) web
>> application , and client(java application).
>>
>>  Kindly suggest me friends how to integrate ws-security ,it is very
>> important to my developed.Actually i studied about this,but i am not
>> succeded. kindly give me step by step process
>>
>> Thanks in advance
>> ------------------
>> Siva kumar
>> --
>> View this message in context:
>> http://www.nabble.com/Enabling-ws-security-to-axis2-webservices-tp25953137p25953137.html
>> Sent from the Axis - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Enabling-ws-security-to-axis2-webservices-tp25953137p25953403.html
Sent from the Axis - Dev mailing list archive at Nabble.com.


Re: Enabling ws-security to axis2 webservices

Posted by Chinmoy Chakraborty <cc...@gmail.com>.
You can have a look at [1].

[1]. https://www.wso2.org/library/3190

Chinmoy

On Mon, Oct 19, 2009 at 9:48 AM, SivaKumarl
<si...@naradaproducts.com>wrote:

>
> Hi Friends,
>            I have developed a simple axis2 webservices, now i have to
> integrate ws security, suggest me how to develop/integrate ws-security to
> existing services. One more thing friends i need to implement
> 1)Authentication 2)Authorization and Transport Encoding.
>
> The way i implement this services in eclipse IDE. First i generated a WSDL
> using axis code generator plugin and then i web servrice(server) web
> application , and client(java application).
>
>  Kindly suggest me friends how to integrate ws-security ,it is very
> important to my developed.Actually i studied about this,but i am not
> succeded. kindly give me step by step process
>
> Thanks in advance
> ------------------
> Siva kumar
> --
> View this message in context:
> http://www.nabble.com/Enabling-ws-security-to-axis2-webservices-tp25953137p25953137.html
> Sent from the Axis - Dev mailing list archive at Nabble.com.
>
>