You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2005/02/17 08:33:50 UTC
cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws SourceWriterFactory.java WebServiceGeneratorImpl.java
samisa 2005/02/16 23:33:50
Modified: c/src/wsdl/org/apache/axis/wsdl/wsdl2ws
SourceWriterFactory.java
WebServiceGeneratorImpl.java
Log:
Added back the Exception generation logic for RPC style WSDL files.
Without this, the genererated code for RPC style was not compiling.
This is a hack to fix AXISCPP-449.
Revision Changes Path
1.16 +2 -0 ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/SourceWriterFactory.java
Index: SourceWriterFactory.java
===================================================================
RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/SourceWriterFactory.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- SourceWriterFactory.java 15 Feb 2005 10:54:55 -0000 1.15
+++ SourceWriterFactory.java 17 Feb 2005 07:33:50 -0000 1.16
@@ -56,6 +56,8 @@
return new org.apache.axis.wsdl.wsdl2ws.cpp.ClientStubHeaderWriter(wscontext);
case WrapperConstants.GENERATOR_CLIENT_STUB_CPP :
return new org.apache.axis.wsdl.wsdl2ws.cpp.ClientStubWriter(wscontext);
+ case WrapperConstants.GENERATOR_CLIENT_EXCEPTION :
+ return new org.apache.axis.wsdl.wsdl2ws.cpp.AllExceptionWriter(wscontext, "Client");
case WrapperConstants.GENERATOR_SERVER_EXCEPTION :
return new org.apache.axis.wsdl.wsdl2ws.cpp.AllExceptionWriter(wscontext, "Server");
//C
1.5 +5 -0 ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WebServiceGeneratorImpl.java
Index: WebServiceGeneratorImpl.java
===================================================================
RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WebServiceGeneratorImpl.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- WebServiceGeneratorImpl.java 15 Feb 2005 10:54:55 -0000 1.4
+++ WebServiceGeneratorImpl.java 17 Feb 2005 07:33:50 -0000 1.5
@@ -92,6 +92,11 @@
(new Generator(WrapperConstants.GENERATOR_CLIENT_STUB_HPP,
wscontext))
.generate();
+ if ("rpc".equals(wscontext.getWrapInfo().getWrapperStyle()))
+ (new Generator(WrapperConstants.GENERATOR_CLIENT_EXCEPTION,
+ wscontext))
+ .generate();
+
}
// Generate objects common to Client and Server
(new Generator(WrapperConstants.GENERATOR_PARAM_CPP_ALL,