Sun Java Solaris Communities My SDN Account Join SDN
 
Metro Web Services Community
Metro Web Services for the Java Platform
Fast, secure, reliable, transactional, interoperable.  

 Download Now!

Blogs


Here are our experts on Web Services. Stay tuned for the latest news, commentaries, perspectives, and pointers.


Frequent Java Web Services Bloggers
 
[spacer] [spacer]
 
Recent Posts by Web Services Bloggers @ Sun
Handling Claims with Metro STS II
Posted by jiandongg on Thu, 12 Nov 2009 19:08:51 -0800

With Oasis standard versions of WS-SecurityPolicy 1.2 and WS-Trust 1.3, syntax is different for Claims, where it is defined as a top level sub-element of IssuedToken in stead of a sub-element of RequestSecurityTokenTemplate:

 
& lt;sp:IssuedToken sp:IncludeToken= " ... " & gt;
& lt;Issuer xmlns= " ... ">
& lt;Address xmlns= " http://www.w3.org/2005/08/addressing " & gt;... & lt;/Address & gt;
& lt;/Issuer & gt;
& lt;t:Claims Dialect= " http://schemas.xmlsoap.org/ws/2005/05/identity "
xmlns:ic= " http://schemas.xmlsoap.org/ws/2005/05/identity " & gt;
& lt;ic:ClaimType Uri= " http://.../ws/2005/05/identity/claims/givenname " / & gt;
& lt;ic:ClaimType Uri= " http://.../ws/2005/05/identity/claims/surname " Optional= " true " / & gt;
& lt;/wst:Claims & gt;
& lt;sp:RequestSecurityTokenTemplate
xmlns:t= " http://schemas.xmlsoap.org/ws/2005/02/trust " & gt;
& lt;t:TokenType> urn:oasis:names:tc:SAML:2.0:assertion & lt;/t:TokenType & gt;
& lt;t:KeyType & gt;http://schemas.xmlsoap.org/ws/2005/02/trust/SymmetricKey & lt;/t:KeyType & gt;
& lt;t:KeySize & gt;256 & lt;/t:KeySize & gt;
& lt;/sp:RequestSecurityTokenTemplate & gt;
& lt;/sp:IssuedToken & gt;


ActAs and Credential Delegation: update
Posted by jiandongg on Thu, 12 Nov 2009 13:29:10 -0800

Update the support for ws-trust 1.4 in Metro 2.0 for token delegation with ActAs to ensure interoperbility:

1. use ws-trust 1.4 namespace for ActAs: http://docs.oasis-open.org/ws-sx/ws-trust/200802
2. Create delegate SAML assertion with
& nbsp & nbsp * id and usual attributes for the original user
& nbsp & nbsp * actor attribute for the requestor:

 
& lt;saml:Attribute AttributeName= " actor "
AttributeNamespace= " http://schemas.xmlsoap.com/ws/2009/09/identity/claims " & gt;
& lt;saml:AttributeValue & gt;
& lt;saml:Attribute AttributeName= " name "
AttributeNamespace= " http://schemas.xmlsoap.org/ws/2005/05/identity/claims " xmlns:saml= " urn:oasis:names:tc:SAML:1.0:assertion " & gt;
& lt;saml:AttributeValue & gt;name & lt;/saml:AttributeValue & gt;
& lt;/saml:Attribute>
& lt;/saml:AttributeValue & gt;
& lt;/saml:Attribute & gt;


P ? edn á ? ka o JAX-RS a Jersey na WebExpo konferenci
Posted by 149343 on Sat, 17 Oct 2009 02:15:00 -0700

WebExpo je ú dajn ? nejv ? t ? í ? esk á konference zam ? ? en á na web. Za chv í li tam m á m prezentovat JAX-RS a pota ? mo Jersey a u ? se moc t ? ? í m. Je to vlastn ? poprv é , kdy budu prezentovat mimo Java komunitu, a moc m ? zaj í m á , jak na to budou lidi reagovat. Taky jsem zv ? dav ý na p ? edn á ? ky ostatn í ch.

V ? ? í m slajdy na http://blogs.sun.com/japod/resource/Jersey-WebExpo-Praha.pdf a vrh á m se do v í ru konference...


Jak se dostat do kancel á ? e SUNu v Praze na Chodov ?
Posted by 149343 on Fri, 25 Sep 2009 08:00:59 -0700

Proto ? e prvn í popr á zdninov é setk á n í sdru ? en í CZJUG prob ? hne vyj í me ? n ? v pra ? sk é kancel á ? i SUNu, zve ? ej ? uji zde mapu, p á r obr á zk ? a stru ? n ý n á vod jak se na m í sto dostat.

Mapa

 mapka okol í  kancel á ? e SUNu na pra ? sk é m Chodov ?

Kliknut í m na mapu by se v á m v prohl í ? e ? i m ? la otev ? í t aplikace mapy.cz, s nastavenou polohou m í sta setk á n í . P ? esn á adresa je: Praha 4, V Parku 8.

Jak se dostat dovnit ? , aneb pro ? b ý t na m í st ? opravdu v ? as

