Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
alababi
Post subject: Need tutorial about Secure Web Services  PostPosted: Apr 24, 2007 - 05:33 PM



Joined: Mar 03, 2007
Posts: 10

I need a MyEclipse Tutorial about secure Web Services, I cannot find it anywhere in the Learning Center, or the support forum. If you have the tutorial please send me
 
 View user's profile Send private message  
Reply with quote Back to top
tomeksz
Post subject:   PostPosted: Apr 24, 2007 - 05:35 PM
Registered Member
Registered Member


Joined: Feb 27, 2007
Posts: 88

You can find some articles about WS-Security here : http://xfire.codehaus.org/Articles
 
 View user's profile Send private message  
Reply with quote Back to top
alababi
Post subject:   PostPosted: Apr 25, 2007 - 05:49 AM



Joined: Mar 03, 2007
Posts: 10

Can you give me a more detail tutorial? About encrypting the soap message. Sorry I'm new I need a step by step tutorial.
 
 View user's profile Send private message  
Reply with quote Back to top
tomeksz
Post subject:   PostPosted: Apr 25, 2007 - 09:41 AM
Registered Member
Registered Member


Joined: Feb 27, 2007
Posts: 88

Its really simple.
All information you need are here : http://xfire.codehaus.org/WS-Security
You can also check XFire ws-security examples, there is a complete example how to encrypt message.
 
 View user's profile Send private message  
Reply with quote Back to top
alababi
Post subject:   PostPosted: Apr 25, 2007 - 12:24 PM



Joined: Mar 03, 2007
Posts: 10

I read through http://xfire.codehaus.org/WS-Security but cannot catch the idea, for i.e. This session
Code:

 This WS-Security scenario adds username and password values to the message header. A password can be sent as plain text or in hashed form (depending on "passwordType" property).

Client side configuration :

protected void configureOutProperties(Properties config)
{
    // Action to perform : user token
    config.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN);
    // Password type : plain text
    config.setProperty(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT);
    // for hashed password use:
    //properties.setProperty(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_DIGEST);
    // User name to send
    config.setProperty(WSHandlerConstants.USER, "serveralias");
    // Callback used to retrive password for given user.
    config.setProperty(WSHandlerConstants.PW_CALLBACK_CLASS, PasswordHandler.class.getName());
}


The PasswordHandler class is responsible for finding the password for given user name and must implement the org.apache.ws.security.WSPasswordCallback interface.

You can also specify an existing handler instance, using the WSHandlerConstants.PW_CALLBACK_REF property on the client/service instance or MessageContext ( e.g. client.setProperty(new PasswordHandler())).

The WSHandlerConstants.PASSWORD_TYPE property determines how the password will be sent.  If it is set to WSConstants.PW_TEXT, the password will be sent as plain text.  If the value is WSConstants.PW_DIGEST, a password digest will be sent. If no value is set, a digest is used by default..


I don't know which file to put this method and so on. If you have time please make a simple HelloWorld WS with Soap Message Encryption. Thanks in advance
 
 View user's profile Send private message  
Reply with quote Back to top
tomeksz
Post subject:   PostPosted: Apr 25, 2007 - 01:40 PM
Registered Member
Registered Member


Joined: Feb 27, 2007
Posts: 88

As i wrote before you have working example in /examples/ws-security sample application inside XFire distribution.
 
 View user's profile Send private message  
Reply with quote Back to top
hbozic
Post subject:   PostPosted: Oct 12, 2007 - 07:11 PM
Registered Member
Registered Member


Joined: Mar 15, 2006
Posts: 11

Quote:

As i wrote before you have working example in /examples/ws-security sample application inside XFire distribution.

It would be nice for myeclipse to generate the basic code and configuration for ws-security , just as it generates the basic code and configuration for web services.
( this is a feature request )
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject:   PostPosted: Oct 15, 2007 - 08:47 AM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5264

Hi hbozic,
Thank you for this post. You can start a thread with your request on the Feature request forum so that other users can add their votes in favour of this request as well.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits