The xml response you are receiving is NOT valid xmlrpc: inside a STRUCT
element, there are supposed to be many MEMBER lements, each one of which has a
NAME and a VALUE, eg:
STRUCT
MEMBER
NAME hello /NAME
VALUE world /VALUE
/MEMBER
MEMBER
NAME merry /NAME
VALUE christmas /VALUE
/MEMBER
in your case a single MEMBER contains multiple NAME/VALUE pairs, and the lib
only parsers the last one (the 'cs').
Did you build the response xml by hand or using a ready-made library?
If you are using a library, you should ask the maintainers to patch it.
Since I see no PHP mentioned in the http headers of the response, I assume you
are not using phpxmlrpc on the server side.
Bye
Gaetano
-Messaggio originale-
Da: [EMAIL PROTECTED] per conto di steppel
Inviato:gio 22/12/2005 18.23
A: phpxmlrpc@lists.usefulinc.com
Cc:
Oggetto:[phpxmlrpc] Problem with xmlrpc
Hi,
i have one problem with php xmlrpc.
So here is what I am sending:
Search.PlanningOfOneHouse
WebpartnerCode
***
WebpartnerPassword
***
HouseCode
***
The debugger tells tells me that he got:
HTTP/1.1 200 OK
Date: Thu, 22 Dec 2005 17:18:45 GMT
Server: Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7f PHP/5.1.1
P3P: policyref="http://***/p3p.xml",CP="NOI CURa ADMa DEVa OUR IND UNI
COM NAV"
Connection: close
Transfer-Encoding: chunked
Content-Type: text/xml
period
1w
arrival-date
23-12-2005
arrival-time-from
1600
arrival-time-until
1800
departure-date
30-12-2005
departure-time
1000
booking-on-request
No
rent-price
1512
rent-price-excl-discount
1880
cs
liiJhiAdgEjbcaubbirlcwlZidnklgkl
---END---
So that is okay, but the then the parser give me the following data
back:
HEADER: date: Thu, 22 Dec 2005 17:18:45 GMT
HEADER: server: Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7f
PHP/5.1.1
HEADER: p3p: policyref="http://***/p3p.xml",CP="NOI CURa ADMa DEVa OUR
IND UNI COM NAV"
HEADER: connection: close
HEADER: transfer-encoding: chunked
HEADER: content-type: text/xml
---PARSED---
object(xmlrpcval)(3) {
["me"]=>
array(1) {
["struct"]=>
array(1) {
["cs"]=>
object(xmlrpcval)(3) {
["me"]=>
array(1) {
["string"]=>
string(32) "icboIIjlqCcddfOcbhdcclkMbkkkhjpn"
}
["mytype"]=>
int(1)
["_php_class"]=>
NULL
}
}
}
["mytype"]=>
int(3)
["_php_class"]=>
NULL
}
---END---
So what is the Problem?
Sorry my bad English but I hope you understand my Problem.
Greetings from Germany
Steppel
___
phpxmlrpc mailing list
phpxmlrpc@lists.usefulinc.com
http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc