Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [Solved]XMLRpcClient in U++ version 5185
[Solved]XMLRpcClient in U++ version 5185 [message #36863] Sat, 14 July 2012 09:44 Go to previous message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
In U++ version 5185,

Executing the example in reference/XMLRpcClient result in

07/14/2012 15:31:08
12+12=24
12*12=144
12+5612= error: XML Error: 'methodResponse'' tag expected
12/0= error: XML Error: 'methodResponse'' tag expected



here is a very little patch:

in uppsrc\Core\Rpc\Xml.cpp, just comment one line(green part), e.g.

String FormatXmlRpcError(int code, const char *text)
{
String r;
r << XmlHeader() <<
// "<?xml version=\"1.0\"?>"
"<methodResponse>"
"<fault>"
"<value>"
"<struct>"
"<member>"
"<name>faultCode</name>"
"<value><int>" << code << "</int></value>"
"</member>"
"<member>"
"<name>faultString</name>"
"<value><string>" << text << "</string></value>"
"</member>"
"</struct>"
"</value>"
"</fault>"
"</methodResponse>"
;
return r;
}

then executing the same example, we can get the correct result:

07/14/2012 15:35:42
12+12=24
12*12=144
12+5612= error: Failed 'Processing error: unknown operator' (-32000)
12/0= error: Failed 'Processing error: division by zero' (-32000)

[Updated on: Tue, 17 July 2012 15:49]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with big text file
Next Topic: XmlRpc: Question of protection (authentification)
Goto Forum:
  


Current Time: Mon Apr 29 15:04:27 CEST 2024

Total time taken to generate the page: 0.02573 seconds