Нужен sample Soap server на С++.
От: Sinva Канада  
Дата: 08.10.03 21:44
Оценка:
Господа ,поделитесь пожалуйста информацией
как писать soap server component на с++6.0.
Я попробовал ATL COM Application wizard,
ничего не получилось.
А также ,если кто знает как писать клиента
на c++6.0 для WEB services сделанных на С#,

Спасибо заранее.
Re: Нужен sample Soap server на С++.
От: Agent Smith Россия  
Дата: 09.10.03 02:33
Оценка:
Здравствуйте, Sinva, Вы писали:

S>Господа ,поделитесь пожалуйста информацией

S>как писать soap server component на с++6.0.
S>Я попробовал ATL COM Application wizard,
S>ничего не получилось.
S> А также ,если кто знает как писать клиента
S>на c++6.0 для WEB services сделанных на С#,

S>Спасибо заранее.


Присоединяюсь ко второй части вопроса. Как правильно писать распределенное приложение с компонентами, написанными на разных языках, с использованием разных технологий?
Never argue with a woman who reads. It's likely she can also think. (c)
Re[2]: Нужен sample Soap server на С++.
От: airk Ниоткуда  
Дата: 13.10.03 19:49
Оценка:
Здравствуйте, Agent Smith, Вы писали:

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


S>>Господа ,поделитесь пожалуйста информацией

S>>как писать soap server component на с++6.0.
S>>Я попробовал ATL COM Application wizard,
S>>ничего не получилось.
S>> А также ,если кто знает как писать клиента
S>>на c++6.0 для WEB services сделанных на С#,

S>>Спасибо заранее.


AS>Присоединяюсь ко второй части вопроса. Как правильно писать распределенное приложение с компонентами, написанными на разных языках, с использованием разных технологий?


1. gSOAP не устроит?

2. Я писал gSOAP клиента — C++ — который работаet с .NET Web service ("на C#" )
проблемы если и были то мелкие..
Re[3]: Нужен sample Soap server на С++.
От: Sinva Канада  
Дата: 13.10.03 21:10
Оценка:
Thanks a lot.
I 'll check it out.
Re[4]: Нужен sample Soap server на С++.
От: Sinva Канада  
Дата: 15.10.03 18:12
Оценка:
Здравствуйте, Sinva, Вы писали:

S>Thanks a lot.

S>I 'll check it out.

