Friday, 29 January 2010

Preparing for SCDJWS Part 18: XML Digital Signature and XML Encryption

Share
Today I will talk about XML Digital Signature and XML Encryption.

These two are heavily used in Web Services' message level security.

I will show you how to sign and verify XML documents using core (and verbose) Java XML Security API.

Also, I will show you how to sign and verify XML documents and encrypt them using Apache Santuario project.

Friday, 22 January 2010

Preparing for SCDJWS Part 17: Web Services transport level security

Share
Section 8 of SCDJWS exam objectives is dedicated to Web Services security.

Today I will talk about transport level security such as basic and mutual authentication, and SSL.

Wednesday, 20 January 2010

Preparing for SCDJWS part 16: Java EE Web Services and XML standards

Share
Section 7 of SCDJWS exam objectives is dedicated to Java EE Web Services and various XML and WS standards.

Today's post is just a set of external links. Section 7 requires a general knowledge of Java EE and XML and WS standards, so no point in copying-and-pasting contents of Sun's documentation or Wiki articles.

Friday, 15 January 2010

Preparing for SCDJWS Part 15: JAXR and Web Services Registries

Share
Section 6 of SCDJWS, which today I'm going to cover, is entirely dedicated to JAXR.

To find out more about JAXR itself please see: http://java.sun.com/developer/technicalArticles/WebServices/jaxrws/.

To get you started with JAXR development all you have to do is get yourself familiar with 3 tables from the above article:
  • Table 1: Mapping of high-level UDDI data structures to JAXR interfaces
  • Table 2: Mapping of UDDI Publisher API to JAXR
  • Table 3: Mapping of UDDI Inquiry API to JAXR
Also, a really nice IBM presentation about JAXR can be found here: http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/index.jsp?topic=/com.ibm.iea.was_v6/was/6.0/WebServices/WASv6_JAXR/player.html.

And you're ready to start with JAXR. So here we go.

Tuesday, 12 January 2010

Preparing for SCDJWS Part 14: Web Services and attachments

Share
Last point of Section 2 of SCDJWS exam objectives says:
Describe SOAP Message Construct and create a SOAP message that contains an attachment
and the last point of Section 5 says:
Create and use a SOAP message with attachments using the SAAJ APIs
I have already showed you how to create SOAP message with attachments using low level SAAJ API: Preparing for SCDJWS Part 4: Creating SOAP Messages that contain attachments. Today I will rehearse it one more time plus I will show you how to create and consume attachments using JAX-WS API.

Monday, 11 January 2010

Preparing for SCDJWS Part 13: REST, JSON, JAX-RS (and CXF)

Share
The first four points of Section 5 of SCDJWS exam objectives talk about REST, JSON, and SOAP Web Services.

As I have been writing about SOAP Web Services ever since I started my blog I will focus only on RESTful Web Services in this post.

First time I wrote about JAX-RS was 8 months ago: Developing RESTful Web Services using Apache CXF and Maven2.

I used Apache CXF 2.1 and JAX-RS 0.8. Today JAX-RS is final 1.0 and Apache CXF 2.2 supports it fully.

Also, Apache CXF 2.2 added support for WADL (something like a WSDL, but for RESTful Web Services).

So, here we go.

Friday, 8 January 2010

Preparing for SCDJWS Part 12: JAX-WS Advanced clients

Share
Today I will give you examples of Java EE clients and clients of Stateful Web Services.

Let's get to work then.

Wednesday, 6 January 2010

Google Closure Compiler and Groovy client

Share
As you can read on Google Closure Library home page: http://code.google.com/intl/pl/closure/library/, Google Closure is a broad, well-tested, modular, and cross-browser JavaScript library.

A very interesting part of Closure Library is the Closure Compiler...

Monday, 4 January 2010

Preparing for SCDJWS part 11: JAX-WS Communications Models

Share
Today I will write about point 4.8 JAX-WS Communications Models from the SCDJWS exam objectives.

To cut long story short, JAX-WS supports the following three communications models:
  • synchronous
  • asynchronous (in two versions, with or without AsyncHandler)
  • one way
When preparing to this post I noticed that all my JAX-WS examples in my blog use high-level (POJO) Web Service producers and consumers. In today's examples I will use low-level Dispatcher and Provider classes.

Saturday, 2 January 2010

New Year's resolutions

Share
As usually everyone is making resolutions for the New Year.

Here are my IT resolutions:
  • reply to comments on my blog onboard :)
  • learn Groovy in depth
  • don't refrain from integration tests
  • finish writing PhD system (currently version 0.5, 0.6 will probably be 1.0)
  • start writing PhD thesis!
I hope that at the end of 2010 I put a tick next to each resolution.

All the best in 2010!

Take care,
Łukasz