pvl3855 | 2 Jul 10:15 2007
Picon

xml-rpc problem

I have to talk to a XML-RPC server. I am working within an 
environment that does not support XML-RPC (Cache from Intersystems). 
So the idea was that I write my code directly to HTTP. Now I have 
something but I do not receive a correct reply from the server. They 
say my XML-RPC request is not correct, however they cannot tell me 
what is wrong.
Below is what I send. Could you say what is wrong with this?
(I changed the password.)

Regards,
Pieter van Lierop
Infor Development.

+++++++++++++++++++++++++++++++++++++++++++++++++

POST /adresxpress/server/adresxpress_server.php HTTP/1.0
Connection: Close
Host: www.dataonline.nl
User-Agent: Mozilla/4.0 (compatible; Cache;)
Content-Length: 459
Content-Type: text/xml; charset=UTF-8

<?xml version="1.0"?
><methodCall><methodName>adresxpress.postcode</methodName><p
arams><param><value><struct><member><name>username</name><value><stri
ng>oba_01</
string></value></member><member><name>password</name><value><string>X
XXX</st
ring></value></member><member><name>postcode</name><value><string>107
5 KJ</strin
(Continue reading)

Gaetano Giunta | 2 Jul 13:43 2007
Picon

Re: xml-rpc problem

I have no idea, but since this is a public webservice you are trying to
access, you can test it using the xmlrpc debugger available at
http://gggeek.raprap.it/debugger/

I tried it using your request payload, and got a valid xmlrpc response...

Hope it helps
Gaetano

On 7/2/07, pvl3855 <pvl3855 <at> yahoo.fr> wrote:
>
>   I have to talk to a XML-RPC server. I am working within an
> environment that does not support XML-RPC (Cache from Intersystems).
> So the idea was that I write my code directly to HTTP. Now I have
> something but I do not receive a correct reply from the server. They
> say my XML-RPC request is not correct, however they cannot tell me
> what is wrong.
> Below is what I send. Could you say what is wrong with this?
> (I changed the password.)
>
> Regards,
> Pieter van Lierop
> Infor Development.
>
> +++++++++++++++++++++++++++++++++++++++++++++++++
>
> POST /adresxpress/server/adresxpress_server.php HTTP/1.0
> Connection: Close
> Host: www.dataonline.nl
> User-Agent: Mozilla/4.0 (compatible; Cache;)
(Continue reading)

pvl3855 | 2 Jul 17:02 2007
Picon

Re: xml-rpc problem

Thanks Gaetano, this helps indeed. I receive a good reply with this 
test client. I am still trying to find what's wrong with my request.
The debugger is very useful, especially option "More" that shows the 
request.

Many thanks,
Pieter
--- In xml-rpc <at> yahoogroups.com, "Gaetano Giunta" 
<giunta.gaetano <at> ...> wrote:
>
> I have no idea, but since this is a public webservice you are 
trying to
> access, you can test it using the xmlrpc debugger available at
> http://gggeek.raprap.it/debugger/
> 
> I tried it using your request payload, and got a valid xmlrpc 
response...
> 
> Hope it helps
> Gaetano
> 
> On 7/2/07, pvl3855 <pvl3855 <at> ...> wrote:
> >
> >   I have to talk to a XML-RPC server. I am working within an
> > environment that does not support XML-RPC (Cache from 
Intersystems).
> > So the idea was that I write my code directly to HTTP. Now I have
> > something but I do not receive a correct reply from the server. 
They
> > say my XML-RPC request is not correct, however they cannot tell 
(Continue reading)

Stephane Bortzmeyer | 3 Jul 17:43 2007
Picon

Re: xml-rpc problem

On Mon, Jul 02, 2007 at 01:43:19PM +0200,
 Gaetano Giunta <giunta.gaetano <at> gmail.com> wrote 
 a message of 390 lines which said:

> you can test it using the xmlrpc debugger available at
> http://gggeek.raprap.it/debugger/

Very nice tool but I miss the ability to see the request, not only the
response, when running in debug mode.

