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 next 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

Re: XMLRpcClient in U++ version 5185 [message #36871 is a reply to message #36863] Sun, 15 July 2012 21:19 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks. I hope it is OK now (although I have fixed error idependently).

Mirek
Re: XMLRpcClient in U++ version 5185 [message #36885 is a reply to message #36871] Tue, 17 July 2012 04:22 Go to previous messageGo to next message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
Hello, Mirek


I run the example in reference/XMLRpcClient with U++ version 5199,

it seems like still the same, and still show up

07/17/2012 10:21:38
12+12=24
12*12=144
12+5612= error: XML Error: 'methodResponse'' tag expected
12/0= error: XML Error: 'methodResponse'' tag expected
Re: XMLRpcClient in U++ version 5185 [message #36889 is a reply to message #36885] Tue, 17 July 2012 08:29 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sorry, should be OK now. I have mixed fixes...
Re: XMLRpcClient in U++ version 5185 [message #36890 is a reply to message #36889] Tue, 17 July 2012 15:49 Go to previous message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
Thanks. Smile
Previous Topic: Problem with big text file
Next Topic: XmlRpc: Question of protection (authentification)
Goto Forum:
  


Current Time: Fri Mar 29 10:48:29 CET 2024

Total time taken to generate the page: 0.01604 seconds