Please disable Adblockers and enable JavaScript for domain CEWebS.cs.univie.ac.at! We have NO ADS, but they may interfere with some of our course material.
[Info]
Assignment 5
Assignment 5a - SOAP
For 10 of your 20 xpath queries from assignment 3c - create a SOAP service that implements a function for each of the XPATH queries:
Further rules:
- At least 4 soap operations have to implement arrays as input parameter.
- At least 4 soap operations have to implement integers or floats as input parameter.
- At least 4 soap operations have to implement strings as input parameter.
- At least 2 soap operations have to implement dates (e.g. from, to) as input parameter.
- At least 3 soap operations have to implement complex data structures as input parameter which support at least.
- an array of strings, integers, floats or dates.
- an hash of strings, integers, floats or dates.
- an array of objects with at least 2 elements of either type string, integer, float or date.
- At least 4 soap operations have to return JSON.
- At least 4 soap operations have to return XML.
NY: Mapping of rules to function included into implementation.pdf would be helpful.
Also the concrete name of the function should be included in the description
Submission
- 1 file doc.pdf which contains the (unmodified) data model picture.
- 1 file code.pdf which contains each query, for each query the 20 first lines of the result as a table, and for each query an extract of the XML result not longer than 1 page.
- 1 file code.zip which 5 files resultX.xml, and 5 files resultX.rng. X is number from 1 to 5 (or higher if you have more than 5 queries).
- 1 file queries.zip with 20 files queryXx.xml that contain the XPath queries, and 20 files resultXx.txt that describe what you query is supposed to do.
- 1 file implementation.zip with the SOAP implementation of your service.
- 1 file implementation.pdf which contains in the first line: the address of the WSDL which in turn points to the fully functional service. Furthermore, for each function, document its purpose an give an excerpt (no more than 10 lines) of the data it returns.
Hints
- If the filenames are not correct, you will get no points.
- If your model/db does no longer conform to the rules in assignment 2, you will get no points.
- If you violate any rules you will get no points.
Assignment 5b - REST
Answer the same questions as in 5a, but in REST. The same rules apply. BUT: you have to include larger snapshots of the data, and the operation probably translate into pretty complex resources (urls).
For example:
getSomethingFromSomething(This,That) -> Something
translates into
http://wwwlab.cs.univie.ac.at/~astudent/rest.php/a/this/b/c/?that=3
Additional Rules - Please keep in mind that:
- Services need to describe themselves: http://wwwlab.cs.univie.ac.at/~astudent/rest.php/a/ should allow me to navigate to its possible children. REST services are about exploring («https://en.wikipedia.org/wiki/HATEOAS»).
- ?parameter= is all about filtering. Without them, all children are shown, with them certain children are show. If something is a child, show it by using a resource, not a filter.
next YEAR: They have to use GET/POST/PUT/DELETE at least once
Submission
- 1 file doc.pdf which contains the (unmodified) data model picture.
- 1 file code.pdf which contains each query, for each query the 20 first lines of the result as a table, and for each query an extract of the XML result not longer than 1 page.
- 1 file code.zip which 5 files resultX.xml, and 5 files resultX.rng. X is number from 1 to 5 (or higher if you have more than 5 queries).
- 1 file queries.zip with 20 files queryXx.xml that contain the XPath queries, and 20 files resultXx.txt that describe what you query is supposed to do.
- 1 file implementation.zip with the REST implementation of your service.
- 1 file implementation.pdf which contains in the first line: the base address of the REST service. Furthermore, for each relevant resource, document its purpose an give an excerpt (no more than 10 lines) of the data it returns.
Hints
- If the filenames are not correct, you will get no points.
- If your model/db does no longer conform to the rules in assignment 2, you will get no points.
- If you violate any rules you will get no points.
Letzte Änderung: 17.07.2017, 09:51 | 700 Worte