From: Arlen Christian Mart Cuss Date: 2012-12-13T06:54:14+09:00 Subject: Re: XMLRPC and consuming non-standard sources --f46d044401c25305ff04d0aed626 Content-Type: text/plain; charset=UTF-8 I think you probably won't have any luck using an XML-RPC client to talk to a non-XML-RPC server (just a server which happens to talk XML). You may need to just DIY the request with a normal HTTP library. On Thu, Dec 13, 2012 at 7:11 AM, Tony D. wrote: > I'm trying to use the XMLRPC/client to consume an XMLRPC resource; > unfortunately it does not conform to standards. > > So the XML content I have to send to the XMLRPC server needs to be > formatted like so; > > > > > _number_ > > > > Of course the call2 method of class XMLRPC::Client uses this > create().methodCall(method, *args); which generates this request: > > > > QuerySub > > > 100001647 > > > > > The response from the XMLRPC source is also non-standard; > > Can anyone offer any advice on how I can use the Ruby XMLRPC library and > still format my requests to fit this custom solution? Any advice on how > I can go about this? > > -- > Posted via http://www.ruby-forum.com/. > > --f46d044401c25305ff04d0aed626 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think you probably won't have any luck using an XML-RPC client to tal= k to a non-XML-RPC server (just a server which happens to talk XML). =C2=A0= You may need to just DIY the request with a normal HTTP library.


On Thu, Dec 13, 2012 at 7:11 AM, Tony D.= <lists@ruby-forum.com> wrote:
I'm trying to use the XMLRPC/client to consume an XMLRPC resource;
unfortunately it does not conform to standards.

So the XML content I have to send to the XMLRPC server needs to be
formatted like so;

<?xml version=3D"1.0" ?>
<FileRequest>
<QuerySub>
<FileId>_number_</FileId>
</QuerySub>
</FileRequest>

Of course the call2 method of class XMLRPC::Client uses this
create().methodCall(method, *args); which generates this request:

<?xml version=3D"1.0" ?>
<methodCall>
<methodName>QuerySub</methodName>
<params>
<param>
<value><string>100001647</string></value>
</param>
</params>
</methodCall>

The response from the XMLRPC source is also non-standard;

Can anyone offer any advice on how I can use the Ruby XMLRPC library and still format my requests to fit this custom solution? =C2=A0Any advice on h= ow
I can go about this?

--
Posted via http://= www.ruby-forum.com/.


--f46d044401c25305ff04d0aed626--