xmlrpc-c just a short question :)

Hey list,

i'm playing around something with the xmlrpc-c lib and read about the
problem with timeouts and faulty rpc request.
The program i wanna write should connect to two RPC servers, 1 local and
1 remote, so i wanna create 2 pthreads and use the xmlrpc-c lib in both,
one for transport over libcurl or libwww and the other one for a
extension (gbx_transport for nadeos TM-servers).

I just wanna ask if the xmlrpc-c library is generally threadsave or if
there are maybe any problems to set up 2 xmlrpc-c envs at the same time
with xmlrpc-c version 1.03 or if i have to port the gbx_transport to a
newer version of xmlrpc-c or if it isnt a good idea to deal with
xmlrpc-c in threads at all.

thanks for help and a nice weekend :)
Michael Wilke

__._,_.___
Recent Activity
Visit Your Group
New Message Search

Find the message you want faster. Visit your group to try out the improved message search.

.

__,_._,___
kahenraz | 3 Dec 19:01 2006
Picon

Error when passing special characters?

I'm trying to trouble shoot and error that I'm receiving when making a
client query:

An error occurred - -32700:parse error. not well formed

This occurs when special characters are sent like degrees ( ° ) and a
type writer apostrophe ( ' ).

Is there a way to escape these characters? Is there a list is which
characters to escape?

__._,_.___
Recent Activity
Visit Your Group
New Message Search

Find the message you want faster. Visit your group to try out the improved message search.

.

__,_._,___
John Wilson | 3 Dec 19:27 2006
Picon

Re: Error when passing special characters?


On 3 Dec 2006, at 18:01, kahenraz wrote:

> I'm trying to trouble shoot and error that I'm receiving when making a
> client query:
>
> An error occurred - -32700:parse error. not well formed
>
> This occurs when special characters are sent like degrees ( ° ) and a
> type writer apostrophe ( ' ).
>
> Is there a way to escape these characters? Is there a list is which
> characters to escape?

You are going to have to give us more information if we are going to
able able to help you.

What XML-RPC implementations are you using for the client and server?

At a guess I would say that this is an encoding problem. The client
is sending the message with one encoding and the server is using a
different one.

John Wilson
The Wilson Partnership
web http://www.wilson.co.uk
blog http://eek.ook.org

__._,_.___
Recent Activity
Visit Your Group
New Message Search

Find the message you want faster. Visit your group to try out the improved message search.

.

__,_._,___
Donini | 4 Dec 21:18 2006
Picon

newbie needs guidance :)

greetings everybody,

i'm new to xml-rpc and i'm using the apache xmlrpc implemtation. I would just would like to ask if theres a way to add /edit headers of to my XmlRpcClient request. I know how to deal with the other headers like Content-Length and Authentication etc. but i need to add a "User Agent" header. Can u guys help me on this problem... tnx in advanced! :)

-- donini

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity
Visit Your Group
New Message Search

Find the message you want faster. Visit your group to try out the improved message search.

.

__,_._,___
John Wilson | 4 Dec 10:06 2006
Picon

Re: newbie needs guidance :)


On 4 Dec 2006, at 20:18, Donini wrote:

> greetings everybody,
>
> i'm new to xml-rpc and i'm using the apache xmlrpc
> implemtation. I would just would like to ask if theres a way to
> add /edit headers of to my XmlRpcClient request. I know how to deal
> with the other headers like Content-Length and Authentication etc.
> but i need to add a "User Agent" header. Can u guys help me on this
> problem... tnx in advanced! :)

I don't think you can do this without hacking the source.

You might get a better response on the Apache XML-RPC list.

John Wilson
The Wilson Partnership
web http://www.wilson.co.uk
blog http://eek.ook.org

__._,_.___
Recent Activity
Visit Your Group
New Message Search

Find the message you want faster. Visit your group to try out the improved message search.

.

__,_._,___
John Wilson | 4 Dec 11:56 2006
Picon

Re: newbie needs guidance :)


On 5 Dec 2006, at 02:12, Donini wrote:

> hi john , thanks for the quick response. I was lookin for the
> apache XML-RPC list too. but i can't find it here. Do i have any
> suggestions on other java implementations that i can use that might
> solve my problem?. I'll try to check on apache xmlrpc's source too
> c if i could do something to solve my problem.
>

