XMLRPC server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

XMLRPC server

Sean P. DeNigris
Administrator
Is there a working version of XMLRPC server?  After installing via "ConfigurationOfXMLRPC project latestVersion load: 'All'." the server tests seem to hang indefinitely on both Pharo 1.1.1 and Squeak 4.1.

Thanks.
Sean
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

Geoffroy Couprie
Hello,

On Thu, Dec 16, 2010 at 3:58 AM, Sean P. DeNigris <[hidden email]> wrote:
>
> Is there a working version of XMLRPC server?  After installing via
> "ConfigurationOfXMLRPC project latestVersion load: 'All'." the server tests
> seem to hang indefinitely on both Pharo 1.1.1 and Squeak 4.1.
>

The tests have some problems, but the server works fine.

Regards,

Geoffroy

Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

garduino
Hi:

Yes, I'm working on that project.

First Step: I added struc support to client and solved some decoding
struct problems. I tried using against snipplr and flickr and seems to
work ok. Also added ByteString support.

Second Step: Client tests, I solved some problems with the first tests
that are now green and am now on the process of check the tests that
involve server stuff.

In the maintime we talked also with the Esug people of try to
integrate Zinc components instead the current httpsocket and Comanche.

Will be working on these topics and the documentation will be on the
project page (http://code.google.com/p/pharo-xmlrpc/ ).

I also noted the hanging of the tests and I'm still trying to
understand how they work and so.

Let me know if I can help.

Cheers.
Germán.


2010/12/16 Geoffroy Couprie <[hidden email]>:

> Hello,
>
> On Thu, Dec 16, 2010 at 3:58 AM, Sean P. DeNigris <[hidden email]> wrote:
>>
>> Is there a working version of XMLRPC server?  After installing via
>> "ConfigurationOfXMLRPC project latestVersion load: 'All'." the server tests
>> seem to hang indefinitely on both Pharo 1.1.1 and Squeak 4.1.
>>
>
> The tests have some problems, but the server works fine.
>
> Regards,
>
> Geoffroy
>
>

Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

Sean P. DeNigris
Administrator
In reply to this post by Geoffroy Couprie
Geoffroy Couprie wrote
The tests have some problems, but the server works fine.
server := XMLRPCHttpModule startOn: 8088.
XMLRPCServerRequest
        registerService: 'echo.echoArray'
        class: XMLRPCStandardEcho
        selector: #echo:.

proxy := XMLRPCProxy new url: 'http://localhost:8088/xmlrpc' asUrl.
args := OrderedCollection new.
args add: #('A' 1 3 2.525).
r := proxy invokeMethod: 'echo.echoArray' withArgs: args.

Server returns:
<html><head><title>500 Internal Server Error</title></head><body>

Internal Server Error

MessageNotUnderstood: Dictionary>>asXMLRPCString<p><hr><address>KomHttpServer/7.1.3 (Mac OS)  Server at 'localhost' Port 80</address></hr></p></body></html>
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

Geoffroy Couprie
On Sat, Dec 18, 2010 at 9:51 PM, Sean P. DeNigris <[hidden email]> wrote:
>
>
> Geoffroy Couprie wrote:
>>
>> The tests have some problems, but the server works fine.
>>
>
> server := XMLRPCHttpModule startOn: 8088.
[...]
> proxy := XMLRPCProxy new url: 'http://localhost:8088/xmlrpc' asUrl.
[...]
> Server at 'localhost' Port 80</address></hr></p></body></html>

That is weird. The problem may come from XMLRPCProxy (in my tests, I
tried with a python xmlrpc client).

Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

Sean P. DeNigris
Administrator
For the time being, this file in will get my above example working - Object-asXMLRPCString.st

Sean
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

Sean P. DeNigris
Administrator
In reply to this post by garduino
Germán Arduino wrote
Yes, I'm working on that project.
Thanks for working on this Germán!

I keep an XmlRpc server running in my personal image so that I can script OS X with Smalltalk.  I just set up shortcuts in FastScripts to Ruby one-liners that make the XMLRPC calls to the image.

The script in the image below with ctrl-t shortcut in Safari evaluates a Smalltalk method:

Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

Stéphane Ducasse
this is fun
sean what kind of script do you run?

On Dec 18, 2010, at 10:59 PM, Sean P. DeNigris wrote:

>
>
> Germán Arduino wrote:
>>
>> Yes, I'm working on that project.
>>
>
> Thanks for working on this Germán!
>
> I keep an XmlRpc server running in my personal image so that I can script OS
> X with Smalltalk.  I just set up shortcuts in FastScripts to Ruby one-liners
> that make the XMLRPC calls to the image.
>
> The script in the image below with ctrl-t shortcut in Safari evaluates a
> Smalltalk method:
> http://forum.world.st/file/n3094039/Screen_shot_2010-12-18_at_December_18%2C_2010_4.56.53_PM.png 
>
> --
> View this message in context: http://forum.world.st/XMLRPC-server-tp3090251p3094039.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

garduino
In reply to this post by Sean P. DeNigris
Hi Sean:

Thanks by the support!

About Mac, unfortunately I can't say nor help with nothing, because I
don't have one .... are soooo expensives here.

Cheers.


2010/12/18 Sean P. DeNigris <[hidden email]>:

>
>
> Germán Arduino wrote:
>>
>> Yes, I'm working on that project.
>>
>
> Thanks for working on this Germán!
>
> I keep an XmlRpc server running in my personal image so that I can script OS
> X with Smalltalk.  I just set up shortcuts in FastScripts to Ruby one-liners
> that make the XMLRPC calls to the image.
>
> The script in the image below with ctrl-t shortcut in Safari evaluates a
> Smalltalk method:
> http://forum.world.st/file/n3094039/Screen_shot_2010-12-18_at_December_18%2C_2010_4.56.53_PM.png
>
> --
> View this message in context: http://forum.world.st/XMLRPC-server-tp3090251p3094039.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>
>



--
=================================================
Germán S. Arduino  <gsa @ arsol.net>   Twitter: garduino
Arduino Software & Web Hosting   http://www.arduinosoftware.com
PasswordsPro  http://www.passwordspro.com
=================================================

Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

Sean P. DeNigris
Administrator
In reply to this post by Stéphane Ducasse
Stéphane Ducasse wrote
sean what kind of script do you run?
I've been wrapping the world in Smalltalk.  Some of the scripts that are working/almost-there:
* wrapped google book search so that when I start reading an eBook in Mac's Preview, it gets entered into my developing library app in my image
* wrapped bit.ly's API (used in the above-referenced script), so that the "tweet a page" script takes me into my image with the URL shortened and a TextMorph to enter my tweet, then uses Applescript to submit the Tweet (a hack because Twitter's authentication process for non-web apps fried my brain)

