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 "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org> on 2005/03/28 10:42:16 UTC

[jira] Commented: (AXISCPP-576) connot build MothOps service generated by the wsdl2ws tool

     [ http://issues.apache.org/jira/browse/AXISCPP-576?page=comments#action_61620 ]
     
Dushshantha Chandradasa commented on AXISCPP-576:
-------------------------------------------------

following modifications to ParmHeaderFileWriter.java for RPC and Doc styles will fix the error.


Index: c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java
===================================================================
RCS file: /home/cvspublic/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java,v
retrieving revision 1.27
diff -r1.27 ParmHeaderFileWriter.java
201a202
>             writer.write("using namespace std;\n");

Index: c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ParmHeaderFileWriter.java
===================================================================
RCS file: /home/cvspublic/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ParmHeaderFileWriter.java,v
retrieving revision 1.32
diff -r1.32 ParmHeaderFileWriter.java
409a410,411
>             
>             writer.write("using namespace std;\n");


> connot build MothOps service generated by the wsdl2ws tool
> ----------------------------------------------------------
>
>          Key: AXISCPP-576
>          URL: http://issues.apache.org/jira/browse/AXISCPP-576
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Windows(tested only on Windows )
>     Reporter: Dushshantha Chandradasa
>     Assignee: Samisa Abeysinghe

>
> The service MathOps generated by wsdl2ws tool using MathOps.wsdl in the current cvs cannot be built. It gives follwing errors.
> AxisServiceException.cpp
> AxisServiceException.hpp(26) : error C2629: unexpected 'class AxisServiceExcepti
> on ('
> AxisServiceException.hpp(26) : error C2238: unexpected token(s) preceding ';'
> AxisServiceException.hpp(30) : error C2146: syntax error : missing ';' before id
> entifier 'getMessage'
> AxisServiceException.hpp(30) : error C2071: 'string' : illegal storage class
> AxisServiceException.hpp(31) : error C2327: 'AxisServiceException::string' : mem
> ber from enclosing class is not a type name, static, or enumerator
> AxisServiceException.hpp(31) : error C2146: syntax error : missing ';' before id
> entifier 'getMessage'
> AxisServiceException.hpp(31) : error C2071: 'string' : illegal storage class
> AxisServiceException.hpp(31) : error C2734: 'string' : const object must be init
> ialized if not extern
> AxisServiceException.hpp(39) : error C2327: 'AxisServiceException::string' : mem
> ber from enclosing class is not a type name, static, or enumerator
> AxisServiceException.hpp(39) : error C2146: syntax error : missing ';' before id
> entifier 'm_sMessage'
> AxisServiceException.hpp(39) : error C2501: 'string' : missing storage-class or
> type specifiers
> AxisServiceException.hpp(39) : error C2501: 'm_sMessage' : missing storage-class
>  or type specifiers
> AxisServiceException.cpp(11) : error C2758: 'string' : must be initialized in co
> nstructor base/member initializer list
>         AxisServiceException.hpp(30) : see declaration of 'string'
> AxisServiceException.cpp(20) : error C2758: 'string' : must be initialized in co
> nstructor base/member initializer list
>         AxisServiceException.hpp(30) : see declaration of 'string'
> AxisServiceException.cpp(26) : error C2758: 'string' : must be initialized in co
> nstructor base/member initializer list
>         AxisServiceException.hpp(30) : see declaration of 'string'
> AxisServiceException.cpp(33) : error C2758: 'string' : must be initialized in co
> nstructor base/member initializer list
>         AxisServiceException.hpp(30) : see declaration of 'string'
> AxisServiceException.cpp(38) : error C2758: 'string' : must be initialized in co
> nstructor base/member initializer list
>         AxisServiceException.hpp(30) : see declaration of 'string'
> AxisServiceException.cpp(43) : error C2146: syntax error : missing ')' before id
> entifier 'sMessage'
> AxisServiceException.cpp(43) : error C2350: 'AxisServiceException::AxisServiceEx
> ception::AxisServiceException' is not a static member
> AxisServiceException.cpp(43) : error C2440: 'initializing' : cannot convert from
>  'const int AxisServiceException::*' to 'int'
>         Conversion is a valid standard conversion, which can be performed implic
> itly or by use of static_cast, C-style cast or function-style cast
> AxisServiceException.cpp(43) : error C2059: syntax error : ')'
> AxisServiceException.cpp(44) : error C2143: syntax error : missing ';' before '{
> '
> AxisServiceException.cpp(44) : error C2447: missing function header (old-style f
> ormal list?)
> AxisServiceException.cpp(50) : error C2065: 'm_sMessage' : undeclared identifier
> AxisServiceException.cpp(50) : error C2440: '=' : cannot convert from 'char [1]'
>  to 'int'
>         This conversion requires a reinterpret_cast, a C-style cast or function-
> style cast
> AxisServiceException.cpp(74) : error C2556: 'const class std::basic_string<char,
> struct std::char_traits<char>,class std::allocator<char> > __thiscall AxisServic
> eException::getMessage(class exception *)' : overloaded function differs only by
>  return type from 'int __thiscall AxisServiceException::getMessage(class excepti
> on *)'
>         AxisServiceException.hpp(30) : see declaration of 'getMessage'
> AxisServiceException.cpp(74) : error C2373: 'getMessage' : redefinition; differe
> nt type modifiers
>         AxisServiceException.hpp(30) : see declaration of 'getMessage'
> AxisServiceException.cpp(75) : error C2146: syntax error : missing ';' before id
> entifier 'sMessage'
> AxisServiceException.cpp(75) : error C2065: 'sMessage' : undeclared identifier
> AxisServiceException.cpp(75) : error C2440: '=' : cannot convert from 'const cha
> r *' to 'int'
>         This conversion requires a reinterpret_cast, a C-style cast or function-
> style cast
> AxisServiceException.cpp(80) : error C2556: 'const class std::basic_string<char,
> struct std::char_traits<char>,class std::allocator<char> > __thiscall AxisServic
> eException::getMessage(int)' : overloaded function differs only by return type f
> rom 'int __thiscall AxisServiceException::getMessage(int)'
>         AxisServiceException.hpp(31) : see declaration of 'getMessage'
> AxisServiceException.cpp(80) : error C2373: 'getMessage' : redefinition; differe
> nt type modifiers
>         AxisServiceException.hpp(31) : see declaration of 'getMessage'
> AxisServiceException.cpp(81) : error C2146: syntax error : missing ';' before id
> entifier 'sMessage'
> AxisServiceException.cpp(85) : error C2440: '=' : cannot convert from 'char [64]
> ' to 'int'
>         This conversion requires a reinterpret_cast, a C-style cast or function-
> style cast
> AxisServiceException.cpp(88) : error C2440: '=' : cannot convert from 'char [60]
> ' to 'int'
>         This conversion requires a reinterpret_cast, a C-style cast or function-
> style cast
> AxisServiceException.cpp(95) : error C2228: left of '.c_str' must have class/str
> uct/union type
> DivByZeroStruct.cpp
> MathOps.cpp

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira