Sorry,
I 'm replying to myselve because I have to withdraw this topic. I didn't
correctly understand the cause of the problem. To explain the real
problem I'll create a new topic "Struct can't be used as return param
and as nested struct member".
Stefan
Stefan v. Wachter schrieb:
>
>
>
> Hello all,
>
> I'm using gsoap 2.7.13 on Windows and Linux and encountered a mysterious
> problem while importing my gsoap generated WSDL file in JAX-WS.
> If I have the following type definition in the .h file with the web
> service definitions:
>
> struct ap__soapStd1Result
> {
> public:
> std::string msg;
> int dummy;
> enum ap__status state;
> };
>
> In the wsdl I get:
> <!-- operation response element -->
> <element name="soapStd1Result">
> <complexType>
> <sequence>
> <element name="msg" type="xsd:string" minOccurs="1" maxOccurs="1"/>
> <element name="dummy" type="xsd:int" minOccurs="1" maxOccurs="1"/>
> <element name="state" type="ap:status" minOccurs="1" maxOccurs="1"/>
> </sequence>
> </complexType>
> </element>
>
> This is wrong. It should be:
> <complexType name="soapStd1Result">
> <sequence>
> <element name="msg" type="xsd:string" minOccurs="1" maxOccurs="1"/>
> <element name="dummy" type="xsd:int" minOccurs="1" maxOccurs="1"/>
> <element name="state" type="ap:status" minOccurs="1" maxOccurs="1"/>
> </sequence>
> </complexType>
>
> If I use in the .h file:
> struct ap__Std1Result
> {
> public:
> std::string msg;
> int dummy;
> enum ap__status state;
> };
>
> all is OK.
> Is soap some sort of keyword, which you are not allowed to use or is it
> a bug?
>
> Thanks,
> Stefan
>
>
>
>
> __________ NOD32 4069 (20090512) Information __________
>
> Diese E-Mail wurde vom NOD32 antivirus system geprüft
> http://www.nod32.com