(I try to debug the TextPattern XML-RPC plugin, see
http://forum.textpattern.com/viewtopic.php?pid=152450)

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:xml-rpc-digest <at> yahoogroups.com 
    mailto:xml-rpc-fullfeatured <at> yahoogroups.com

(Continue reading)

Gaetano Giunta | 3 Jul 21:50 2007
Picon

Re: xml-rpc problem

Well, if you set debugging to "more", you get a nice, 100% complete dump 
of the http request payload.

To alleviate your trouble, I read the thread you refer to, and I can 
tell the problem most likely lies in the php version in use on the 
xmlrpc server: version 5.2.2 has borked support for the global variable 
HTTP_RAW_POST_DATA, used by 100% of the xmlrpc/soap php libs out there 
(phpxmlrpc, pear::xmlrpc, nusoap, etc...).
It has been fixed in 5.2.3, along with another quite stoopid regression 
(but the php changelog is not always clear enough when it comes to bugs 
fixed).
Please have the sysadmins upgrade the server install.

Bye
Gaetano

>> you can test it using the xmlrpc debugger available at
>> http://gggeek.raprap.it/debugger/
>>     
>
> Very nice tool but I miss the ability to see the request, not only the
> response, when running in debug mode.
>
> (I try to debug the TextPattern XML-RPC plugin, see
> http://forum.textpattern.com/viewtopic.php?pid=152450)
>
>   

 
Yahoo! Groups Links
(Continue reading)

Stephane Bortzmeyer | 3 Jul 22:20 2007
Picon

Re: xml-rpc problem

On Tue, Jul 03, 2007 at 09:50:38PM +0200,
 Gaetano Giunta <giunta.gaetano <at> gmail.com> wrote 
 a message of 27 lines which said:

> Well, if you set debugging to "more", you get a nice, 100% complete
> dump of the http request payload.

Ooops, I noticed Yes and No and missed More. It works. Thanks again
for that very useful tool.

> It has been fixed in 5.2.3, along with another quite stoopid
> regression (but the php changelog is not always clear enough when it
> comes to bugs fixed).  Please have the sysadmins upgrade the server
> install.

I'm the sysadmin but there is apparently no more recent PHP in the
software tree (a Gentoo machine: emerge -u php yields no package to
upgrade; Gentoo is typically very slow in upgrades, especially for an
AMD64 machine).

Anyway, I've found what I believe to be a better solution:

http://forum.textpattern.com/viewtopic.php?pid=152481#p152481

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

(Continue reading)

oconnorglenn | 5 Jul 16:33 2007

How to post to wordpress blog via xml-rpc

Hi there,

I've setup a blog on our intranet.. Its a wordpress blog.. Im now
trying to pull info from our Internal DB and post it into the
wordpress blog..

Ive heard of the xml-rpc, but have no idea on how to use it?

Does someone have a guide to use it?

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:xml-rpc-digest <at> yahoogroups.com 
    mailto:xml-rpc-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    xml-rpc-unsubscribe <at> yahoogroups.com

(Continue reading)

John Wilson | 5 Jul 17:00 2007
Picon

Re: How to post to wordpress blog via xml-rpc


On 5 Jul 2007, at 15:33, oconnorglenn wrote:

> Hi there,
>
> I've setup a blog on our intranet.. Its a wordpress blog.. Im now
> trying to pull info from our Internal DB and post it into the
> wordpress blog..
>
> Ive heard of the xml-rpc, but have no idea on how to use it?
>
> Does someone have a guide to use it?

I presume you have looked at the Wordpress documentation (type  
wordpress xml-rpc into google. It's the first ht as you might  
expect). Does that not help you?

What programming language are you using?

John Wilson

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

(Continue reading)

Stephane Bortzmeyer | 6 Jul 16:22 2007
Picon

Re: How to post to wordpress blog via xml-rpc

On Thu, Jul 05, 2007 at 02:33:32PM -0000,
 oconnorglenn <glenn <at> nixforce.com> wrote 
 a message of 310 lines which said:

> I've setup a blog on our intranet.. Its a wordpress blog.. Im now
> trying to pull info from our Internal DB and post it into the
> wordpress blog..

According to its documentation (I did not test it), Wordpress supports
two XML-RPC API, metWeblog and Movable Type
(http://codex.wordpress.org/XML-RPC_Support).

> Ive heard of the xml-rpc, but have no idea on how to use it?

The best starting point is:

http://www.xmlrpc.com/

More to the point, if you program in Python *and* read French, see my
small introduction: http://www.bortzmeyer.org/xml-rpc-for-blogs.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

(Continue reading)

slinkp23 | 13 Jul 20:57 2007

Which base64 spec?

Is it correct, or at least permissible, for implementations to embed
newlines in the wire representation of base64 data?

The xmlrpc spec doesn't say. It just says "base64-encoded binary" and
the example data is very short.

From looking at the dates of the various specs, I infer that rfc2045
was the current defacto spec for base64 encoders, therefore, xmlrpc
implementations should expect to see newlines in the encoded data.

RFC 3548 and RFC 4648 say NOT to use newlines, but they had not been
written yet.

This came up for me because Python's xmlrpclib adds newlines every 76
characters, as per RFC 2045, but Redstone's parser blows up on them,
apparently expecting the data to conform to RFC 3548 or 4648.

It would be really, really nice if the xmlrpc spec could be updated to
clarify this so implementers don't have to know the entire history of
base64 ... and so we could have an authoritive source to say whether
Python or Redstone is wrong  :)

-PW

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

(Continue reading)


Gmane