小编ste*_*ber的帖子

有哪些选项可用于在Delphi中使用SOAP实现长轮询?

我有一个Delphi企业应用程序,它充当Java后端(SOAP,Axis2)的客户端.我的一些请求需要不确定或特别大的时间才能完成,我想为SOAP请求实现一个长轮询解决方案.

据我所知,我通常会使用WS-Addressing.但是,似乎Delphi SOAP客户端(WCF)没有实现WS-Addressing.

我被锁定在Java和Delphi中.我使用Axis 2组件,例如生命周期,但我可以转换到另一个Web服务引擎.我控制服务器和客户端.

在Delphi和Java中实现长轮询有哪些选择?

java delphi soap ws-addressing delphi-xe2

6
推荐指数
1
解决办法
577
查看次数

RapidXML编译错误解析字符串

我在使用RapidXML解析字符串时遇到了一些麻烦.我在Eclipse中收到一条错误,声称解析函数不存在.

make all 
Building file: ../search.cpp
Invoking: Cross G++ Compiler
g++ -DDEBUG -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"search.d" -MT"search.d" -o "search.o" "../search.cpp"
../search.cpp: In function ‘void search(CURL*, CURLcode, std::string, std::string)’:
../search.cpp:29:27: error: no matching function for call to ‘rapidxml::xml_document<>::parse(const char*)’
../search.cpp:29:27: note: candidate is:
../rapidxml-1.13/rapidxml.hpp:1381:14: note: template<int Flags> void rapidxml::xml_document::parse(Ch*) [with int Flags = Flags, Ch = char]
make: *** [search.o] Error 1
Run Code Online (Sandbox Code Playgroud)

以下代码引发错误:

rapidxml::xml_document<> doc;    // This has no errors
doc.parse<0>(data.c_str());      // This line raises the error …
Run Code Online (Sandbox Code Playgroud)

c++ string rapidxml xml-parsing

3
推荐指数
1
解决办法
3538
查看次数

标签 统计

c++ ×1

delphi ×1

delphi-xe2 ×1

java ×1

rapidxml ×1

soap ×1

string ×1

ws-addressing ×1

xml-parsing ×1