mozdev.org

mozsoapapp

resources:
What's New
  • News item goes here
  • More news item goes here
  • mozdev.org
Other Stuff
  • stuff goes here
  • more stuff goes here

Technical Details (some of them)

The whole framework is divided into 3 main parts.

1. The Layout Engine

The Layout Engine is the first part which gets invoked when the client access the mozsoapapp application.
If there is no session associated with the new connection then it will provide the client a nice login window and some basic javascripts so that the client can do the first SOAP Calls (for login).
If the username/password pair is correct then the client will get a sessionid and an url to load the first layout.
The Layout Engine will only get invoked when the client request's (per SOAP Call) a new Layout - it will check if the client has the necessary rights to get this layout - then it will build the layout (with xslt transformation) - and serves it to the client.
A complete Layout consists of a maintemplate, mainsubtemplate and the subtemplates
The maintemplate provides all operations which are normally used for every layout (i hope so)
The mainsubtemplate refers to the main dataset (eg. customer) which is responsible for the whole layout
The subtemplates are embeded into the mainsubtemplates and are responsible for the user visible data (eg. customer address, bankaccount, aso)

2. The SOAP Server

The SOAP Server is implemented in php with the use of PEAR::SOAP.
It's the part of the whole application which have the hardest work to do. It is processing the incoming SOAP Calls and then it try's (at time you can really call it try because it also sometimes fails ;-) ) to answer them correctly.
The SOAP Implementation is divided into 5 namespaces:

3. The Client Javascripts
The Client Javascripts are they link between mozilla and the soap server. They are doing the SOAP Calls - getting the respones and then (if there is any data) adding the data to the (hopefully) right fields.

For questions or comments about mozsoapapp, please send a message to the mozsoapapp mailing list.
Copyright © 2000-2008. All rights reserved. Terms of Use & Privacy Policy.