source: TI01-discovery/trunk/ws-Discovery2/readme.txt @ 2995

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI01-discovery/trunk/ws-Discovery2/readme.txt@3862
Revision 2995, 1.6 KB checked in by mpritcha, 12 years ago (diff)

Updated build instructions to reflect addition of client. Minor typo in client instructions.

Line 
1ws-Discovery
2------------
3
4Server Side:
5Instructions for building & deploying Axis2 web service archive (DiscoveryService.aar)
6
71. Run WSDL2Java to generate skeleton code and XMLBeans for data binding
8(In srcgen directory)
9%AXIS2_HOME%\bin\wsdl2java -ss -sd -d xmlbeans -uri ..\wsdl\Discovery.wsdl -o . -p ndg.services.discovery
10
112. Build server side code (DiscoveryService.aar)
12(In srcgen directory)
13ant -buildfile buildDiscovery.xml jar.server
14(output in build/lib)
15
163. Optionally build javadoc documentation
17ant -buildfile buildDiscovery.xml javadoc
18
194. Deploy the service
20 - Copy DiscoveryService.aar to <tomcat>/webapps/axis/WEB-INF/services
21 - Reload axis2 context within tomcat manager app, or restart tomcat
22
23
24Client Side:
25Instructions for building client (DiscoveryService.aar)
26
27Do all the following in directory "srcgen"
28
291) Generate automatic code from wsdl :
30%AXIS2_HOME%\bin\wsdl2java -d xmlbeans -uri ..\wsdl\Discovery.wsdl -o . -p ndg.clients.discovery
31
32Edit file src\ndg\clients\discovery\DiscoveryServiceStub.java, after the line (around #104?)
33        _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,_service);
34add the line
35        _serviceClient.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, false);
36
372) Use ant to compile client jar using custom buildfile
38ant -buildfile buildDiscovery.xml jar.client
39
403) Use ant to run client
41ant -buildfile buildClient.xml run.client
42
43Code to edit for testing is in ..\src\ndg\services\discovery\MyDiscoveryServiceClient.java
44
45Tested with Sun Java SDK 1.5.08 (problems with 1.6.03)
Note: See TracBrowser for help on using the repository browser.