Sean
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

garduino
In reply to this post by Sean P. DeNigris
Hi (again):

With the new Alpha version of XMLRPC the server works. The error you
reported was by a missing method in Dictionary.

Ask by any doubt, please.

Cheers.


2010/12/18 Sean P. DeNigris <[hidden email]>:

>
>
> Geoffroy Couprie wrote:
>>
>> The tests have some problems, but the server works fine.
>>
>
> server := XMLRPCHttpModule startOn: 8088.
> XMLRPCServerRequest
>        registerService: 'echo.echoArray'
>        class: XMLRPCStandardEcho
>        selector: #echo:.
>
> proxy := XMLRPCProxy new url: 'http://localhost:8088/xmlrpc' asUrl.
> args := OrderedCollection new.
> args add: #('A' 1 3 2.525).
> r := proxy invokeMethod: 'echo.echoArray' withArgs: args.
>
> Server returns:
> <html><head><title>500 Internal Server
> Error</title></head><body><h1>Internal Server
> Error</h1>&#10;MessageNotUnderstood:
> Dictionary&gt;&gt;asXMLRPCString<p><hr><address>KomHttpServer/7.1.3 (Mac OS)
> Server at 'localhost' Port 80</address></hr></p></body></html>
> --
> View this message in context: http://forum.world.st/XMLRPC-server-tp3090251p3093978.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: XMLRPC server

garduino
A bit more of data:

To install latest versions:

ConfigurationOfXMLRPC project latestVersion load: 'All'.

(Will install client,server and tests of both).

I tried in Pharo 1.1.1 and I've still 2 failing tests on server.

Now tried in Pharo 1.2 and seems that 3 tests are failing here.

I will be working on these issues on the next days, focusing on Pharo 1.1.1.

About Squeak, seems that in 4.2 the HttpSocket was redesigned and is
to hook some other http client, then XMLRPC don't works anymore.

By now XMLRPC is based on HTTPSocket and my goal is release a Beta
version soon, with not failing tests.

Later we can talk and decide about the HTTP client to use and/or the
squeak compatibility.

Cheers.

Germán.




2011/2/16 Germán Arduino <[hidden email]>:

> Hi (again):
>
> With the new Alpha version of XMLRPC the server works. The error you
> reported was by a missing method in Dictionary.
>
> Ask by any doubt, please.
>
> Cheers.
>
>
> 2010/12/18 Sean P. DeNigris <[hidden email]>:
>>
>>
>> Geoffroy Couprie wrote:
>>>
>>> The tests have some problems, but the server works fine.
>>>
>>
>> server := XMLRPCHttpModule startOn: 8088.
>> XMLRPCServerRequest
>>        registerService: 'echo.echoArray'
>>        class: XMLRPCStandardEcho
>>        selector: #echo:.
>>
>> proxy := XMLRPCProxy new url: 'http://localhost:8088/xmlrpc' asUrl.
>> args := OrderedCollection new.
>> args add: #('A' 1 3 2.525).
>> r := proxy invokeMethod: 'echo.echoArray' withArgs: args.
>>
>> Server returns:
>> <html><head><title>500 Internal Server
>> Error</title></head><body><h1>Internal Server
>> Error</h1>&#10;MessageNotUnderstood:
>> Dictionary&gt;&gt;asXMLRPCString<p><hr><address>KomHttpServer/7.1.3 (Mac OS)
>> Server at 'localhost' Port 80</address></hr></p></body></html>
>> --
>> View this message in context: http://forum.world.st/XMLRPC-server-tp3090251p3093978.html
>> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>>
>>
>