xml usage in my work, 2015

Post on 19-Jul-2015

44 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

XML in work

Joni Kettunen

Digia

2

meaning

● One of the skill developer needs to know. Others could be HTML, SQL, programming languages

● Is used widely across the field● Importance of the xml depends on your

career choise. Compare it to the language studies.

3

examples

● Electricity meter, WebServices● Data transfer between library system and

web front end.● Alert location (Datex)● UI: WPF, Silverlight● Tools

4

Electricity meter

● IP, grid or GSM● Commands defined

in the meter type specific interface documentation

● Tariffs and data

5

Delivery of a SOAP message

meterMeter

readingsoftware

Message trafficS

OA

P

SO

AP

meterMeter

readingsoftware

Msg traffic

SO

AP

SO

AP

Msg

traf

fic

SOAPMessage

Tracer

6

SOAP message

7

Implementing SOAP interface

● TCP/IP monitor : SOAP Message Tracer● Implementing driver for the interface using

mock data.● Test driven development and unit tests

(TDD)

8

Data transfer between library systems

● Ugly xml-data● What should you see?

<Catalogue> <CatalogueId>12345678</CatalogueId> <CatalogueAuthor>J. K. Rowling</Cat... <CatalogueItem> <CatalogueItemBorrower>11223344</C... <CatalogueItemMaterialType>Book</C... </CatalogueItem>...

9

Good xml message

● Compact size might be hard to read● Usin variables, strings or boolean flags

<Email>true</EMail> <SMS>false<SMS><Delivery>1,0,1<Delivery><Delivery>5</Delivery> <= Bittisum

● Number of tags, length of a tag and hierarchy

● File size vs. Readability, standards

10

XML Spy

● Good tool for average user● 400-800 USD● Others: Notepad+, ConText, Emacs, etc.

11

WPF

● Vector based, easy to scale up/down● Element anchoring and placing is

challenging● Restricted framework compared to Forms

12

WPF UI example

13

Silverlight, WPF

● Library management system, Aurora and areena.yle.fi

● Windows Phone apps● Finnish transport agency Häti● Finnish transport agency TLOIK

14

XAML tools

● VS and Blend● Coding vs. Storyboard● Additional components (AddIn = Plugin)● 500 – 4 250 USD

– Community, OnLine, Express (free)

– Professional

– Premium

– Ultimate

15

VS IDE

16

Demo

17

Demo<Label Name="OneIfResult" Content="0" Grid.Row="2" Grid.Column="1" HorizontalContentAlignment="Right"/><Label Content="StringBuilder" Grid.Row="4" Grid.Column="0"/><Label Name="StringBuilderResult" Content="0" Grid.Row="4" Grid.Column="1" HorizontalContentAlignment="Right"/>

<Button Name="StringBuilderOnly" Grid.Column="1" Grid.Row="6" Content="StringBuilder only" Click="StringBuilderOnly_Click"/><Button Name="StartAllButton" Grid.Column="2" Grid.Row="6" Content="Start all" Click="StartAllButton_Click"/>

18

Blend

● UI design● Component customization

19

Conclusion

● Understangin is more important than the technical term: HTML, HTML5, XML, XAML, SOAP, WebService

● Choosing right tools● Meaning the xml depends on your role

– specialist, project manager or (tech) leader

● Theory or practice

20

Questions?

… before job ad

21

Finally. Job ad.

For work usually required ”2 years work experience” but right attitude and passion for

your field compensates much.

Creating any web pages, phone app, or any programming activity counts as experience.

There are programs for ethustiast without experience for example Digia Career Compass

top related