Re: [Pharo-project] XMLRPC on 1.4 using Zinc
Today I had some free time and tried and really was very simple to adapt the client to Zinc, I think is already working (need still to publish and adapt ConfigurationOf*). Now I'm studying a bit the server to adapt the code to ZnServer and eliminate Kom. Then xmlrpc could be also shipped in the image in case of interest. BTW, very very good code on Zinc, well factored, using patterns, easy to understand, very good job Sven. Cheers. 2012/2/22 Sven Van Caekenberghe <sven@beta9.be>
-- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill
On 22 Feb 2012, at 22:04, Stéphane Ducasse wrote:
Hi Norbert!
Yes, I know that the situation is better with Zinc (I checked the code and really look nice and simple to understand). I only mentioned XMLRPC as a mere example of how the things become unusable so fast.
Talking about this what you guys consider best, migrate XMLRPC to 1.3 or directly to 1.4 ?
There should be not that much difference for XML and Zinc API between 1.3 and 1.4 (even if Zinc changes much more than XML.
Now I code in 1.4 most of my time.
Germán.
Normally you would write XMLRPC against Zinc HTTP Components and XML Support, both are working fine on 1.3 and 1.4. Pharo 1.3 is released and in that sense more stable (as in predictable and not changing as much), but 1.4 has much more of the latest features/fixes and is generally more fun (but you'll be living on the edge).
Here is an XMLRPC call without the infrastructure of generating/parsing the proper XML:
| call | call := '<?xml version="1.0"?> <methodCall> <methodName>examples.getStateName</methodName> <params> <param> <value><i4>41</i4></value> </param> </params> </methodCall>'. ZnClient new url: 'http://www.cookcomputing.com/xmlrpcsamples/RPC2.ashx'; entity: (ZnEntity with: call type: ZnMimeType applicationXml); post.
Regards,
Sven
-- ============================================ Germán S. Arduino <gsa @ arsol.net> Twitter: garduino Arduino Software http://www.arduinosoftware.com PasswordsPro http://www.passwordspro.com greensecure.blogspot.com germanarduino.blogpost.com ============================================
Germán, On 07 Mar 2012, at 00:20, Germán Arduino wrote:
Today I had some free time and tried and really was very simple to adapt the client to Zinc, I think is already working (need still to publish and adapt ConfigurationOf*).
Good. Let me know when it loads cleanly in Pharo 1.4 and I will certainly have a look.
Now I'm studying a bit the server to adapt the code to ZnServer and eliminate Kom. Then xmlrpc could be also shipped in the image in case of interest.
OK.
BTW, very very good code on Zinc, well factored, using patterns, easy to understand, very good job Sven.
Thanks, I am glad you like it. Sven
On Mar 7, 2012, at 12:20 AM, Germán Arduino wrote:
Today I had some free time and tried and really was very simple to adapt the client to Zinc, I think is already working (need still to publish and adapt ConfigurationOf*).
Now I'm studying a bit the server to adapt the code to ZnServer and eliminate Kom. Then xmlrpc could be also shipped in the image in case of interest.
We do not need to ship with the image but having a good configuration published in MetacelloRepository would be definitively a plus.
BTW, very very good code on Zinc, well factored, using patterns, easy to understand, very good job Sven.
:)
Hi: 2012/3/7 Stéphane Ducasse <stephane.ducasse@inria.fr>
On Mar 7, 2012, at 12:20 AM, Germán Arduino wrote:
Today I had some free time and tried and really was very simple to adapt the client to Zinc, I think is already working (need still to publish and adapt ConfigurationOf*).
Now I'm studying a bit the server to adapt the code to ZnServer and eliminate Kom. Then xmlrpc could be also shipped in the image in case of interest.
We do not need to ship with the image but having a good configuration published in MetacelloRepository would be definitively a plus.
ok. About MetacelloRepository, will continue in Squeaksource? or will be moved to ss3? I noted that some packages in ss3 include their own ConfigurationOf in the same repo than the packages. Cheers.
Today I had some free time and tried and really was very simple to adapt the client to Zinc, I think is already working (need still to publish and adapt ConfigurationOf*).
Now I'm studying a bit the server to adapt the code to ZnServer and eliminate Kom. Then xmlrpc could be also shipped in the image in case of interest.
We do not need to ship with the image but having a good configuration published in MetacelloRepository would be definitively a plus.
ok.
About MetacelloRepository, will continue in Squeaksource? or will be moved to ss3? I noted that some packages in ss3 include their own ConfigurationOf in the same repo than the packages.
For the moment it is on squeak source. Stef
participants (3)
-
Germán Arduino -
Stéphane Ducasse -
Sven Van Caekenberghe