home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wsgatsam.zip / checkout.bat < prev    next >
DOS Batch File  |  2003-02-24  |  1KB  |  32 lines

  1. @title Testing LFT Channel - IBM WebServices Gateway
  2.  
  3. @cls
  4. @rem parameters are 1= Test mode (wsif, wsgw or java)
  5. @rem                2= WebServices Gateway directory
  6. @rem                3= xerces.jar (typically C:\WebSphere\AppServer\lib\xerces.jar)
  7.  
  8. @if .%1==. goto invalidparams
  9. @if .%2==. goto invalidparams
  10. @if .%3==. goto invalidparams
  11.  
  12. @rem Check parameter 2 is a valid directory.
  13. @if EXIST %2 goto goodparam1
  14. @echo The directory %2 specified for Gateway directory does not exist.
  15. @goto invalidparams
  16.  
  17. @rem Check parameter 3 points to the right place.
  18. :goodparam1
  19. @if EXIST %3 goto goodparams
  20. @echo The file %3 does not exist.
  21. @goto invalidparams
  22.  
  23. :goodparams
  24. @java -Djava.protocol.handler.pkgs=com.ibm.axis.transport -Dlft-directory=%2\clientTemp -Dlft-piFactory=com.ibm.httpr.file.FileStateManagerFactory -Dhttpr.channelStyle=process -classpath %2\lib\wsgw-samples.jar;%2\lib\wsif.jar;%2\lib\qname.jar;%2\lib\wsgwwsiflft.jar;%2\lib\wsgwwsdllft.jar;%3;%2\lib\axis.jar;%2\lib\clutil.jar;%2\lib\wsdl4j.jar;%2\lib\httpr.jar;%2\lib\activation.jar;%2\lib\jaxrpc.jar;%2\lib\saaj.jar;%2\lib\commons-logging.jar services.lftfileservice.CheckOut %1 %2
  25. @goto :eof
  26.  
  27. :invalidparams
  28. @echo This command file requires 3 parameters
  29. @echo Parameters are 1= Test mode (wsif, wsgw or java)
  30. @echo                2= WebServices Gateway directory
  31. @echo                3= xerces.jar (typically C:\WebSphere\AppServer\lib\xerces.jar)
  32.