Hi Marco!Great to hear that you are really developing on the WSDL cartridge. I will take a look when having some time to give detailled feedback.
Testing of generator output is done using a reference model and generate code from it. Synactical checking is easy - your XML has to conform to WSDL Schema. So you could write a unit test that reads your WSDL file using JAXP, turn validation on and if it can be read it is syntacically correct. Semantic checking will be that you implement the interface described in your reference model, call each method using some SOAP framework and evaluate the result. Then you can be sure that each method has the correct declaration. Testing the generator itself is just comparing once generated output from the reference model to the actual generated output. They both must be equal. Assumption is here that you know that your output is once correct. This assumption is true since you will derive templates from an example from which you know that it is valid and develop te generator until you verified manually (using diff tools of course) that the output is as expected. Once this state is reached you can go forward.
Hope this helps, ~Karsten Am 14.10.2007 um 21:14 schrieb Marco Paga:
http://code.google.com/p/oaw-wsdl-cartridge/
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Fornax-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fornax-developer
