Spring with WSDLS/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · 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

Transcript of Spring with WSDLS/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with...

Page 1: Spring with WSDLS/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with WSDLS/java2wsdl ... – JMS/RMI/HTTP ... Extra time configuring spring.

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/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with WSDLS/java2wsdl ... – JMS/RMI/HTTP ... Extra time configuring spring.

What is Spring and why use it?

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

Page 3: Spring with WSDLS/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with WSDLS/java2wsdl ... – JMS/RMI/HTTP ... Extra time configuring spring.

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/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with WSDLS/java2wsdl ... – JMS/RMI/HTTP ... Extra time configuring spring.

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

Identify All Operations

Inputs

Outputs

Page 5: Spring with WSDLS/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with WSDLS/java2wsdl ... – JMS/RMI/HTTP ... Extra time configuring spring.

Create an Interface for the WSDL

● Forces good design practices

Page 6: Spring with WSDLS/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with WSDLS/java2wsdl ... – JMS/RMI/HTTP ... Extra time configuring spring.

Setting up the service in Spring

Page 7: Spring with WSDLS/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with WSDLS/java2wsdl ... – JMS/RMI/HTTP ... Extra time configuring spring.

Using it!

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

Page 8: Spring with WSDLS/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with WSDLS/java2wsdl ... – JMS/RMI/HTTP ... Extra time configuring spring.

Using WSDL's without Spring

Page 9: Spring with WSDLS/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with WSDLS/java2wsdl ... – JMS/RMI/HTTP ... Extra time configuring spring.

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/java2wsdlkena/classes/7818/f08/lectures/lecture_3... · Spring with WSDLS/java2wsdl ... – JMS/RMI/HTTP ... Extra time configuring spring.

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:–