Friday, 26 September 2008
Wednesday, 24 September 2008
Compile and test with different JDK versions Maven
Nice posting showing usage of defining JDK as a parameter in user profiles
http://unserializableone.blogspot.com/2008/09/compile-and-test-with-different-jdk.html
Friday, 5 September 2008
Google Chrome crash if link has :%
Many people are aware by now that placing about:% or just :% in to Chromes address bar will crash your Chrome Browser.
RELAX –WS
RELAX –WS
Relax-WS facilitates creation of WSDL file using Relax NG syntax, which is quite less verbose and straightforward.
http://relaxng.org/compact-tutorial-20030326.html
Example
service Hello {
port {
operation SayHello {
in {
element name {xsd:string}
}
out {
element message {xsd:string}
}
}
}
}
Pitfalls
Cardinality
XMLSchema
<xsd:element name="bar">
<xsd:element name="foo" minOccurs="5" maxOccurs="30"/>
</xsd:element>
Relax NG Compact syntax
start = element bar { fivefoo, upto25foo }
fivefoo = element foo { empty }, element foo { empty },
element foo { empty }, element foo { empty },
element foo { empty }
maybefoo = element foo { empty }?
upto25foo =
fivefoo?, fivefoo?, fivefoo?, fivefoo?,
maybefoo, maybefoo, maybefoo, maybefoo, maybefoo
It would be extremely verbose if suppose we had to define cardinality lets say between 250 and 500. Also it would prone to human errors.
Relax NG to Schema
Since xml schema seems to be more constrained version of RELAXNG grammar, everything defined in RELAX NG would not be possible to translate into Schema in a predictable way
start = DoSomething
DoSomething = element DoSomething { resAny* & DidSomething? }
DidSomething = element DidSomething { xsd:integer }
resAny = (anyAttribute | text | resAnyElem)
resAnyElem = element * - DidSomething { any* }
Another approach is to do it spring way
http://static.springframework.org/spring-ws/sites/1.5/reference/html/tutorial.html
Thursday, 4 September 2008
OASIS Reference Architecture for SOA v 1.0 (public review draft 1)
Interesting reading material of SOA Architecture
http://docs.oasis-open.org/soa-rm/soa-ra/v1.0/soa-ra-pr-01.pdf
Tuesday, 2 September 2008
Google Browser Chrome
New google browser to be launched
http://news.cnet.com/8301-17939_109-10030025-2.html