FYP Final Report v1.0.0
Copyright and All Rights Reserved To: Pee-Lo Team @2003/04
52
Snippet 14: Sample Codes to Consume Data Sent by Pee-LoWS XML Web Services
From Snippet 14, the developer begins by declaring an object class will be used to contain data
and be sent to the servicing XML web services. The foundation to build this class is declared in
the WSDL contract. This code is shown in line 43. Line 44 will initialize a service object to
accommodate all the Pee-LoWS XML web services functions.
Line 46 to 55 is all the codes that the developer needs to code in order to bind the data stored sent
by the servicing XML web services. When compiled (and assuming no logic or syntax errors) the
whole application is done and ready to work.
Snippet 14 is about how the application consumes the Pee-LoWS XML Web Services. Snippet 15
focus on how Pee-LoWA sends information to Pee-LoWS.
Snippet 15: Sample Codes to Send Data to Pee-LoWS XML Web Services
The codes that we are focusing on in Snippet 15 will be between Line 59 to 67. Codes in Line 43
and 44 is as explained previously; are used to initialize the objects to interact with Pee-LoWS. Line