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 |
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
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:53:16 CET 2024
Total time taken to generate the page: 0.01969 seconds
|