Re[5]: Нужен sample Soap server на С++.
От: illegal planet Ниоткуда  
Дата: 17.10.03 15:09
Оценка:
Здравствуйте, Sinva, Вы писали:

S>Здравствуйте, Sinva, Вы писали:


S>>Thanks a lot.

S>>I 'll check it out.

S>I have checked it out(




S>Короче, сгенерировал необходимый код

S>не могу скомпилировать:


S>Compiling...

S>mathservice.c
S>c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(17) : error C2061: syntax error : identifier 's0__DivideResponse_'
S>gSoapFirst.exe — 113 error(s), 3 warning(s)

S>Как будто бы не хватает каких headers.

S>Пожалуйста , помогите.


Из того что помню:

Файл который сгенерился из WSDL пришлось слегка подточить напильником
это вот кусок комента оттуда, который я написал:

/////////////////////////////////////////////////////////////////////////////////////
If you stil want to do anything with this file, there are several rules:
1. All classes with the names like this s0__<name of method>_Response
must be replaced by s0__<name of method>Response

2. Command

//gsoap s0 service encoding: literal

must(!!!) be presented somewhere in the beginning

3. All types come in from wsdl must be replaced by xsd__<name of type>

4. Attributes must have '@' symbol BEFORE type declaration:
@xsd__string from;

5. All wrapper classes must have this element xsd__<type> __item;
Ex.: Class s0__MultiLanguageTextItem is a wrapper-class around the string,
xsd__string __item;
/////////////////////////////////////////////////////////////////////////////////////

файлы которые включены в проект:

gsoapServerProxy.h
soapC.cpp
soapClient.cpp
soap<something>.nsmap
soapH.h
soapServer.cpp
soapStub.h
stdsoap2.cpp
stdsoap2.h

эти два заинклудены:
gsoapServerProxy.h
soapConfigService.nsmap


Удач
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.