You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by su...@apache.org on 2003/10/25 12:23:30 UTC

cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws WSDL2Ws.java

susantha    2003/10/25 03:23:30

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws WSDL2Ws.java
  Log:
  corrected command line usage instructions and default options
  
  Revision  Changes    Path
  1.6       +8 -5      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java
  
  Index: WSDL2Ws.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- WSDL2Ws.java	14 Oct 2003 11:18:52 -0000	1.5
  +++ WSDL2Ws.java	25 Oct 2003 10:23:30 -0000	1.6
  @@ -346,6 +346,10 @@
           String targetEngine)
           throws WrapperFault {
   
  +		if (targetLanguage == null) targetLanguage = "c++";
  +		if (targetEngine == null) targetEngine = "server";
  +		if (targetoutputLocation == null) targetoutputLocation = "./";
  +		
           ArrayList methods = this.getServiceInfo(this.porttype, targetLanguage);
           TypeMap typeMap = this.getTypeInfo(targetLanguage);
           //TODO	chaeck weather the name at the WrapperConstant Doclit is right "doc"
  @@ -502,14 +506,13 @@
           if (data.getArgumentCount() != 1)
               System.out.println(
                   "java WSDL2ws <wsdlfile> -<optionChar><value>\n"
  -                    + "-o target output folder\n"
  -                    + "-l target language(c|java|c++) default is java\n"
  -                    + "-i implementation style (struct|order|simple) default is struct--- (usergetvalue() with PP or use getTag() ect ....)\n"
  -                    + "-s (client|server|both)  default is server\n");
  +                    + "-o target output folder - default is current folder\n"
  +                    + "-l target language(c|c++) - default is c++\n"
  +                    + "-s (client|server) - default is server\n");
           else {
               WSDL2Ws gen = new WSDL2Ws(data);
               gen.genarateWrappers(
  -                args[2],
  +                null,
                   data.getOptionBykey("o"),
                   data.getOptionBykey("l"),
                   data.getOptionBykey("i"),