Hi

There are different levels of ws-security - the simplest is a username 
password combo then you can scale to encrypted stuff if required.

Len

Carl Woermann wrote:
> Hi I seem to remember that WSS4J allows you to set up security using 
> tokens/certificates that you can generate using the java key 
> generator. Its not really that pleasant to set up but if you follow 
> all the rtfm it eventually works (I ended up having to do it for 
> Websphere which seems to use WSS4J behind the covers..) One important 
> thing to remember is that this will authenticate the calling server to 
> the Web service, but not the user that is using your app to the Web 
> service. For that you would have to write a ahm service.... Then for 
> the really serious you can also encrypt the web service using same/or 
> other  certificates, this will encrypt parts or all of the xml 
> payload.. with a fair bit of overhead and a couple (I think 2 on each 
> side) of xml config files to write. To augment the previous solution, 
> it is also possible to make the web service secure via ssl - where the 
> servers themselves would have to be appropriately configured. (never 
> tried that though).
>
> PS As far I  know newer web services (Xfire for example and Axis 2) 
> have concepts of session management and thus a concept user, so most 
> likely a mechanism whereby the user can be authenticated and logged 
> in. Given this it would appear much easier to switch to a ssl 
> connection after login than have to encrypt calls...(unfortuantely I 
> never got that far though). Hope this helps.  Carl
>
> On 2/26/07, *Phillip Kruger* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
>     Hi Johan
>     I don't know WSS4J, looks like a good option,but if you're not keen to
>     do that, remember that SOAP is on top of HTTP, so you can still do all
>     the security that HTTP gives you...
>     (hint javax.xml.rpc.Stub.USERNAME_PROPERTY )
>
>     It means that your webservice would not even be hit in the case where
>     the login is wrong.
>
>     Hope with helps :)
>
>
>
>     Johan Meyer wrote:
>     > Hallo all
>     >
>     > I am new to the whole web service idea and would like to know if
>     any of
>     > you guys might be able to help. We are developing a web service
>     using
>     > Apache Axis and all is well but I need to make the web service more
>     > secure. Meaning the client will need to go through some kind of
>     login
>     > procedure before they can use the service. Any ideas where I can get
>     > more information about this? I did try google but could not find any
>     > decent examples of how to implement this.
>     >
>     >
>     >
>     > Thanks
>     >
>     > Johan
>     >
>     >
>     > --
>     > No virus found in this outgoing message.
>     > Checked by AVG Free Edition.
>     > Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date:
>     > 2/23/2007 4:39 AM
>     >
>     >
>     > ------=_NextPart_000_0001_01C7573A.EE817650
>     > Content-Type: text/html; charset=windows-1250
>     > Content-Transfer-Encoding: quoted-printable
>     > X-Google-AttachSize: 2092
>     >
>     > <html>
>     >
>     > <head>
>     > <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
>     > <meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">
>     >
>     > <style>
>     > <!--
>     >  /* Style Definitions */
>     >  p.MsoNormal, li.MsoNormal, div.MsoNormal
>     >       {margin:0in;
>     >       margin-bottom:.0001pt;
>     >       font-size:12.0pt ;
>     >       font-family:"Times New Roman";}
>     > a:link, span.MsoHyperlink
>     >       {color:blue;
>     >       text-decoration:underline;}
>     > a:visited, span.MsoHyperlinkFollowed
>     >       {color:purple;
>     >       text-decoration:underline;}
>     > span.EmailStyle17
>     >       {font-family:Arial;
>     >       color:windowtext;}
>     > @page Section1
>     >       {size:8.5in 11.0in;
>     >       margin:1.0in 1.25in 1.0in 1.25in;}
>     > div.Section1
>     >       {page:Section1;}
>     > -->
>     > </style>
>     >
>     > </head>
>     >
>     > <body lang=3DEN-US link=3Dblue vlink=3Dpurple>
>     >
>     > <div class=3DSection1>
>     >
>     > <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>     > style=3D'font-size:10.0pt;
>     > font-family:Arial'>Hallo all</span></font></p>
>     >
>     > <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>     > style=3D'font-size:10.0pt;
>     > font-family:Arial'>I am new to the whole web service idea and
>     would like =
>     > to
>     > know if any of you guys might be able to help. We are developing
>     a web =
>     > service
>     > using Apache Axis and all is well but I need to make the web
>     service =
>     > more
>     > secure. Meaning the client will need to go through some kind of
>     login =
>     > procedure
>     > before they can use the service. Any ideas where I can get more =
>     > information
>     > about this? I did try google but could not find any decent
>     examples of =
>     > how to
>     > implement this.</span></font></p>
>     >
>     > <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>     > style=3D'font-size:10.0pt;
>     > font-family:Arial'>&nbsp;</span></font></p>
>     >
>     > <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>     > style=3D'font-size: 10.0pt;
>     > font-family:Arial'>Thanks</span></font></p>
>     >
>     > <p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>     > style=3D'font-size:10.0pt;
>     > font-family:Arial'>Johan</span></font></p>
>     >
>     > </div>
>     >
>     > </body>
>     >
>     > </html>
>     > <BR>
>     >
>     > <P><FONT SIZE=3D2>--<BR>
>     > No virus found in this outgoing message.<BR>
>     > Checked by AVG Free Edition.<BR>
>     > Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: =
>     > 2/23/2007 4:39 AM<BR>
>     > </FONT> </P>
>     >
>     > ------=_NextPart_000_0001_01C7573A.EE817650--
>
>
>
>
>
>
> >

-- 
Len Weincier                          mailto:[EMAIL PROTECTED]
Software Architect                    GuruHut (http://www.guruhut.com)
Cell: +27 83 400 6106                 26 The Woodlands,Woodmead Drive,Woodmead


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
-~----------~----~----~----~------~----~------~--~---

Reply via email to