axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manohar (JIRA)" <>
Subject [jira] Created: (AXISCPP-877) Compile problems with code generated for <xsd:any >
Date Fri, 25 Nov 2005 08:40:55 GMT
Compile problems with code generated for <xsd:any >

         Key: AXISCPP-877
     Project: Axis-C++
        Type: Bug
  Components: Client - Stub  
    Reporter: Manohar


I've created a complex type as, 

<xsd:complexType name="aRecord">
  <xsd:any namespace="##any" minOccurs="0" maxOccurs="2" />
  <xsd:element name="Title" type="xsd:string"/>
  <xsd:element name="Author" type="xsd:string"/>		       

and trying to send aRecord object as part of request message and receive the same in return.

When I run this test,  code generated for aRecord object has following comipling errors

       [cc] operations.cpp
       [cc] aRecord.cpp
       [cc] C:\AXISCPP\TEST\test_P\obj\test\generated\cpp\SimpleXSDAny\aRecord.c
pp(168) : error C2065: 'any' : undeclared identifier
       [cc] C:\AXISCPP\TEST\test_P\obj\test\generated\cpp\SimpleXSDAny\aRecord.c
pp(168) : error C2039: 'any' : is not a member of 'aRecord'
       [cc]         c:\AXISCPP\TEST\test_P\obj\test\generated\cpp\SimpleXSDAny\a
Record.hpp(33) : see declaration of 'aRecord'
       [cc] Generating Code...

This is happening because aRecord.hpp has the following code for <xsd:any> 

AnyType* any1;

where as in aRecord.cpp the code is, 

any = original.any;

I am going to attach a wsdl and testcase for this issue. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message