The Apache lists are here http://ws.apache.org/xmlrpc/mail-lists.html

The Apache implementation is the most widely used Java
implementation. I'd stick with that if I were you.

John Wilson
The Wilson Partnership
web http://www.wilson.co.uk
blog http://eek.ook.org

__._,_.___
Recent Activity
Visit Your Group
New Message Search

Find the message you want faster. Visit your group to try out the improved message search.

.

__,_._,___

compiling error 1.08.00 on gentoo

hey group,

i have some problemes with compiling Xmlrpc-c-advanced 1.08.00

system is gentoo linux

micha <at> cassandra ~ $ gcc --version
gcc (GCC) 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and i tried to compile with:
./configure --prefix=/usr --enable-unicode --enable-libwww
--disable-curl-client --enable-abyss-server --enable-abyss-threads

the error i get is:

make[3]: Leaving directory `/home/micha/src/xmlrpc-c-1.08.00-orgi/lib/util'
gcc -o xmlrpc xmlrpc.o dumpvalue.o
-L/home/micha/src/xmlrpc-c-1.08.00-orgi/src/.libs -lxmlrpc_client
-lxmlrpc -L/usr/lib -lwwwsql -lwwwinit -lwwwapp -lwwwxml -lxmltok
-lxmlparse -lwwwzip -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime
-lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux
-lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lz -L/usr/lib/mysql
-lmysqlclient -L/usr/lib -lssl -lcrypto -L/usr/lib -lcurl -L/usr/lib
-lidn -lssl -lcrypto -ldl -lz
-L/home/micha/src/xmlrpc-c-1.08.00-orgi/lib/expat/xmlparse/.libs
-lxmlrpc_xmlparse
-L/home/micha/src/xmlrpc-c-1.08.00-orgi/lib/expat/xmltok/.libs
-lxmlrpc_xmltok
-L/home/micha/src/xmlrpc-c-1.08.00-orgi/lib/libutil/.libs -lxmlrpc_util
/home/micha/src/xmlrpc-c-1.08.00-orgi/lib/util/cmdline_parser.o
/home/micha/src/xmlrpc-c-1.08.00-orgi/lib/util/getoptx.o
/home/micha/src/xmlrpc-c-1.08.00-orgi/lib/util/casprintf.o
/home/micha/src/xmlrpc-c-1.08.00-orgi/src/.libs/libxmlrpc.so: undefined
reference to `xmlrpc_XML_ErrorString'
/home/micha/src/xmlrpc-c-1.08.00-orgi/src/.libs/libxmlrpc.so: undefined
reference to `xmlrpc_XML_GetErrorCode'
/home/micha/src/xmlrpc-c-1.08.00-orgi/src/.libs/libxmlrpc.so: undefined
reference to `xmlrpc_XML_SetElementHandler'
/home/micha/src/xmlrpc-c-1.08.00-orgi/src/.libs/libxmlrpc.so: undefined
reference to `xmlrpc_XML_SetCharacterDataHandler'
/home/micha/src/xmlrpc-c-1.08.00-orgi/src/.libs/libxmlrpc.so: undefined
reference to `xmlrpc_XML_SetUserData'
/home/micha/src/xmlrpc-c-1.08.00-orgi/src/.libs/libxmlrpc.so: undefined
reference to `xmlrpc_XML_Parse'
/home/micha/src/xmlrpc-c-1.08.00-orgi/src/.libs/libxmlrpc.so: undefined
reference to `xmlrpc_XML_ParserCreate'
/home/micha/src/xmlrpc-c-1.08.00-orgi/src/.libs/libxmlrpc.so: undefined
reference to `xmlrpc_XML_ParserFree'
collect2: ld returned 1 exit status
make[2]: *** [xmlrpc] Error 1
make[2]: Leaving directory
`/home/micha/src/xmlrpc-c-1.08.00-orgi/tools/xmlrpc'
make[1]: *** [xmlrpc/all] Error 2
make[1]: Leaving directory `/home/micha/src/xmlrpc-c-1.08.00-orgi/tools'
make: *** [tools/all] Error 2

any suggests?

thx for your efforts
micha

__._,_.___
Recent Activity
Visit Your Group
New Message Search

Find the message you want faster. Visit your group to try out the improved message search.

.

__,_._,___
coolnishant83 | 7 Dec 12:01 2006
Picon

method getting executed twice

Hi ,
One of my methods is getting executed twice because of some error in
xmlrpc_client_call. I have the backtrace of the call. I was just
wondering about the possible cause of this call fail.

(I am using xmlrpc-c.0.9.9. Pretty old i knw).

#0 0x081bcefd in _int_malloc ()
#1 0x081bc932 in malloc ()
#2 0x080dd66a in xmlrpc_mem_block_init (env=0x10, block=0x82741c0,
size=136790464) at xmlrpc_support.c:206
#3 0x080de0e9 in mkvalue (env=0xbfffafc0, format=0xd,
args=0x8dec208) at xmlrpc_data.c:432
#4 0x080ddc65 in mkarray (env=0xbfffafc0, format=0xbfffaf38,
delimiter=41 ')', args=0xbfffaf3c) at xmlrpc_data.c:212
#5 0x080de059 in mkvalue (env=0xbfffafc0, format=0xbfffaf38,
args=0xbfffaf3c) at xmlrpc_data.c:464
#6 0x080de299 in xmlrpc_build_value_va (env=0xbfffafc0,
format=0x820cc2a "(ssssss)", args=0x18 <Address 0x18 out of bounds>)
at xmlrpc_data.c:501
#7 0x081546aa in xmlrpc_client_call (env=0xbfffafc0,
server_url=0x8daffa8 "https://192.168.10.104:8090/RPC2",
method_name=0x820cdad "server.updateDNSConfig",
format=0x820cc2a "(ssssss)") at xmlrpc_client.c:602
#8 0x080a7a7e in server_updateDNSConfig (env=0xbfffb120,
param_array=0x8dfb6f8, user_data=0x1) at bb_xmlserver1.c:26351
#9 0x080dfadb in dispatch_call (env=0xbfffb120, registry=0x8daf8d8,
method_name=0x8dfb808 "server.updateDNSConfig",
param_array=0x8dfb6f8) at xmlrpc_registry.c:264
#10 0x080dfb80 in xmlrpc_registry_process_call (env2=0xbfffb180,
registry=0x8daf8d8, host=0x0,
xml_data=0x8dfc4a0 "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?
><methodCall><methodName>server.updateDNSConfig</methodName><params><p
aram><value>mastergod</value></param><param><value>168.95.1.1</value><
/param><param><val"..., xml_len=369)
at xmlrpc_registry.c:323
#11 0x080d84c7 in xmlrpc_server_abyss_rpc2_handler (r=0xbfffb1d0) at
xmlrpc_abyss.c:307
#12 0x080dc988 in ServerFunc (c=0xbfffb2e0) at server.c:633
#13 0x080dccb6 in ServerRun (srv=0x826fba0) at server.c:783
#14 0x080d87c2 in xmlrpc_server_abyss_run () at xmlrpc_abyss.c:564
#15 0x080abe87 in main (argc=3, argv=0xbfffc6b4) at
bb_xmlserver1.c:28174

Thanks
Nish

__._,_.___
Recent Activity
Visit Your Group
New Message Search

Find the message you want faster. Visit your group to try out the improved message search.

.

__,_._,___
nishant kumar | 7 Dec 14:50 2006
Picon

Re:method getting executed twice

I forgot to mention that it was giving segmentation fault at the last call.

thanks


---------------------------------
Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity
Visit Your Group
New Message Search

Find the message you want faster. Visit your group to try out the improved message search.

.

__,_._,___
lfowdur | 11 Dec 06:16 2006
Picon

Redirecting

Hi all the problem that i am having is that the user is not being
authenticated:

my code:

Dim methods As IStateNames =
CType(XmlRpcProxyGen.Create(GetType(IStateNames)), IStateNames)
Dim nc As NetworkCredential = New NetworkCredential("username",
"password")
methods.Credentials = nc

when i try to access the methods the server will not allow me to do it
and redirects me to the login page.

can anyone help please.

__._,_.___
Recent Activity
Visit Your Group
New Message Search

Find the message you want faster. Visit your group to try out the improved message search.

.

__,_._,___

Gmane