80 likes | 170 Views
Doc/lit implementation experiences Network Measurements Working Group. GGF12, Brussels, September 2004. Loukik Kudarimoti. Paul Mealor. Contents. Aims Setting up Ant and Tomcat Roadmap. Aims. Document-literal transport Examine limitations & advantages
E N D
Doc/lit implementation experiencesNetwork Measurements Working Group GGF12, Brussels, September 2004 Loukik Kudarimoti Paul Mealor Loukik Kudarimoti (Dante) Paul Mealor (University College London)
Contents • Aims • Setting up Ant and Tomcat • Roadmap Loukik Kudarimoti (Dante) Paul Mealor (University College London)
Aims • Document-literal transport • Examine limitations & advantages • Gain some experience for the group wrt implementation • Validation • At source and destination Loukik Kudarimoti (Dante) Paul Mealor (University College London)
Setting up Axis, Tomcat • Write service class • Method must have the following signature w3c.dom.Document foo(w3c.dom.Document) • Receives and returns the SOAP body contents • Write WSDD • Specify message style • Optionally specify WSDL (though we didn’t) • Write a small client • Go • No stubs or beans in sight. All done with DOM trees. Loukik Kudarimoti (Dante) Paul Mealor (University College London)
Validation • Using the Java SAX implementation • The DOM implementation can also validate • Requires W3C XML Schemas • Convert using Trang • Requires a single file • Combined RNC files into one to start with • Then converted to WXS • Function takes a DOM document • Service takes that, converts it to a bytestream, then SAX parses and validates it! Loukik Kudarimoti (Dante) Paul Mealor (University College London)
Roadmap • Server document/literal • Client document/literal • Client generates valid NWMG request • Server validates the request • Server understands and processes or understands but rejects the request • Client validates the response • Client accepts the response or understands the error/exception • Server and client work with the desired WSDL • i.e. with appropriate typing: NMWG:Request instead of xsd:anyType • Server does something useful with the request • Client does something useful with the response • Extra messages other than request and response Loukik Kudarimoti (Dante) Paul Mealor (University College London)
DEMO Loukik Kudarimoti (Dante) Paul Mealor (University College London)
The End Questions m.j.leese@dl.ac.ukpdm@hep.ucl.ac.uk ? ? ? ? ? Loukik Kudarimoti (Dante) Paul Mealor (University College London)