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 sa...@apache.org on 2005/08/17 10:36:43 UTC
cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp WrapWriter.java
samisa 2005/08/17 01:36:43
Modified: c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp WrapWriter.java
Log:
Added logic into the wrapper to take the SOAP request tag name when picking the method to invoke
Revision Changes Path
1.47 +2 -4 ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapWriter.java
Index: WrapWriter.java
===================================================================
RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/WrapWriter.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- WrapWriter.java 6 Jul 2005 10:33:52 -0000 1.46
+++ WrapWriter.java 17 Aug 2005 08:36:43 -0000 1.47
@@ -200,7 +200,7 @@
MethodInfo minfo = (MethodInfo) methods.get(0);
//if conditions (if parts)
writer.write(
- "\tif (0 == strcmp(method, \"" + minfo.getMethodname() + "\"))\n");
+ "\tif( (0 == strcmp(method, \"" + minfo.getInputMessage().getLocalPart() + "\")) || (0 == strcmp(method, \"" + minfo.getMethodname() + "\")) )\n");
writer.write("\t\treturn " + minfo.getMethodname() + "(mc);\n");
//(else if parts)
if (methods.size() > 1)
@@ -209,9 +209,7 @@
{
minfo = (MethodInfo) methods.get(i);
writer.write(
- "\telse if (0 == strcmp(method, \""
- + minfo.getMethodname()
- + "\"))\n");
+ "\telse if ( (0 == strcmp(method, \"" + minfo.getInputMessage().getLocalPart() + "\")) || (0 == strcmp(method, \"" + minfo.getMethodname() + "\")) )\n");
writer.write("\t\treturn " + minfo.getMethodname() + "(mc);\n");
}
}