9/06/2005
Web Services
At work I have been trying to learn web services. On my machine I have installed: the Java sdk, J2EE, Eclipse, MySQL, SQL Explorer extension for Eclipse, J/Connector, Tomcat, Java WSDP, WTP, Axis, Apache web server and some other stuff that were required to run some Eclipse plugins. Yuck, yuck, yuck. Here are some notes that I have made.
Web Services with Java (JAX pack)
JAXP: SAX API, DOM, XSLT (read and write XML documents)
- mechanism for plugging in various providers supporting DOM, SAX and XSLT
- mechanism to specify which provider to use
- obtain instance of interface stub
- set endpoint property of stub to the service endpoint of the web service
- call method
- Asynchronous: client must wait for a reply before continuing
- Asynchronous, with acknowledgement (ack)
- Synchronous: reply isn't required
- Synchronous with ack
- Fire and forget
- import required packages
- implement AsynchListener or SyncListener
- implement on Message method
- obtain SOAP message
- obtain SOAP envelop/attachment and to do stuff with them
- return SOAP message
- create a connection
- obtain a message from a message factory
- populate the message
- send message
- White Pages: directory of names
- Yellow Pages: directory by category/service
- Green Pages: categorized by service type or specification (DOM, SAX)
- create a connection
- obtain a handle to a Registry Service
- obtain query manager from Registry Service
- use query manager to perform queries
- change directory to the folder where ant.jar is located
- add the path where ant.jar is located to environment variables (ANT_HOME)
- type ant change-database -Ddatabase=mysql -s PATH
- PATH isn't the full path, just the path from the directory in which WSDP is installed (jwsdp-1.6)