Updated WS-Trust interoperability samples in WSIT

The interoperability samples for WS-Trust were added recently in WSIT. I received some feedback on my earlier blog entry and made it even simpler to run these samples. The simplified steps are given below.

  1. Download GlassFish v2 and install it if you already don't have GlassFish v2. GlassFish v2 has WSIT bundled in it. Start the glassfish server.
  2. checkout ws-trust samples from cvs
  3. cvs -d :pserver:yourid@cvs.dev.java.net:/cvs co wsit/wsit/samples/ws-trust
  4. Set the glassfish.home property in wsit/wsit/samples/ws-trust/interop/build.properties
  5. There are 4  scenarios , namely transport-binding,mutual-certificate-10, mutual-certificate-11 , secureconversation-mutual-certificate-11. Go to the desired scenario directory.
    For Eg,
    cd wsit/wsit/samples/ws-trust/interop/src/mutual-certificate-11
  6. run the sample by choosing the appropriate target. The available targets are s-s-s,s-s-m,s-m-s,s-m-m,m-s-s,m-s-m,m-m-s,m-m-m . These target names denote the platform ( sun or ms ) for <client>-<sts>-<server>

  7. For eg,

    ant s-s-m

You can also open the scenarios as netbeans projects and explore them in detail. The important files to look at are the wsdl files in  etc/service/ , etc/sts , the client file in simple/client , the server file in simple/server and the STS implementation in simple/sts. The readme.txt in the wsit/wsit/samples/ws-trust/interop folder gives further details for running the transport-binding and  secureconversation-mutual-certificate-11 scenario.

If you have hosted the Microsoft's WCF endpoints in your local intranet and want to try the scenarios against that, edit the build.properties in each scenario and change the property ms.host.

For tomcat, the steps are same, except you set tomcat.home property in step 3.
Try it, explore it, give suggestions and feedback if you have any.



Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

harsha

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today