[Gsoap2-develop] (no subject)
Development toolkit for Web Services and XML data bindings for C & C++
Brought to you by:
engelen
From: Maxim P. <mpe...@me...> - 2002-12-26 02:02:26
|
Hello! I have the following question: XML for response on SOAP-message have so structure: <?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <GetNotesResponse> <note> <text>Note1</text> </note> ...<!-some more notes --> <note> <text>Note2</text> </note> </GetNotesResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> What kind of header file has to do? I tried so: struct note { char *text; }; struct GetNotesResult { struct note * __ptrnote; int __size; }; struct GetNotesResponse { struct ns__GetNotesResult result; }; int GetNotes ( char *source, struct ns__GetNotesResponse *r ); But gSoap toolkit generated stub for the following response: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <GetNotesResponse> <result > <note> <text></text> </note> </result> </ GetNotesResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Where exists additional tag "result"... What I did mistake? Thank you. |