Pro snaz ? í orientaci p ? ikl á d á m rad ? ji i fotografie. Na t é prvn í je pohled sm ? rem ke kancel á ? i od stanice metra a autobus ? Chodov. Na druh é je vid ? t vlastn í vchod do budovy. Po vstupu do are á lu se jedn á o prvn í takov ý vchod vpravo, hned za kade ? nictv í m a dv ? ma obchody s j í dlem, pit í m a ? asopisy.

Samotn é setk á n í prob ? hne od 18h ve ? er ve ? tvrt é m pat ? e budovy, kam se mus í te dostat p ? es celkem 2 recepce. Jedna recepce, provozovan á majitelem nemovitosti, je dole v p ? í zem í . Tam v á s pust í v ý tahem nahoru do 4. patra kde je je ? t ? recepce firmy SUN. Pros í m v ? echny ú ? astn í ky setk á n í , aby byli na m í st ? alespo ? s desetiminutov ý m p ? edstihem. Recepce SUNu toti ? zav í r á p ? esn ? v ? est ve ? er, a p ? í padn ý m opozdilc ? m tak hroz í , ? e p ? ijdou o pom ? rn ? velkou ? á st prvn í p ? edn á ? ky. Budu se sice sna ? it ob ? as nakouknout ven, ale ten Gradle m ? taky zaj í m á , tak ? e nebudu na recepci po ? á d.

Doprava MHD

Je asi nejjednodu ? í mo ? nost, jak se na Chodov dostat. Na m í sto jezd í linka metra C, p ? í padn ? autobusy ? . 114, 122, 136 a 177. J í zdn í ? á dy lze snadno vyhledat na str á nk á ch dopravn í ho podniku, http://www.dpp.cz

Pojedete autem?

V á ? n ? ? I kdy ? akci sponzoruje spole ? nost JetBrains krom ? jin é ho chlazen ý m pivem? Co se d á d ? lat. Vzhledem k velk é popularit ? CZJUG setk á n í nejsem schopen garantovat parkov á n í v gar á ? í ch SUNu, tak ? e tam pros í m ani nejezd ? te. M á te ale mo ? nost zaparkovat sv é auto v gar á ? í ch obchodn í ho centra Chodov, kde m á te 3 hodiny parkov á n í zdarma. Obchodn í centrum je p ? í mo na metru.

M á te n ? jak é dotazy? Pros í m napi ? t ? je do koment á ? e, a ? odpov ? di vid í v ? ichni. T ? ? í m se p ? í ? t í st ? edu nashledanou!


TOTD #98: Create a Metro JAX-WS Web service using GlassFish Tools Bundle for Eclipse
Posted by arungupta on Tue, 25 Aug 2009 04:00:00 -0700

Now that you ' ve installed GlassFish Tools Bundle for Eclipse 1.1 , lets use this bundle to create a simple Metro / JAX-WS compliant Web service and deploy on GlassFish . These steps will work with either Eclipse 3.4.2 or 3.5 with WTP Java EE support.

  1. Lets create a simple " Dynamic Web Project " as shown below:


  2. Name the project " HelloMetro " and take all other defaults:



    Click on " Finish " to complete the project creation.
  3. Metro allows to create a Web service from a POJO class. So let ' s add a POJO to the project by right-clicking on the project and selecting " New " , " Class " as shown below:

     & nbsp; & nbsp;

    Specify the package name as " server " , class name as " HelloService " and click on " Finish " .
  4. Add a simple method to the newly generated class as:

     
    public String sayHello(String name) { 
          return  " Hello  "  + name +  " !! " ; 
    }
  5. Expand the project, go to " HelloService.java " in " server " package, right-click, select " Web Services " , " Create Web service " .
  6. Click on " Web service runtime: Apache Axis " and select " Metro (JAX-WS) Runtime " as the Web service runtime as shown below:

  7. Move the slider on the left to top. This will enable testing of the deployed Web service. The completed configuration looks like:



    and click on " Next & gt; " .
  8. Select the checkbox " Copy Metro library jars to the project " to resolve the references correctly as shown below:



    and click on " Next & gt; " . This bundles the application and deploys to GlassFish and provide s an option to test the deployed Web service as shown below:



    Clicking on the " Launch " button shows the following output in the browser:



    The WSDL is hosted at " http://localhost:8083/HelloMetro/HelloServiceService?wsdl " .
  9. Click on " sayHello " method, click on " Add " and enter the value as " Duke " as shown below:



    Click on " Go " and the response is shown as:



    Clicking on " Source " in the response window shows the SOAP request/response messages as shown below:

  10. Alternatively, you can click on " Finish " to complete the dialog. Then click on " Run " menu item, " Launch t he Web Services Explorer " to see a screen as:



    Enter the URL of the WSDL in " WSDL URL " box as " http://localhost:8083/HelloMetro/HelloServiceService?wsdl " and click on " Go " . Now you are seeing the similar screen to test the Web service within the integrated browser as shown below:


A future blog will cover how to write a database-enabled application using the bundled Dali JPA Tools and MySQL pre-registered JDBC driver.

Please send your questions and comments to users@glassfishplugins.dev.java.net .
Please leave suggestions on other TOTD that you ' d like to see. A complete archive of all the tips is available here .

Technorati: totd glassfish eclipse galileo webservices metro jax-ws
netBeans IDE - Download Now
 
Open Project GlassFish
 
Aquarium
 
Getting Started
 
Related Links