spring with wsdls/java2wsdl - university of …kena/classes/7818/f08/lectures/... · spring with...

10
Spring with WSDLS/java2wsdl “He is like superman against logic bullets!” -A grumpy guy in the hallway in reference to one of the stakeholders

Upload: duongkhanh

Post on 30-Aug-2018

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Spring with WSDLS/java2wsdl - University of …kena/classes/7818/f08/lectures/... · Spring with WSDLS/java2wsdl “He is like superman against logic bullets!”-A grumpy guy in the

Spring with WSDLS/java2wsdl

“He is like superman against logic bullets!”-A grumpy guy in the hallway in reference to one of the stakeholders

Page 2: Spring with WSDLS/java2wsdl - University of …kena/classes/7818/f08/lectures/... · Spring with WSDLS/java2wsdl “He is like superman against logic bullets!”-A grumpy guy in the

What is Spring and why use it?

● Lightweight container framework● Inversion of Control● Aspect-orientated● Manages life cycle

Page 3: Spring with WSDLS/java2wsdl - University of …kena/classes/7818/f08/lectures/... · Spring with WSDLS/java2wsdl “He is like superman against logic bullets!”-A grumpy guy in the

Why do I care? The good!

● Good software engineering practices for modern service orientated architectures.

● Easy to integrate web-services into framework.– JMS/RMI/HTTP– Integrates easily with middleware such as web-

methods– Easy integration with WSDL's

● (You don't)

Page 4: Spring with WSDLS/java2wsdl - University of …kena/classes/7818/f08/lectures/... · Spring with WSDLS/java2wsdl “He is like superman against logic bullets!”-A grumpy guy in the

Example WSDL (taken from http://mirror.facebook.com/mozdev.org/spengler/BabelFishService.wsdl.xml)

Identify All Operations

Inputs

Outputs

Page 5: Spring with WSDLS/java2wsdl - University of …kena/classes/7818/f08/lectures/... · Spring with WSDLS/java2wsdl “He is like superman against logic bullets!”-A grumpy guy in the

Create an Interface for the WSDL

● Forces good design practices

Page 6: Spring with WSDLS/java2wsdl - University of …kena/classes/7818/f08/lectures/... · Spring with WSDLS/java2wsdl “He is like superman against logic bullets!”-A grumpy guy in the

Setting up the service in Spring

Page 7: Spring with WSDLS/java2wsdl - University of …kena/classes/7818/f08/lectures/... · Spring with WSDLS/java2wsdl “He is like superman against logic bullets!”-A grumpy guy in the

Using it!

● So easy, an HR Manager could do use it! (doubtful)

Page 8: Spring with WSDLS/java2wsdl - University of …kena/classes/7818/f08/lectures/... · Spring with WSDLS/java2wsdl “He is like superman against logic bullets!”-A grumpy guy in the

Using WSDL's without Spring

Page 9: Spring with WSDLS/java2wsdl - University of …kena/classes/7818/f08/lectures/... · Spring with WSDLS/java2wsdl “He is like superman against logic bullets!”-A grumpy guy in the

The propaganda, the bad!

● Speed– We could be doing binary transmissions.

● But no one cares because application runtime is relatively large.

● Extra time configuring spring.● Others you guys think?

Page 10: Spring with WSDLS/java2wsdl - University of …kena/classes/7818/f08/lectures/... · Spring with WSDLS/java2wsdl “He is like superman against logic bullets!”-A grumpy guy in the

Quick overview of Java2Wsdl

● Define an interface (like BabelFishIF)● Create the WSDL with Java2Wsdl●

● http://ws.apache.org/axis/java/reference.html#Java2WSDLReference●

● Create bindings:–