You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Michael Xiong (JIRA)" <ax...@ws.apache.org> on 2006/06/05 07:38:29 UTC
[jira] Created: (AXISCPP-973) WSDL2WS generate wrong code: for
AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
WSDL2WS generate wrong code: for AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
------------------------------------------------------------------------------------------------------------
Key: AXISCPP-973
URL: http://issues.apache.org/jira/browse/AXISCPP-973
Project: Axis-C++
Type: Bug
Components: WSDL processing - RPC
Versions: 1.6 Beta
Environment: Platform:
Linux fedora 3.0
Axis version:
Server-side Axis C++ 1.6Beta
XML Parser Lib:
xersesc 2.6
WSDL2ws tool by using axis java 1.3
Client-side version Axis java 1.3
Http Server Version:
Apache 2.0.53
Tomcat 2.0.58
Reporter: Michael Xiong
The code in src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
has a bug for generating code for pIWSDZ->getChardataAs operation.
As my reported bug of AXISCPP-972 for axis-c engine/deserialization, getChardataAs's signature should be changed from by value to by reference.
So the corresponding of WSDL2WS should also changed to generate the correct code framework.
My solution is as the below:
The private function "void writeDeSerializeGlobalMethod()" in BeanParamWriter.java should be modified as the below:
private void writeDeSerializeGlobalMethod() throws IOException, WrapperFault
{
... ...
if (attribs.length == 0)
{
if (extensionBaseAttrib != null)
{
//<mxiong debug 2006/6/5
// writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
+ extensionBaseAttrib.getParamNameAsMember()
+ "), "
+ CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
//>mxiong debug 2006/6/5
}
... ...
}
... ...
if (extensionBaseAttrib != null
&& extensionBaseAttrib.getTypeName() != null)
{
//<mxiong debug 2006/6/5
// writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
+ extensionBaseAttrib.getParamNameAsMember()
+ "), "
+ CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
//>mxiong debug 2006/6/5
}
writer.write("\treturn pIWSDZ->getStatus();\n");
writer.write("}\n");
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Assigned: (AXISCPP-973) WSDL2WS generate wrong code: for
AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-973?page=all ]
nadir amra reassigned AXISCPP-973:
----------------------------------
Assignee: nadir amra
> WSDL2WS generate wrong code: for AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
> ------------------------------------------------------------------------------------------------------------
>
> Key: AXISCPP-973
> URL: http://issues.apache.org/jira/browse/AXISCPP-973
> Project: Axis-C++
> Issue Type: Bug
> Components: WSDL processing - RPC
> Affects Versions: 1.6 Beta
> Environment: Platform:
> Linux fedora 3.0
> Axis version:
> Server-side Axis C++ 1.6Beta
> XML Parser Lib:
> xersesc 2.6
> WSDL2ws tool by using axis java 1.3
> Client-side version Axis java 1.3
> Http Server Version:
> Apache 2.0.53
> Tomcat 2.0.58
> Reporter: Michael Xiong
> Assigned To: nadir amra
>
> The code in src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
> has a bug for generating code for pIWSDZ->getChardataAs operation.
> As my reported bug of AXISCPP-972 for axis-c engine/deserialization, getChardataAs's signature should be changed from by value to by reference.
> So the corresponding of WSDL2WS should also changed to generate the correct code framework.
> My solution is as the below:
> The private function "void writeDeSerializeGlobalMethod()" in BeanParamWriter.java should be modified as the below:
> private void writeDeSerializeGlobalMethod() throws IOException, WrapperFault
> {
> ... ...
> if (attribs.length == 0)
> {
> if (extensionBaseAttrib != null)
> {
> //<mxiong debug 2006/6/5
> // writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
> writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
> + extensionBaseAttrib.getParamNameAsMember()
> + "), "
> + CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
> //>mxiong debug 2006/6/5
> }
> ... ...
> }
> ... ...
> if (extensionBaseAttrib != null
> && extensionBaseAttrib.getTypeName() != null)
> {
> //<mxiong debug 2006/6/5
> // writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
> writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
> + extensionBaseAttrib.getParamNameAsMember()
> + "), "
> + CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
> //>mxiong debug 2006/6/5
> }
> writer.write("\treturn pIWSDZ->getStatus();\n");
> writer.write("}\n");
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Resolved: (AXISCPP-973) WSDL2WS generate wrong code: for
AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-973?page=all ]
nadir amra resolved AXISCPP-973.
--------------------------------
Resolution: Fixed
Fixed this by changing prototype from:
getChardataAs (void * pValue, XSDTYPE type)
to
getChardataAs (void ** pValue, XSDTYPE type)
and changed related code.
Please test. Will wait on closing.
> WSDL2WS generate wrong code: for AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
> ------------------------------------------------------------------------------------------------------------
>
> Key: AXISCPP-973
> URL: http://issues.apache.org/jira/browse/AXISCPP-973
> Project: Axis-C++
> Issue Type: Bug
> Components: WSDL processing - RPC
> Affects Versions: 1.6 Beta
> Environment: Platform:
> Linux fedora 3.0
> Axis version:
> Server-side Axis C++ 1.6Beta
> XML Parser Lib:
> xersesc 2.6
> WSDL2ws tool by using axis java 1.3
> Client-side version Axis java 1.3
> Http Server Version:
> Apache 2.0.53
> Tomcat 2.0.58
> Reporter: Michael Xiong
> Assigned To: nadir amra
>
> The code in src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
> has a bug for generating code for pIWSDZ->getChardataAs operation.
> As my reported bug of AXISCPP-972 for axis-c engine/deserialization, getChardataAs's signature should be changed from by value to by reference.
> So the corresponding of WSDL2WS should also changed to generate the correct code framework.
> My solution is as the below:
> The private function "void writeDeSerializeGlobalMethod()" in BeanParamWriter.java should be modified as the below:
> private void writeDeSerializeGlobalMethod() throws IOException, WrapperFault
> {
> ... ...
> if (attribs.length == 0)
> {
> if (extensionBaseAttrib != null)
> {
> //<mxiong debug 2006/6/5
> // writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
> writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
> + extensionBaseAttrib.getParamNameAsMember()
> + "), "
> + CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
> //>mxiong debug 2006/6/5
> }
> ... ...
> }
> ... ...
> if (extensionBaseAttrib != null
> && extensionBaseAttrib.getTypeName() != null)
> {
> //<mxiong debug 2006/6/5
> // writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
> writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
> + extensionBaseAttrib.getParamNameAsMember()
> + "), "
> + CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
> //>mxiong debug 2006/6/5
> }
> writer.write("\treturn pIWSDZ->getStatus();\n");
> writer.write("}\n");
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Reopened: (AXISCPP-973) WSDL2WS generate wrong code: for
AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-973?page=all ]
nadir amra reopened AXISCPP-973:
--------------------------------
> WSDL2WS generate wrong code: for AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
> ------------------------------------------------------------------------------------------------------------
>
> Key: AXISCPP-973
> URL: http://issues.apache.org/jira/browse/AXISCPP-973
> Project: Axis-C++
> Issue Type: Bug
> Components: WSDL processing - RPC
> Affects Versions: 1.6 Beta
> Environment: Platform:
> Linux fedora 3.0
> Axis version:
> Server-side Axis C++ 1.6Beta
> XML Parser Lib:
> xersesc 2.6
> WSDL2ws tool by using axis java 1.3
> Client-side version Axis java 1.3
> Http Server Version:
> Apache 2.0.53
> Tomcat 2.0.58
> Reporter: Michael Xiong
> Assigned To: nadir amra
>
> The code in src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
> has a bug for generating code for pIWSDZ->getChardataAs operation.
> As my reported bug of AXISCPP-972 for axis-c engine/deserialization, getChardataAs's signature should be changed from by value to by reference.
> So the corresponding of WSDL2WS should also changed to generate the correct code framework.
> My solution is as the below:
> The private function "void writeDeSerializeGlobalMethod()" in BeanParamWriter.java should be modified as the below:
> private void writeDeSerializeGlobalMethod() throws IOException, WrapperFault
> {
> ... ...
> if (attribs.length == 0)
> {
> if (extensionBaseAttrib != null)
> {
> //<mxiong debug 2006/6/5
> // writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
> writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
> + extensionBaseAttrib.getParamNameAsMember()
> + "), "
> + CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
> //>mxiong debug 2006/6/5
> }
> ... ...
> }
> ... ...
> if (extensionBaseAttrib != null
> && extensionBaseAttrib.getTypeName() != null)
> {
> //<mxiong debug 2006/6/5
> // writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
> writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
> + extensionBaseAttrib.getParamNameAsMember()
> + "), "
> + CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
> //>mxiong debug 2006/6/5
> }
> writer.write("\treturn pIWSDZ->getStatus();\n");
> writer.write("}\n");
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Commented: (AXISCPP-973) WSDL2WS generate wrong code: for
AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
Posted by "Michael Xiong (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-973?page=comments#action_12437989 ]
Michael Xiong commented on AXISCPP-973:
---------------------------------------
Dear all,
Environment:
Tomcat 2.0.58 should be -->
Tomcat 5.0.28
Could someboday help me to update the "Environment:" info ?
Thanks a lot !
Michael Xiong
> WSDL2WS generate wrong code: for AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
> ------------------------------------------------------------------------------------------------------------
>
> Key: AXISCPP-973
> URL: http://issues.apache.org/jira/browse/AXISCPP-973
> Project: Axis-C++
> Issue Type: Bug
> Components: WSDL processing - RPC
> Affects Versions: 1.6 Beta
> Environment: Platform:
> Linux fedora 3.0
> Axis version:
> Server-side Axis C++ 1.6Beta
> XML Parser Lib:
> xersesc 2.6
> WSDL2ws tool by using axis java 1.3
> Client-side version Axis java 1.3
> Http Server Version:
> Apache 2.0.53
> Tomcat 2.0.58
> Reporter: Michael Xiong
> Assigned To: nadir amra
>
> The code in src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
> has a bug for generating code for pIWSDZ->getChardataAs operation.
> As my reported bug of AXISCPP-972 for axis-c engine/deserialization, getChardataAs's signature should be changed from by value to by reference.
> So the corresponding of WSDL2WS should also changed to generate the correct code framework.
> My solution is as the below:
> The private function "void writeDeSerializeGlobalMethod()" in BeanParamWriter.java should be modified as the below:
> private void writeDeSerializeGlobalMethod() throws IOException, WrapperFault
> {
> ... ...
> if (attribs.length == 0)
> {
> if (extensionBaseAttrib != null)
> {
> //<mxiong debug 2006/6/5
> // writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
> writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
> + extensionBaseAttrib.getParamNameAsMember()
> + "), "
> + CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
> //>mxiong debug 2006/6/5
> }
> ... ...
> }
> ... ...
> if (extensionBaseAttrib != null
> && extensionBaseAttrib.getTypeName() != null)
> {
> //<mxiong debug 2006/6/5
> // writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
> writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
> + extensionBaseAttrib.getParamNameAsMember()
> + "), "
> + CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
> //>mxiong debug 2006/6/5
> }
> writer.write("\treturn pIWSDZ->getStatus();\n");
> writer.write("}\n");
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Closed: (AXISCPP-973) WSDL2WS generate wrong code: for
AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-973?page=all ]
nadir amra closed AXISCPP-973.
------------------------------
Resolution: Duplicate
One issue should siffice. See AXISCPP-972.
> WSDL2WS generate wrong code: for AXISCPP-972, getChardataAs((void*)&... should be getChardataAs((void* &)...
> ------------------------------------------------------------------------------------------------------------
>
> Key: AXISCPP-973
> URL: http://issues.apache.org/jira/browse/AXISCPP-973
> Project: Axis-C++
> Issue Type: Bug
> Components: WSDL processing - RPC
> Affects Versions: 1.6 Beta
> Environment: Platform:
> Linux fedora 3.0
> Axis version:
> Server-side Axis C++ 1.6Beta
> XML Parser Lib:
> xersesc 2.6
> WSDL2ws tool by using axis java 1.3
> Client-side version Axis java 1.3
> Http Server Version:
> Apache 2.0.53
> Tomcat 2.0.58
> Reporter: Michael Xiong
> Assigned To: nadir amra
>
> The code in src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
> has a bug for generating code for pIWSDZ->getChardataAs operation.
> As my reported bug of AXISCPP-972 for axis-c engine/deserialization, getChardataAs's signature should be changed from by value to by reference.
> So the corresponding of WSDL2WS should also changed to generate the correct code framework.
> My solution is as the below:
> The private function "void writeDeSerializeGlobalMethod()" in BeanParamWriter.java should be modified as the below:
> private void writeDeSerializeGlobalMethod() throws IOException, WrapperFault
> {
> ... ...
> if (attribs.length == 0)
> {
> if (extensionBaseAttrib != null)
> {
> //<mxiong debug 2006/6/5
> // writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
> writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
> + extensionBaseAttrib.getParamNameAsMember()
> + "), "
> + CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
> //>mxiong debug 2006/6/5
> }
> ... ...
> }
> ... ...
> if (extensionBaseAttrib != null
> && extensionBaseAttrib.getTypeName() != null)
> {
> //<mxiong debug 2006/6/5
> // writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
> writer.write("\tpIWSDZ->getChardataAs((void* &)(param->"
> + extensionBaseAttrib.getParamNameAsMember()
> + "), "
> + CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
> //>mxiong debug 2006/6/5
> }
> writer.write("\treturn pIWSDZ->getStatus();\n");
> writer.write("}\n");
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org