axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Kosovsky <nospam_kosov...@abacus.ch>
Subject Arrays
Date Thu, 15 Jan 2004 15:46:33 GMT
Does anyone know why WSDL2Ws generates a string* instead of a 
vector<string>? Is there any reason for that?

My WSDL:
    <xsd:complexType name="StrArray">
      <xsd:complexContent>
        <xsd:restriction base="soapenc:Array">
          <xsd:attribute ref="soapenc:arrayType" arrayType="xsd:string[]"/>
        </xsd:restriction>
      </xsd:complexContent>
    </xsd:complexType>

WSDL2Ws will generate the following:
    typedef struct StrArrayTag
    {
        string* m_Array;
        int m_Size;
    } StrArray;

I would prefere this form:
    struct StrArray
    {
        vector<string> values;
    };


Sanjiva Weerawarana wrote:

>Can you please submit a bug report with a patch for this? That'll
>make sure it gets fixed for everyone ..
>  
>
Ok, I will do that.

Roland


Mime
View raw message