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