Cieľom cvičenia je oboznámiť sa s WSDL, generovaním SOAP webových služieb a vytvorením jednoduchého endpointu, ktorý bude vracať zoznam kníh v databáze.
Cieľom cvičenia je prepojiť Spring a vygenerované SOAP endpointy z predchádzajúceho cvičenia.
1 2 3 4 |
public interface BookService { List<Book> findAll(); void save(Book book); } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <listResponse xmlns="books"> <book isbn="978-0-007-48830-8"> <name>The Lord of the Rings: The Fellowship of the Ring</name> <type>kniha</type> <price>10.0</price> <authors> <name>John</name> <middle_name>Ronald Reuel</middle_name> <surname>Tolkien</surname> <birth_date>1892-01-03</birth_date> </authors> </book> </listResponse> </S:Body> </S:Envelope> |
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.