axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From muthu...@apache.org
Subject cvs commit: ws-axis/contrib/axismora/src/org/apache/axismora/wsdl2ws/java/client StubWriter.java
Date Fri, 02 Jan 2004 08:32:15 GMT
muthulee    2004/01/02 00:32:15

  Modified:    contrib/axismora/src/org/apache/axismora/wsdl2ws
                        WrapperConstants.java WSDL2Ws.java
                        SourceWriterFactory.java
               contrib/axismora/src/org/apache/axismora/wsdl2ws/java/client
                        StubWriter.java
  Log:
  
  
  Revision  Changes    Path
  1.3       +2 -1      ws-axis/contrib/axismora/src/org/apache/axismora/wsdl2ws/WrapperConstants.java
  
  Index: WrapperConstants.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/axismora/src/org/apache/axismora/wsdl2ws/WrapperConstants.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- WrapperConstants.java	21 Nov 2003 05:41:58 -0000	1.2
  +++ WrapperConstants.java	2 Jan 2004 08:32:15 -0000	1.3
  @@ -123,7 +123,8 @@
   
   	public static final int GENERATOR_DOCLIT_WRAPPER_JAVA = 35;
   	public static final int GENERATOR_DOCLIT_SERVICE_JAVA = 36;
  -
  +	public static final int GENERATOR_DOCLIT_PARAM_JAVA = 37;
  +	public static final int GENERATOR_DOCLIT_STUB_JAVA = 38;
       //implementation type
       public static final String IMPL_STYLE_STRUCT = "struct";
       public static final String IMPL_STYLE_VALUEORDER = "order";
  
  
  
  1.6       +1 -1      ws-axis/contrib/axismora/src/org/apache/axismora/wsdl2ws/WSDL2Ws.java
  
  Index: WSDL2Ws.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/axismora/src/org/apache/axismora/wsdl2ws/WSDL2Ws.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- WSDL2Ws.java	15 Dec 2003 03:22:24 -0000	1.5
  +++ WSDL2Ws.java	2 Jan 2004 08:32:15 -0000	1.6
  @@ -290,7 +290,7 @@
           throws WrapperFault {
           	
   		this.language = targetLanguage;
  -		if (targetLanguage == null) targetLanguage = "c++";
  +		if (targetLanguage == null) targetLanguage = "java";
   		if (targetEngine == null) targetEngine = "server";
   		if (targetoutputLocation == null) targetoutputLocation = "./";
   		
  
  
  
  1.3       +6 -0      ws-axis/contrib/axismora/src/org/apache/axismora/wsdl2ws/SourceWriterFactory.java
  
  Index: SourceWriterFactory.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/axismora/src/org/apache/axismora/wsdl2ws/SourceWriterFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SourceWriterFactory.java	21 Nov 2003 05:41:36 -0000	1.2
  +++ SourceWriterFactory.java	2 Jan 2004 08:32:15 -0000	1.3
  @@ -58,7 +58,9 @@
   import org.apache.axismora.wsdl2ws.cpp.ClassLoader;
   import org.apache.axismora.wsdl2ws.cpp.ServiceHeaderWriter;
   import org.apache.axismora.wsdl2ws.cpp.WrapHeaderWriter;
  +import org.apache.axismora.wsdl2ws.doclit.AllDocLitParamWriter;
   import org.apache.axismora.wsdl2ws.doclit.DocLitServiceWriter;
  +import org.apache.axismora.wsdl2ws.doclit.DocLitStubWriter;
   import org.apache.axismora.wsdl2ws.doclit.DocLitWrapWriter;
   import org.apache.axismora.wsdl2ws.info.WebServiceContext;
   import org.apache.axismora.wsdl2ws.java.AllParamWriter;
  @@ -100,6 +102,10 @@
               return new DocLitServiceWriter(wscontext);
   		else if(genaratorType == WrapperConstants.GENERATOR_DOCLIT_WRAPPER_JAVA)
   			return new DocLitWrapWriter(wscontext);     
  +		else if(genaratorType == WrapperConstants.GENERATOR_DOCLIT_PARAM_JAVA)
  +				return new AllDocLitParamWriter(wscontext);
  +		else if(genaratorType == WrapperConstants.GENERATOR_DOCLIT_STUB_JAVA)
  +			return new DocLitStubWriter(wscontext); 
           
           //C++	
           else if (genaratorType == WrapperConstants.GENERATOR_PARAM_CPP_ALL)
  
  
  
  1.4       +5 -5      ws-axis/contrib/axismora/src/org/apache/axismora/wsdl2ws/java/client/StubWriter.java
  
  Index: StubWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/axismora/src/org/apache/axismora/wsdl2ws/java/client/StubWriter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StubWriter.java	15 Dec 2003 03:22:24 -0000	1.3
  +++ StubWriter.java	2 Jan 2004 08:32:15 -0000	1.4
  @@ -128,11 +128,7 @@
               writer.write("\n\tpublic " + classname + "(java.lang.String enduri){");
               writer.write("\n\t\ttry{\n");
               writer.write("\t\t\tthis.enduri = enduri;\n");
  -            writer.write(
  -                "\t\t\tthis.SOAPAction = new javax.xml.namespace.QName(\""
  -                    + wscontext.getSerInfo().getServicename()
  -                    + "\");\n");
  -            writer.write(
  +             writer.write(
                   "\t\t\tthis.service = new org.apache.axismora.client.Service();");
               writer.write("\n\t\t}catch(Exception e){");
               writer.write("\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n");
  @@ -193,6 +189,10 @@
                           + minfo.getMethodname()
                           + "\");");
                   String ops = "";
  +				writer.write(
  +								"\t\t\tthis.SOAPAction = new javax.xml.namespace.QName(\""
  +									+ wscontext.getSerInfo().getServicename()
  +									+ "\");\n");
                   writer.write(
                       "\n\t\torg.apache.axismora.client.Call call = (org.apache.axismora.client.Call)service.createCall();");
                   writer.write("\n\t\tcall.setOperationName(methodName);");
  
  
  

Mime
View raw message