Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-04

XMLRPC in FPC

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hello,

Are there other units/libraries besides WST that would allow me to communicate through XMLRPC to another program ?

I might be mistaken, but WST seems to be geared towards SOAP web services and XMLRPC seems to be a later adition. After reading the wiki page (http://wiki.freepascal.org/Web_Service_Toolkit) my impression is that WST is overkill for my needs: all i want is a xmlrpc client and server for exchanging information with another program (which is *not* a web service).

Does anyone happen to know about other Pascal libraries that are implementing only XMLRPC , without the need to use WSDL or other complications ?

Cheers,
Adrian Maier

Unknown author
to Inoussa OUEDRAOGO: WST _does support_ XMLRPC, rigth now. What do you find complicated in WST ? Inoussa O.
Inoussa OUEDRAOGO wrote 9 lines
> I might be mistaken, but WST seems to be geared towards SOAP > web services and XMLRPC seems to be a later adition. WST _does support_ XMLRPC, rigth now. > Does anyone happen to know about other Pascal libraries that are implementing > only XMLRPC , without the need to use WSDL or other complications ? What do you find complicated in WST ?

The fact that I'd have to understand what is and how to use WSDL, and then run some tools that generate a lot of code based on WSDL. The code listed in the wiki page seems to be quite verbose and scary compared to what it takes to (manually) write in Python or even in C++ with the xmlrpc++ library.

Please see this xmlrpc++ example :
http://wilma.vub.ac.be/~se2/docs/xmlrpc.html

And this Python example:
http://docs.python.org/lib/simple-xmlrpc-servers.html

Is it possible to write pascal code (using WST) that is similar to the xmlrpc++ example ? My impression is that coding with WST is way more complex than that . And my learning time is limited :
The project I'm involved in will be written in C++, but I was thinking to use some pascal programs for testing and maybe create a partially working prototype.

Maybe I am misunderstanding what it takes to write a XMLRPC client and a server with 1-2 methods with WST? Maybe the wiki page has scared me too soon ? I'd be happy to be wrong about this .

Cheers,
Adrian Maier

Unknown author
to Baeseman, Cliff: Search the source forge web site for it. There is one that I wrote about 3-4 years ago. I…
Cliff wrote 13 lines
Search the source forge web site for it. There is one that I wrote about 3-4 years ago. I wrote and maintained the original version up to the point where it was stable and compliant with most if not all other libraries. This version found itself in all sorts of products in fact we still use it in-house today. Other developers have taken it up and extended it(stuff on source forge), it was also ported to borland C++ and a version for windows com that had a wrapper placed around it. If you cannot find any of these I can probably dig up a version for you.

There are many XMLRPC-related projects on sourceforge. What is the name of your project ?

Thanks,
Adrian Maier

Baeseman, Cliff
to Inoussa OUEDRAOGO

Search the source forge web site for it. There is one that I wrote about 3-4 years ago. I wrote and maintained the original version up to the point where it was stable and compliant with most if not all other libraries.

This version found itself in all sorts of products in fact we still use it in-house today.

Other developers have taken it up and extended it(stuff on source forge), it was also ported to borland C++ and a version for windows com that had a wrapper placed around it.

If you cannot find any of these I can probably dig up a version for you.

Thanks
Cliff Baeseman

Earlier message 18 lines
-----Original Message----- From: on behalf of Inoussa OUEDRAOGO Sent: Mon 4/14/2008 8:07 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] XMLRPC in FPC > I might be mistaken, but WST seems to be geared towards SOAP > web services and XMLRPC seems to be a later adition. WST _does support_ XMLRPC, rigth now. > Does anyone happen to know about other Pascal libraries that are implementing > only XMLRPC , without the need to use WSDL or other complications ? What do you find complicated in WST ? -- Inoussa O.
Inoussa OUEDRAOGO
to Unknown author: The fact that I'd have to understand what is and how to use WSDL, and then run some tools…

2008/4/14, :

Show quoted text 31 lines
On Mon, Apr 14, 2008 at 02:07:15PM +0100, Inoussa OUEDRAOGO wrote: > > I might be mistaken, but WST seems to be geared towards SOAP > > web services and XMLRPC seems to be a later adition. > > WST _does support_ XMLRPC, rigth now. > > > Does anyone happen to know about other Pascal libraries that are implementing > > only XMLRPC , without the need to use WSDL or other complications ? > > What do you find complicated in WST ? The fact that I'd have to understand what is and how to use WSDL, and then run some tools that generate a lot of code based on WSDL. The code listed in the wiki page seems to be quite verbose and scary compared to what it takes to (manually) write in Python or even in C++ with the xmlrpc++ library. Please see this xmlrpc++ example : http://wilma.vub.ac.be/~se2/docs/xmlrpc.html And this Python example: http://docs.python.org/lib/simple-xmlrpc-servers.html Is it possible to write pascal code (using WST) that is similar to the xmlrpc++ example ? My impression is that coding with WST is way more complex than that . And my learning time is limited : The project I'm involved in will be written in C++, but I was thinking to use some pascal programs for testing and maybe create a partially working prototype.

I saw these libs. WST has not the same goal. WST abstracts away the marshaling protocol
by making it configurable( SOAP, XMLRPC,CUSTOM BINARY in wst 0.5, The svn version
also supports json-rpc).
More important, WST presents the remote service as a local interface implementation. BTW, the type library editor is able to parse a pascal interface
file to produce a wsdl one.

Best regards.

Inoussa O.
Baeseman, Cliff
to Unknown author: There are many XMLRPC-related projects on sourceforge. What is the name of your project ?…

http://sourceforge.net/projects/delphixml-rpc/

In the cvs you will find where they imported my original 2.0 version and extended it with a new one. Not sure what exactly they did to the original but either should get you what you need.

Thanks
Cliff Baeseman

Earlier message 27 lines
-----Original Message----- From: on behalf of Sent: Mon 4/14/2008 1:39 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] XMLRPC in FPC On Mon, Apr 14, 2008 at 08:38:40AM -0500, Baeseman, Cliff wrote: > Search the source forge web site for it. There is one that I wrote about > 3-4 years ago. I wrote and maintained the original version up to the point > where it was stable and compliant with most if not all other libraries. > > This version found itself in all sorts of products in fact we still use > it in-house today. > > Other developers have taken it up and extended it(stuff on source forge), it was > also ported to borland C++ and a version for windows com that had a wrapper > placed around it. > > If you cannot find any of these I can probably dig up a version for > you. There are many XMLRPC-related projects on sourceforge. What is the name of your project ? Thanks, Adrian Maier
Unknown author
to Baeseman, Cliff
Cliff wrote 5 lines
http://sourceforge.net/projects/delphixml-rpc/ In the cvs you will find where they imported my original 2.0 version and extended it with a new one. Not sure what exactly they did to the original but either should get you what you need.

Thanks for the link Cliff ! I haven't compiled it yet (because i need to install Indy first) but looking at the sample code suggests that delphixml-rpc is what I need. Provided that i manage to install indy and compile the units with freepascal on linux...

Cheers,
Adrian Maier