Jurica Križanić 04.06.2013. Tuhelj Mocking external web services in own development environment
Jurica Križanić
04.06.2013.Tuhelj
Mocking external web services in own development environment
Asseco Group in Europe
1
Asseco SEE Croatia
• Member of Asseco South Eastern Europe group
• Major IT Service & Software player on Croatian market
• Employing more than 170 people
• Developing local expertise & management with international exposure
• Long term commitment to the country
Asseco SEE MASS BU competences
MASS BU is specialized in the development, integration and implementation of highly customized mobile and security turn-key solutions for the financial industry.
� In IT market since 1993
� 60 people dedicated to
development and support
� Focus on own IT
solutions
• Java phones
• iPhone/iPad/iPod
• Android OS
• Windows Mobile OS
• hardware tokens
• EMV CAP
• mobile token
• SMS
• display cards
Strong Authentication
Solutions
Mobile Banking Solutions
PKI SmartCard Digital
Signature & Encryption Solutions
E-commerce 3D Secure Solutions
About speaker
� Java developer at Asseco SEE
� Client side, server side programming
Contact
� jurica.krizanic(at)asseco-see.hr
� jkrizanic(at)gmail.com
� @jkrizanic
6
Agenda
• Systems out of your control• What do you know about such a system?• Why mocking of external services?• How to mock and what to mock?• Demo• We can talk (if schedule allows)
7
Systems out of your control
• Runs in owner’s environment• Security constraints• Accesss to environment
• from your environment
• on-site
8
• What can you get from the owner?
• Web service (SOAP or REST)!
• It is contract first web service
• 1 page document with description☺
• Give me the contract
What do you know about such a system?
9
Why mocking ?
• Simulate real environment – development phase• Easier on-site integration• Avoid „on-site development”• WSDL change – respond to changes quickly
• Other reasons:
• Test in isolation (mock dependencies)
• Easy making proof of concept
10
How to mock and what to mock?
• What? Contract first web-services• How?
• SoapUI• Jetty inside of SoapUI
• Mock deployed as WAR
• Apache CXF• wsdl2java
11
Demo
Thank you!
Q&A
Take the code sample from github.com/jkrizanic