Posts for the 'Web services' Category
SOAP-based services currently dominate the enterprise landscape. Main reasons this are:
SOAP tight coupling with WSDL. Until recently, SOAP was the only supported WSDL binding. WSDL, with all of its issues (such as the convoluted structure), remains the only widely accepted vendor-neutral way of defining services.
In Java world, SOAP was promoted by adding its support [...]
Using Maven Repository as Web Services Registry
Sunday, July 1st, 2007
A Web services registry is arguably one of the most important components of SOA. The registry provides a single source of information about all services in an enterprise.
There are a number of commercial registry/repository products but all of them are quite pricey. Also, smaller organizations or organizations just starting with SOA may not need [...]
Comparison of SOA Suites
Sunday, June 17th, 2007
Several SOA vendors are trying to put together comprehensive suites of SOA products that in theory should be capable of
addressing
all aspects of SOA, including governance, integration, business process management and others.
Formation of SOA suites is having a tremendous impacts on how SOA products are selected
as many organizations
are being tempted to settle [...]
Will JAX-WS Become the Primary Mechanism for Invoking RESTful Services?
Saturday, June 2nd, 2007
Developers working with REST and XML/HTTP services have traditionally used light-weight APIs, such as java.net classes or Apache HttpClient. Web services APIs provided by JAX-RPC were SOAP and "enterprise" only and they required J2EE libraries. The situation changed with the release of JAX-WS and its inclusion into Java SE 6. JAX-WS supports [...]
soapUI vs. JUnit
Saturday, April 28th, 2007
Open source soapUI tool has a number of benefits over developing test cases in Java using JUnit framework. Some of these benefits include:
Use of UI for creating/configuring tests. This makes it possible for non-programmers to develop tests, which means that testing of Web services can be performed by a QA/system test group.
Auto-generation of [...]
Create JAX-WS Service in 5 Minutes (Tutorial)
Thursday, April 19th, 2007
This is a brief tutorial describing how to create a Web service using WSDL and annotations.
The approach presented here allows you to design and implement your WSDL/Schema and Java classes
independently without having to generate anything. You can then use annotations
to map Java classes to appropriate WSDL and Schema elements.
Since JAXB and JAX-WS [...]
WS-I Basic Security Profile Has Been Released
Thursday, April 12th, 2007
The final version of Basic Security Profile 1.0 (BSP) was recently been released by WS-I. This is certainly a welcome event; WS-Security is broad and complex and it has been plagued by interoperability issues for quite some time (although the situation has improved in the last year or so). The BSP document seems to have [...]
WSDL Naming Conventions
Sunday, April 8th, 2007
Web service providers communicate with their customers (consumers) by the means of publishing WSLD of the service. In most cases, developers create the client code for the service by generating classes from the published WSDL file. While JAX-WS makes it possible to avoid code generation entirely (as I described in
this post) and hand-code all [...]
JSON Pros and Cons
Thursday, February 8th, 2007
JSON is a simple object serialization approach based on
the JavaScript object initializers syntax. The code for initializer (object
literal) is put into a string and then interpreted using JavaScript eval()
function or JSON parser (which is very lightweight):
serializedObj='{firstName:"john", lastName:"doe"}';
...
// This is just an example, JSON parser should be used instead
// to avoid security vulnerabilities [...]
Who Needs Web Services Repository?
Wednesday, January 10th, 2007
Web services repositories are almost always mentioned in conjunction with SOA governance as its key enabler and there is a widespread notion that a repository is a key component of an SOA.
To me there are two types of SOA governance. There is strategic governance which is part of the overall IT governance that deals [...]
Schema Compliance is the Key to Interoperability
Thursday, November 23rd, 2006
Good Web services interoperability
is an absolute must for a successful SOA implementation, but why
interoperability has been so difficult to achieve?
I think that inability to comply with a published Web services contract
expressed via its WSDL/Schema could be one of the leading causes of
interoperability problems (I use the term "interoperability" pretty broadly here).
For [...]
“Wrapper”/”Non-wrapper” Web Service Styles - Things You Need to Know
Wednesday, November 15th, 2006
"Wrapper"/"non-wrapper" Web services styles are mandated by JAX-RPC and JAX-WS
specifications
and are explained in details in documentation or in other sources, for
example in
this article. However, from my experience, there is still a lot of
confusion among developers about differences between these two styles and also
how a particular style affects design and [...]
Reliability of SOAP over HTTP Web Services
Sunday, October 29th, 2006
HTTP or HTTPS can be viewed as the current de-facto standard transport binding
for Web services. It is frequently said, however, that HTTP is inherently
unreliable and not appropriate in situations where guaranteed delivery and other
Quality of Service (QoS) characteristics are required. To deal with this issue,
many Web services products, commercial and open-source, [...]
Using Schema Validation with JAXB and XFire
Thursday, October 5th, 2006
Schema validation framework that I covered earlier is actually fully supported by
JAXB. If you're using XFire, you will have to switch to JAXB binding in order to
utilize it.
As described in XFire documentation, you can specify "schema" element as part
of your service definition and point it to your schema. From what I understand, [...]
Web Services without Code Generation
Saturday, September 30th, 2006
JAX-RPC supports two major ways of developing Web services:
"bottom-up", which allows to generate WSDL from a Java interface and "top-down",
which generates Java classes from WSDL. Both of these approaches suffer from
one major drawback.
WSDL/Schema/mapping files or Java classes are fully re-created every time there is a need
to change Web service interface and so [...]