Flashcards: Paws

What are the main differences between a web service and a web site?
A web site is designed to work with web browser clients using html, xhtml and css

A web service is designed to work with any type of client or device using xml messaging
1/17

Terms

Definitions

What are the main differences between a web service and a web site? A web site is designed to work with web browser clients using html, xhtml and css

A web service is designed to work with any type of client or device using xml messaging
What are the main advantages of using an xml schema instead of a DTD? An xml schema allows you to define both data types and namespaces which a DTD doesn't.
To show that an element is optional in a DTD you should.. follow the elements name with a question mark '?'
to show that an element is optional at a particular point in an XML schema you should include minOccurs="0" in the elements definition
To be well formed, xml documents must adhere to the syntax rules specified in the xml 1.0 recommendation. What are those rules?♦ There can be only one root element.
♦ Every start tag must have a matching closing tag.
♦ Empty elements can omit the closing tag, but, if they do so, must have a forward slash before the closing angle bracket (/>).
♦ Elements must be properly nested.
♦ Attribute values must be in quotes.
♦ In the content of an element or attribute value, < and & must be replaced by < and &, respectively.
There are three types of DTD, name them. ♦ Strict = free of all deprecated tags and framesets
♦ transitional = includes depracated tags
♦ Frameset = framesets (with or without depracated tags)
What are the two main benefits that come from using xml to create documents 1. Seperates the content from it's structure

2. Allows the use of more meaningful tag names
What is a function oriented service? A function oriented service is where an application performs a function and returns results based on the inputs supplied
What is a service request? A service request is a message sent from one application to another for data to meet the applications needs
What is a web service consumer? A web service consumer is a program which uses information provided by other applications in a network environment
What is a web service provider? A web service provider is a software agent that will undertake work on behalf of a client application
What is the difference between an xml document being valid or being well formed?Well-formed: The XML code must be syntactically correct.

Valid: If the XML file has an associated XML Schema/ DTD, the elements must appear in the defined structure and the content of the individual elements must conform to the declared data types specified in the schema.
What is the main reason security is such a difficult issue for web services? Unknown people and applications should be able to access the service, this means they need to be very open and leaves them vulnerable.
What is the role of WSDL in a web service architecture A WSDL document can be thought of as a contract between a client and a server. It
describes what the Web Service can do, where it can be found, and how to invoke it.

in effect it describes the interface to the server.
What parameter does the PHP SOAPClient command take? The URL for the location of a WSDL file for the web service
When using prefixes in XML, a namespace for the prefix must be defined. What else is true about namespaces? The namespace is defined by the xmlns attribute in the start tag of an element.

The namespace declaration has the following syntax. xmlns:prefix="URI".
Define the difference between 'de jure' and 'de facto' with regards to industry
standards.
de jure' is the official standard ratified by governing bodies whereas 'de facto' is the unofficial standard brought about by popular practice.
For example:
In an xml document the standard (de jure) says that you have to have a specific line of code at the top of the document yet what actually happens in practice (de facto) is that it is left out so as not to cause problems with browsers based on Internet Explorer.