I have checked it out(



Короче, сгенерировал необходимый код
не могу скомпилировать:


Compiling...
mathservice.c
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(17) : error C2061: syntax error : identifier 's0__DivideResponse_'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(17) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(18) : error C2449: found '{' at file scope (missing function header?)
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(27) : error C2059: syntax error : '}'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(48) : error C2061: syntax error : identifier 's0__AddResponse'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(48) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(49) : error C2449: found '{' at file scope (missing function header?)
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(58) : error C2059: syntax error : '}'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(78) : error C2061: syntax error : identifier 's0__Divide'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(78) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(79) : error C2449: found '{' at file scope (missing function header?)
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(89) : error C2059: syntax error : '}'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(109) : error C2061: syntax error : identifier 's0__AddResponse_'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(109) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(110) : error C2449: found '{' at file scope (missing function header?)
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(119) : error C2059: syntax error : '}'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(140) : error C2061: syntax error : identifier 's0__MultiplyResponse_'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(140) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(141) : error C2449: found '{' at file scope (missing function header?)
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(150) : error C2059: syntax error : '}'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(170) : error C2061: syntax error : identifier 's0__Add'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(170) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(171) : error C2449: found '{' at file scope (missing function header?)
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(181) : error C2059: syntax error : '}'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(280) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(280) : error C2081: 's0__DivideResponse_' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(280) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(280) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(280) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(282) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(282) : error C2081: 's0__SubtractResponse_' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(282) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(282) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(282) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(284) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(284) : error C2081: 's0__MultiplyResponse_' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(284) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(284) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(284) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(286) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(286) : error C2081: 's0__AddResponse_' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(286) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(286) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(286) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(290) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(290) : error C2081: 's0__DivideResponse_' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(290) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(290) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(290) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(292) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(292) : error C2081: 's0__SubtractResponse_' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(292) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(292) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(292) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(294) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(294) : error C2081: 's0__MultiplyResponse_' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(294) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(294) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(294) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(296) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(296) : error C2081: 's0__AddResponse_' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(296) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(296) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapstub.h(296) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(74) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(74) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(74) : error C2059: syntax error : ','
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(74) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(75) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(75) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(75) : error C2081: 's0__MultiplyResponse' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(75) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(75) : error C2059: syntax error : ','
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(75) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(76) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(76) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(76) : error C2081: 's0__MultiplyResponse' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(76) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(76) : error C2059: syntax error : ','
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(76) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(82) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(88) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(88) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(88) : error C2059: syntax error : ','
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(88) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(89) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(89) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(89) : error C2081: 's0__Add' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(89) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(89) : error C2059: syntax error : ','
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(89) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(90) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(90) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(90) : error C2081: 's0__Add' : name in formal parameter list illegal
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(90) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(90) : error C2059: syntax error : ','
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(90) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(96) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(102) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(102) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(102) : error C2059: syntax error : ','
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soaph.h(102) : fatal error C1003: error count exceeds 100; stopping compilation
soapC.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\gSoapFirst\soapC.cpp(21) : error C2039: 'is_in_header' : is not a member of 'soap'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\stdsoap2.h(801) : see declaration of 'soap'
C:\Program Files\Microsoft Visual Studio\MyProjects\gSoapFirst\soapC.cpp(23) : error C2039: 'is_in_header' : is not a member of 'soap'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\stdsoap2.h(801) : see declaration of 'soap'
C:\Program Files\Microsoft Visual Studio\MyProjects\gSoapFirst\soapC.cpp(30) : error C2039: 'is_in_header' : is not a member of 'soap'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\stdsoap2.h(801) : see declaration of 'soap'
C:\Program Files\Microsoft Visual Studio\MyProjects\gSoapFirst\soapC.cpp(32) : error C2039: 'is_in_header' : is not a member of 'soap'
c:\program files\microsoft visual studio\myprojects\gsoapfirst\stdsoap2.h(801) : see declaration of 'soap'
C:\Program Files\Microsoft Visual Studio\MyProjects\gSoapFirst\soapC.cpp(176) : error C2065: 'soap_ignore_element' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\gSoapFirst\soapC.cpp(379) : warning C4060: switch statement contains no 'case' or 'default' labels
soapClient.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\gSoapFirst\soapClient.cpp(35) : error C2065: 'soap_putattachments' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\gSoapFirst\soapClient.cpp(56) : error C2065: 'soap_getattachments' : undeclared identifier
soapClientLib.cpp
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapc.cpp(176) : error C2065: 'soap_ignore_element' : undeclared identifier
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapc.cpp(379) : warning C4060: switch statement contains no 'case' or 'default' labels
soapServer.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\gSoapFirst\soapServer.cpp(46) : error C2065: 'soap_getattachments' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\gSoapFirst\soapServer.cpp(70) : error C2065: 'soap_putattachments' : undeclared identifier
soapServerLib.cpp
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapc.cpp(176) : error C2065: 'soap_ignore_element' : undeclared identifier
c:\program files\microsoft visual studio\myprojects\gsoapfirst\soapc.cpp(379) : warning C4060: switch statement contains no 'case' or 'default' labels
stdsoap2.cpp
Error executing cl.exe.

gSoapFirst.exe — 113 error(s), 3 warning(s)


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

Пожалуйста , помогите.
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


Удач
Re[6]: Нужен sample Soap server на С++.
От: Sinva Канада  
Дата: 17.10.03 17:33
Оценка:
Здравствуйте, illegal planet, Вы писали:

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


IP> gsoapServerProxy.h

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

IP>эти два заинклудены:

IP> gsoapServerProxy.h
IP> soapConfigService.nsmap


IP>Удач


У меня нет ни soapConfigService.nsmap,
ни gsoapServerProxy.h.
Re: Нужен sample Soap server на С++.
От: deepsky Украина  
Дата: 21.10.03 10:13
Оценка:
Здравствуйте, Sinva, Вы писали:

S>Господа ,поделитесь пожалуйста информацией

S>как писать soap server component на с++6.0.
S>Я попробовал ATL COM Application wizard,
S>ничего не получилось.
S> А также ,если кто знает как писать клиента
S>на c++6.0 для WEB services сделанных на С#,

С визардом там действительно сложно разобраться, могу посоветовать
посмотреть пример WEB сервера, сделаном с использованием ATL, такой
пример есть в поставке VS.NET, вот только не помню как он точно называется.
И самое главное что он работающий.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.