Changeset 2993 for TI01-discovery/trunk


Ignore:
Timestamp:
06/11/07 15:35:23 (12 years ago)
Author:
mpritcha
Message:

Updated build instructions to reflect addition of client.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/ws-Discovery2/readme.txt

    r1548 r2993  
    22------------ 
    33 
    4 Instructions for build 
     4Server Side: 
     5Instructions for building & deploying Axis2 web service archive (DiscoveryService.aar) 
    56 
    671. Run WSDL2Java to generate skeleton code and XMLBeans for data binding 
     
    1920 - Copy DiscoveryService.aar to <tomcat>/webapps/axis/WEB-INF/services 
    2021 - 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 buildClient.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 TracChangeset for help on using the changeset viewer.