Pharo-users
By thread
pharo-users@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- 6 participants
- 50351 messages
Re: [Pharo-users] SOAP in Pharo
by Thushar G R
Hi Sir,
REST in magento is oAuth 1.0a, this cannot be done using javascript , if i
am not wrong. Also REST in magento dont support shopping cart and payments.
I actually first considered REST itself but due to these issues i came back
to SOAP/XMLRPC. For OAuth i used Zinc-SSO and from pharo i had REST working
too.
SoapOpera : hit by grief already!!
So i think i will start with XMLRPC and improvise. But before that i need
to get the xml requests and response formats to start with.
Will keep you posted.
Thanks a lot,
thushar
On Fri, May 2, 2014 at 6:06 PM, S Krish
<krishnamachari.sudhakar(a)gmail.com>wrote:
>
> Or:
>
> http://www.magentocommerce.com/api/rest/introduction.html
>
> REST is a clean approach.. OAuth2 you can perhaps do with Zinc and SSL.. (
> http://blog.doit.st/2011/02/15/cloudforksso-openid-and-oauth-support-for-sm…)
>
>
>
>
> On Fri, May 2, 2014 at 6:03 PM, S Krish <krishnamachari.sudhakar(a)gmail.com
> > wrote:
>
>> XML-RPC
>>
>> To use XML-RPC, load the following URL into your XML-RPC client:
>>
>> http://magentohost/api/xmlrpc/
>>
>> The XML-RPC supports the version 1 of the Magento API. and the API it
>> supports is quite extensive..
>>
>>
>> Another Approach:
>>
>> One can with some ingenuity mix a bit of groovy to deal with complex SOAP
>> and reduce it enough for the Pharo to deal with it in XML RPC if you have
>> to go that way.
>>
>> SoapOpera I am sure will give you a bit of grief, unless you plan to fix
>> it.. while you use it.
>>
>>
>>
>>
>>
>>
>> On Fri, May 2, 2014 at 5:15 PM, Thushar G R <thushar.gr(a)gmail.com> wrote:
>>
>>> Hi,
>>> XMLRPC may not be enough. I have tried some of the request using the
>>> XMLRPC and it works but i am not sure if its enough for managing all the
>>> requests. I am trying to connect to a magento site. and their recommended
>>> approach is unfortunately soap. SoapOpera updating is a possibility it
>>> seems, am i right? Also any paid paid solution is not practical for us at
>>> the momment.
>>>
>>> Also i hope the SoapOpera is latest at squeakSource and that it was last
>>> updated in 2010.
>>>
>>> thanks for the replies
>>>
>>> Thushar
>>>
>>> *G R Thushar*
>>> *Team Leader(Technology),*
>>> *Signos Software Solutions Pvt. Ltd.*
>>> *Ground Floor **A.R Plaza, TC 11/43 (2),*
>>> *P.M.G Junction,*
>>> *Thiruvananthapuram, 695004. Kerala, India.*
>>>
>>> *Web: www.signossolutions.com <http://www.signossolutions.com>*
>>> Email: thushar.gr(a)signossolutions.com, thushar.gr(a)gmail.com
>>> Phone: +919846577772
>>>
>>>
>>>
>>>
>>>
>>> On Fri, May 2, 2014 at 5:03 PM, phil(a)highoctane.be <phil(a)highoctane.be>wrote:
>>>
>>>> Pharo lacks a SOAP stack.
>>>>
>>>> This is something that also limits it in environments where a ton of
>>>> APIs are in SOAP format. E.g. Banks, Insurance, Media, Government
>>>> (including European Institutions).
>>>> For SaaS apps, who cares.
>>>>
>>>> Java and .NET have full stacks and that's a significant factor for
>>>> their use.
>>>> VisualWorks support those: as in:
>>>>
>>>> http://www.cincomsmalltalk.com/main/products/visualworks/
>>>>
>>>> - *Major improvements to WSDL 2.0 / SOAP 1.2 to handle updated
>>>> protocols.*
>>>>
>>>> FWIW, my approach is to have a Java endpoint that will pass stuff back
>>>> and forth through RabbitMQ or whatever middleware.
>>>>
>>>> When you get into SOAP over JMS, with JMS being WebsphereMQ for
>>>> example, well, things get complicated, especially when you factor in
>>>> certificates.
>>>> And sometimes you need compliance and certification.
>>>>
>>>> IBM has a product to help solve those things:
>>>> http://www-03.ibm.com/software/products/en/datapower.
>>>> I led a team that used it extensively for a couple of months. It works
>>>> well. The price tag is quite hard to swallow for little systems and
>>>> companies.
>>>>
>>>> <featurelist>
>>>>
>>>> "The IBM® WebSphere® DataPower® Service Gateway XG45 appliance helps
>>>> you secure and govern web traffic more effectively. It provides an advanced
>>>> data threat reduction and security enforcement layer for web and
>>>> on-premises applications, while giving you the flexibility to deploy new
>>>> applications rapidly.
>>>>
>>>> The IBM WebSphere DataPower Service Gateway XG45 appliance helps you:
>>>>
>>>> - Strengthen compliance using robust data protection, policy
>>>> enforcement and auditing capabilities
>>>> - Gain âfront-line defenseâ for inbound and outbound traffic
>>>> through a web 2.0 gateway.
>>>> - Separate security concerns from application code with an optional
>>>> hardware security module (HSM) that is certified for FIPS 140-2 Level 3.
>>>> - Integrate applications for improved application and database
>>>> connectivity."
>>>>
>>>> </featurelist>
>>>>
>>>> If you have something around, you can bridge SOAP to whatever,
>>>> including REST. The new versions do support JSON etc as well.
>>>>
>>>>
>>>> Phil
>>>>
>>>>
>>>>
>>>> On Fri, May 2, 2014 at 12:26 PM, S Krish <
>>>> krishnamachari.sudhakar(a)gmail.com> wrote:
>>>>
>>>>> Are you looking for a SOAP client for RPC style calls or document
>>>>> format.
>>>>>
>>>>> For the former adding a simple SOAP Envelope to the request and using
>>>>> ZnClient should work fairly well.
>>>>>
>>>>> But if you are looking for something like :
>>>>> http://www.soapclient.com/soaptest.html to be used against a
>>>>> declared WSDL.. I doubt if any exists.
>>>>>
>>>>> Look at the XMLRPC package and see if you can work from there.. if you
>>>>> need to adapt something..
>>>>>
>>>>>
>>>>> On Fri, May 2, 2014 at 3:29 PM, Thushar G R <thushar.gr(a)gmail.com>wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Do we have a SOAP client in pharo? I checked SoapOpera but seems its
>>>>>> too old to work with latest pharo 2.0.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
May 2, 2014
Re: [Pharo-users] Updating packages from command line
by Bernat Romagosa
Indeed something's broken... I used the versionner tool to build it, but I
think something went wrong.
http://smalltalkhub.com/#!/~bromagosa/StarUOCs/versions/ConfigurationOfStar…
Try to download the mcz, it fails.
I don't understand why MC added (2) to the file name.
2014-05-02 15:13 GMT+02:00 Sven Van Caekenberghe <sven(a)stfx.eu>:
> I think something must be broken with his configuration, you cannot even
> list it...
>
> On 02 May 2014, at 15:11, Esteban Lorenzano <estebanlm(a)gmail.com> wrote:
>
> > pharo-vm-nox Pharo.image config
> http://smalltalkhub.com/mc/bromagosa/StarUOCs/main ConfigurationOfStarUOCs âinstall=development
> >
> > has to work. All out infrastructure is based on that :)
> >
> > Esteban
> >
> > On 02 May 2014, at 15:05, Bernat Romagosa <
> tibabenfortlapalanca(a)gmail.com> wrote:
> >
> >> Hmm it doesn't seem to work...
> >>
> >> pharo-vm-nox Pharo.image config
> http://smalltalkhub.com/mc/bromagosa/StarUOCs/main
> >> KeyNotFound: key #ConfigurationOfStarUOCs not found in SystemDictionary
> >>
> >> But the config is there and I can load it from the GUI by doing:
> >>
> >>
> >> Gofer new
> >> smalltalkhubUser: 'bromagosa' project: 'StarUOCs';
> >> package: 'ConfigurationOfStarUOCs';
> >> load.
> >>
> >> ConfigurationOfStarUOCs load.
> >>
> >> What can be happening? My version is:
> >>
> >> pharo-vm-nox Pharo.image printVersion
> >> [version] 3.0 #30846
> >>
> >>
> >>
> >> 2014-05-02 13:51 GMT+02:00 Bernat Romagosa <
> tibabenfortlapalanca(a)gmail.com>:
> >> I see, thanks a lot! :)
> >>
> >>
> >> 2014-05-02 13:45 GMT+02:00 Sven Van Caekenberghe <sven(a)stfx.eu>:
> >>
> >> The best approach is to use Configurations and the config handler:
> >>
> >> $ ./pharo Pharo.image config
> >> Command line handler for dealing with Metacello configurations from the
> command line
> >>
> >> Usage: config [--help] <repository url> [<configuration>]
> [--install[=<version>]] [--group=<group>] [--username=<username>]
> [--password=<password>]
> >> --help show this help message
> >> <repository url> A Monticello repository name
> >> <configuration> A valid Metacello Configuration name
> >> <version> A valid version for the given configuration
> >> <group> A valid Metacello group name
> >> <username> An optional username to access the
> configuration's repository
> >> <password> An optional password to access the
> configuration's repository
> >>
> >> Examples:
> >> # display this help message
> >> pharo Pharo.image config
> >>
> >> # list all configurations of a repository
> >> pharo Pharo.image config $MC_REPOS_URL
> >>
> >> # list all the available versions of a confgurtation
> >> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
> >>
> >> # install the stable version
> >> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
> --install
> >>
> >> #install a specific version '1.5'
> >> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
> --install=1.5
> >>
> >> #install a specific version '1.5' and only a specific group
> 'Tests'
> >> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
> --install=1.5 --group=Tests
> >>
> >> The following article contains this approach as well:
> >>
> >> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/
> >>
> >>
> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/#deployingforproduction
> >>
> >> HTH,
> >>
> >> Sven
> >>
> >> On 02 May 2014, at 13:28, Bernat Romagosa <
> tibabenfortlapalanca(a)gmail.com> wrote:
> >>
> >>> Is there a way to do it?
> >>>
> >>> Here's my attempt:
> >>>
> >>> pharo-vm-nox MyImage.image eval "Gofer new smalltalkhubUser: 'myUser'
> project: 'MyProject'; package: 'MyPackage'; load. Smalltalk snapshot: true
> andQuit: true"
> >>>
> >>> then:
> >>>
> >>> pharo-vm-nox MyImage.image eval --no-quit "MyJustLoadedClass start"
> >>>
> >>> results in:
> >>>
> >>> UndefinedObject>>DoIt (MyJustLoadedClass is Undeclared)
> >>> MessageNotUnderstood: receiver of "start" is nil
> >>>
> >>> Thanks!
> >>> Bernat.
> >>>
> >>> --
> >>> Bernat Romagosa.
> >>
> >>
> >>
> >>
> >>
> >> --
> >> Bernat Romagosa.
> >>
> >>
> >>
> >> --
> >> Bernat Romagosa.
> >
> >
>
>
>
--
Bernat Romagosa.
May 2, 2014
Re: [Pharo-users] Updating packages from command line
by Sven Van Caekenberghe
I think something must be broken with his configuration, you cannot even list it...
On 02 May 2014, at 15:11, Esteban Lorenzano <estebanlm(a)gmail.com> wrote:
> pharo-vm-nox Pharo.image config http://smalltalkhub.com/mc/bromagosa/StarUOCs/main ConfigurationOfStarUOCs âinstall=development
>
> has to work. All out infrastructure is based on that :)
>
> Esteban
>
> On 02 May 2014, at 15:05, Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> wrote:
>
>> Hmm it doesn't seem to work...
>>
>> pharo-vm-nox Pharo.image config http://smalltalkhub.com/mc/bromagosa/StarUOCs/main
>> KeyNotFound: key #ConfigurationOfStarUOCs not found in SystemDictionary
>>
>> But the config is there and I can load it from the GUI by doing:
>>
>>
>> Gofer new
>> smalltalkhubUser: 'bromagosa' project: 'StarUOCs';
>> package: 'ConfigurationOfStarUOCs';
>> load.
>>
>> ConfigurationOfStarUOCs load.
>>
>> What can be happening? My version is:
>>
>> pharo-vm-nox Pharo.image printVersion
>> [version] 3.0 #30846
>>
>>
>>
>> 2014-05-02 13:51 GMT+02:00 Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>:
>> I see, thanks a lot! :)
>>
>>
>> 2014-05-02 13:45 GMT+02:00 Sven Van Caekenberghe <sven(a)stfx.eu>:
>>
>> The best approach is to use Configurations and the config handler:
>>
>> $ ./pharo Pharo.image config
>> Command line handler for dealing with Metacello configurations from the command line
>>
>> Usage: config [--help] <repository url> [<configuration>] [--install[=<version>]] [--group=<group>] [--username=<username>] [--password=<password>]
>> --help show this help message
>> <repository url> A Monticello repository name
>> <configuration> A valid Metacello Configuration name
>> <version> A valid version for the given configuration
>> <group> A valid Metacello group name
>> <username> An optional username to access the configuration's repository
>> <password> An optional password to access the configuration's repository
>>
>> Examples:
>> # display this help message
>> pharo Pharo.image config
>>
>> # list all configurations of a repository
>> pharo Pharo.image config $MC_REPOS_URL
>>
>> # list all the available versions of a confgurtation
>> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
>>
>> # install the stable version
>> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install
>>
>> #install a specific version '1.5'
>> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install=1.5
>>
>> #install a specific version '1.5' and only a specific group 'Tests'
>> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install=1.5 --group=Tests
>>
>> The following article contains this approach as well:
>>
>> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/
>>
>> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/#deployingforproduction
>>
>> HTH,
>>
>> Sven
>>
>> On 02 May 2014, at 13:28, Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> wrote:
>>
>>> Is there a way to do it?
>>>
>>> Here's my attempt:
>>>
>>> pharo-vm-nox MyImage.image eval "Gofer new smalltalkhubUser: 'myUser' project: 'MyProject'; package: 'MyPackage'; load. Smalltalk snapshot: true andQuit: true"
>>>
>>> then:
>>>
>>> pharo-vm-nox MyImage.image eval --no-quit "MyJustLoadedClass start"
>>>
>>> results in:
>>>
>>> UndefinedObject>>DoIt (MyJustLoadedClass is Undeclared)
>>> MessageNotUnderstood: receiver of "start" is nil
>>>
>>> Thanks!
>>> Bernat.
>>>
>>> --
>>> Bernat Romagosa.
>>
>>
>>
>>
>>
>> --
>> Bernat Romagosa.
>>
>>
>>
>> --
>> Bernat Romagosa.
>
>
May 2, 2014
Re: [Pharo-users] Updating packages from command line
by Esteban Lorenzano
pharo-vm-nox Pharo.image config http://smalltalkhub.com/mc/bromagosa/StarUOCs/main ConfigurationOfStarUOCs âinstall=development
has to work. All out infrastructure is based on that :)
Esteban
On 02 May 2014, at 15:05, Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> wrote:
> Hmm it doesn't seem to work...
>
> pharo-vm-nox Pharo.image config http://smalltalkhub.com/mc/bromagosa/StarUOCs/main
> KeyNotFound: key #ConfigurationOfStarUOCs not found in SystemDictionary
>
> But the config is there and I can load it from the GUI by doing:
>
>
> Gofer new
> smalltalkhubUser: 'bromagosa' project: 'StarUOCs';
> package: 'ConfigurationOfStarUOCs';
> load.
>
> ConfigurationOfStarUOCs load.
>
> What can be happening? My version is:
>
> pharo-vm-nox Pharo.image printVersion
> [version] 3.0 #30846
>
>
>
> 2014-05-02 13:51 GMT+02:00 Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>:
> I see, thanks a lot! :)
>
>
> 2014-05-02 13:45 GMT+02:00 Sven Van Caekenberghe <sven(a)stfx.eu>:
>
> The best approach is to use Configurations and the config handler:
>
> $ ./pharo Pharo.image config
> Command line handler for dealing with Metacello configurations from the command line
>
> Usage: config [--help] <repository url> [<configuration>] [--install[=<version>]] [--group=<group>] [--username=<username>] [--password=<password>]
> --help show this help message
> <repository url> A Monticello repository name
> <configuration> A valid Metacello Configuration name
> <version> A valid version for the given configuration
> <group> A valid Metacello group name
> <username> An optional username to access the configuration's repository
> <password> An optional password to access the configuration's repository
>
> Examples:
> # display this help message
> pharo Pharo.image config
>
> # list all configurations of a repository
> pharo Pharo.image config $MC_REPOS_URL
>
> # list all the available versions of a confgurtation
> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
>
> # install the stable version
> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install
>
> #install a specific version '1.5'
> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install=1.5
>
> #install a specific version '1.5' and only a specific group 'Tests'
> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install=1.5 --group=Tests
>
> The following article contains this approach as well:
>
> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/
>
> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/#deployingforproduction
>
> HTH,
>
> Sven
>
> On 02 May 2014, at 13:28, Bernat Romagosa <tibabenfortlapalanca(a)gmail.com> wrote:
>
> > Is there a way to do it?
> >
> > Here's my attempt:
> >
> > pharo-vm-nox MyImage.image eval "Gofer new smalltalkhubUser: 'myUser' project: 'MyProject'; package: 'MyPackage'; load. Smalltalk snapshot: true andQuit: true"
> >
> > then:
> >
> > pharo-vm-nox MyImage.image eval --no-quit "MyJustLoadedClass start"
> >
> > results in:
> >
> > UndefinedObject>>DoIt (MyJustLoadedClass is Undeclared)
> > MessageNotUnderstood: receiver of "start" is nil
> >
> > Thanks!
> > Bernat.
> >
> > --
> > Bernat Romagosa.
>
>
>
>
>
> --
> Bernat Romagosa.
>
>
>
> --
> Bernat Romagosa.
May 2, 2014
Re: [Pharo-users] Updating packages from command line
by Bernat Romagosa
Hmm it doesn't seem to work...
*pharo-vm-nox Pharo.image config
http://smalltalkhub.com/mc/bromagosa/StarUOCs/main
<http://smalltalkhub.com/mc/bromagosa/StarUOCs/main>*
*KeyNotFound: key #ConfigurationOfStarUOCs not found in SystemDictionary*
But the config is there and I can load it from the GUI by doing:
*Gofer new*
* smalltalkhubUser: 'bromagosa' project: 'StarUOCs';*
* package: 'ConfigurationOfStarUOCs';*
* load.*
*ConfigurationOfStarUOCs load.*
What can be happening? My version is:
*pharo-vm-nox Pharo.image printVersion*
*[version] 3.0 #30846*
2014-05-02 13:51 GMT+02:00 Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>:
> I see, thanks a lot! :)
>
>
> 2014-05-02 13:45 GMT+02:00 Sven Van Caekenberghe <sven(a)stfx.eu>:
>
> The best approach is to use Configurations and the config handler:
>>
>> $ ./pharo Pharo.image config
>> Command line handler for dealing with Metacello configurations from the
>> command line
>>
>> Usage: config [--help] <repository url> [<configuration>]
>> [--install[=<version>]] [--group=<group>] [--username=<username>]
>> [--password=<password>]
>> --help show this help message
>> <repository url> A Monticello repository name
>> <configuration> A valid Metacello Configuration name
>> <version> A valid version for the given configuration
>> <group> A valid Metacello group name
>> <username> An optional username to access the
>> configuration's repository
>> <password> An optional password to access the
>> configuration's repository
>>
>> Examples:
>> # display this help message
>> pharo Pharo.image config
>>
>> # list all configurations of a repository
>> pharo Pharo.image config $MC_REPOS_URL
>>
>> # list all the available versions of a confgurtation
>> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
>>
>> # install the stable version
>> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
>> --install
>>
>> #install a specific version '1.5'
>> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
>> --install=1.5
>>
>> #install a specific version '1.5' and only a specific group
>> 'Tests'
>> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
>> --install=1.5 --group=Tests
>>
>> The following article contains this approach as well:
>>
>> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/
>>
>> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/#deployingforproduction
>>
>> HTH,
>>
>> Sven
>>
>> On 02 May 2014, at 13:28, Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>
>> wrote:
>>
>> > Is there a way to do it?
>> >
>> > Here's my attempt:
>> >
>> > pharo-vm-nox MyImage.image eval "Gofer new smalltalkhubUser: 'myUser'
>> project: 'MyProject'; package: 'MyPackage'; load. Smalltalk snapshot: true
>> andQuit: true"
>> >
>> > then:
>> >
>> > pharo-vm-nox MyImage.image eval --no-quit "MyJustLoadedClass start"
>> >
>> > results in:
>> >
>> > UndefinedObject>>DoIt (MyJustLoadedClass is Undeclared)
>> > MessageNotUnderstood: receiver of "start" is nil
>> >
>> > Thanks!
>> > Bernat.
>> >
>> > --
>> > Bernat Romagosa.
>>
>>
>>
>
>
> --
> Bernat Romagosa.
>
--
Bernat Romagosa.
May 2, 2014
Re: [Pharo-users] Video Tutorials about Pharo
by kilon alios
Thanks you guys for your support, I really appreciate it.
Stephane had no idea you have uploaded video tutorials, great . I will use
them as inspiration for my future tutorials.
I have uploaded another one for "Inheritance" and many more are to come.
I decided however to also help you with Pharo by Example, since video
tutorials are harder to update. That means less frequent video tutorials
but I think its a better choice. I do prefer text from video for my own
learning as well. And I hope to finish the website draft I have proposed by
this weekend, add the section on the debugger and live coding.
On Thu, May 1, 2014 at 4:32 PM, stepharo <stepharo(a)free.fr> wrote:
> I always wanted to redo my old videos.
> http://stephane.ducasse.free.fr/Videos/
>
> and this is good that you start.
> Keep pushing.
>
> Stef
>
>
>
> On 26/4/14 20:16, kilon alios wrote:
>
>> Hello pharoers . I have created a playlist in youtube where in the past
>> few days I am keep adding new tutorials about the basics of Pharo.
>>
>> https://www.youtube.com/watch?v=Ol5ivaEATLQ&list=
>> PLqbtQ7OkSta0ULYAd7Qdxof851ybh-_m_
>>
>> For now I am focusing on the vary basics. So far the tutorials are
>>
>> 1) Why Pharo -> Explaining why I love Pharo and what Pharo is.
>> 2) Install Pharo
>> 3) Create a Class
>> 4) Workspace Variables
>> 5) Instance Variables
>> 6) Temporary Variables
>>
>> I try to keep the duration at most around 10 minutes , if I can around
>> 3-4 minutes. My goals is to focus on one or two features per tutorial.
>>
>> My focus for now is explaining the basics of Pharo the Language and Pharo
>> the IDE. I hope however that after that I will have the energy and time to
>> focus on Pharo libraries, like Nativeboost, Athens, Roosal , Sockets and
>> many more.
>>
>> If my free time holds and I do not run out of steam, I should be able to
>> produce around 30 - 60 hours per year of Video Tutorials that will be able
>> to document a ton of Pharo functionality.
>>
>> Already the Playlist is over an hour long and I try to keep my tutorials
>> focused entirely on the practical side.
>>
>> Your comments and support is greatly appreciated.
>>
>
>
>
May 2, 2014
Bug in Nautilus - Add Class versus Add Full Class
by kmo
Nautilus gives you two options to create a class: /Add Class/ and /Add Full
Class/.
But both options give you exactly the same template to fill in. There is no
difference between them.
This is because the class methods /AbstractTool>>defineFullClassTemplate /
and /AbstractTool>>defineClassTemplate / return exactly the same templates.
I take it this is a bug.
--
View this message in context: http://forum.world.st/Bug-in-Nautilus-Add-Class-versus-Add-Full-Class-tp475…
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
May 2, 2014
Re: [Pharo-users] SOAP in Pharo
by S Krish
Or:
http://www.magentocommerce.com/api/rest/introduction.html
REST is a clean approach.. OAuth2 you can perhaps do with Zinc and SSL.. (
http://blog.doit.st/2011/02/15/cloudforksso-openid-and-oauth-support-for-sm…)
On Fri, May 2, 2014 at 6:03 PM, S Krish
<krishnamachari.sudhakar(a)gmail.com>wrote:
> XML-RPC
>
> To use XML-RPC, load the following URL into your XML-RPC client:
>
> http://magentohost/api/xmlrpc/
>
> The XML-RPC supports the version 1 of the Magento API. and the API it
> supports is quite extensive..
>
>
> Another Approach:
>
> One can with some ingenuity mix a bit of groovy to deal with complex SOAP
> and reduce it enough for the Pharo to deal with it in XML RPC if you have
> to go that way.
>
> SoapOpera I am sure will give you a bit of grief, unless you plan to fix
> it.. while you use it.
>
>
>
>
>
>
> On Fri, May 2, 2014 at 5:15 PM, Thushar G R <thushar.gr(a)gmail.com> wrote:
>
>> Hi,
>> XMLRPC may not be enough. I have tried some of the request using the
>> XMLRPC and it works but i am not sure if its enough for managing all the
>> requests. I am trying to connect to a magento site. and their recommended
>> approach is unfortunately soap. SoapOpera updating is a possibility it
>> seems, am i right? Also any paid paid solution is not practical for us at
>> the momment.
>>
>> Also i hope the SoapOpera is latest at squeakSource and that it was last
>> updated in 2010.
>>
>> thanks for the replies
>>
>> Thushar
>>
>> *G R Thushar*
>> *Team Leader(Technology),*
>> *Signos Software Solutions Pvt. Ltd.*
>> *Ground Floor **A.R Plaza, TC 11/43 (2),*
>> *P.M.G Junction,*
>> *Thiruvananthapuram, 695004. Kerala, India.*
>>
>> *Web: www.signossolutions.com <http://www.signossolutions.com>*
>> Email: thushar.gr(a)signossolutions.com, thushar.gr(a)gmail.com
>> Phone: +919846577772
>>
>>
>>
>>
>>
>> On Fri, May 2, 2014 at 5:03 PM, phil(a)highoctane.be <phil(a)highoctane.be>wrote:
>>
>>> Pharo lacks a SOAP stack.
>>>
>>> This is something that also limits it in environments where a ton of
>>> APIs are in SOAP format. E.g. Banks, Insurance, Media, Government
>>> (including European Institutions).
>>> For SaaS apps, who cares.
>>>
>>> Java and .NET have full stacks and that's a significant factor for their
>>> use.
>>> VisualWorks support those: as in:
>>>
>>> http://www.cincomsmalltalk.com/main/products/visualworks/
>>>
>>> - *Major improvements to WSDL 2.0 / SOAP 1.2 to handle updated
>>> protocols.*
>>>
>>> FWIW, my approach is to have a Java endpoint that will pass stuff back
>>> and forth through RabbitMQ or whatever middleware.
>>>
>>> When you get into SOAP over JMS, with JMS being WebsphereMQ for example,
>>> well, things get complicated, especially when you factor in certificates.
>>> And sometimes you need compliance and certification.
>>>
>>> IBM has a product to help solve those things:
>>> http://www-03.ibm.com/software/products/en/datapower.
>>> I led a team that used it extensively for a couple of months. It works
>>> well. The price tag is quite hard to swallow for little systems and
>>> companies.
>>>
>>> <featurelist>
>>>
>>> "The IBM® WebSphere® DataPower® Service Gateway XG45 appliance helps you
>>> secure and govern web traffic more effectively. It provides an advanced
>>> data threat reduction and security enforcement layer for web and
>>> on-premises applications, while giving you the flexibility to deploy new
>>> applications rapidly.
>>>
>>> The IBM WebSphere DataPower Service Gateway XG45 appliance helps you:
>>>
>>> - Strengthen compliance using robust data protection, policy
>>> enforcement and auditing capabilities
>>> - Gain âfront-line defenseâ for inbound and outbound traffic through
>>> a web 2.0 gateway.
>>> - Separate security concerns from application code with an optional
>>> hardware security module (HSM) that is certified for FIPS 140-2 Level 3.
>>> - Integrate applications for improved application and database
>>> connectivity."
>>>
>>> </featurelist>
>>>
>>> If you have something around, you can bridge SOAP to whatever, including
>>> REST. The new versions do support JSON etc as well.
>>>
>>>
>>> Phil
>>>
>>>
>>>
>>> On Fri, May 2, 2014 at 12:26 PM, S Krish <
>>> krishnamachari.sudhakar(a)gmail.com> wrote:
>>>
>>>> Are you looking for a SOAP client for RPC style calls or document
>>>> format.
>>>>
>>>> For the former adding a simple SOAP Envelope to the request and using
>>>> ZnClient should work fairly well.
>>>>
>>>> But if you are looking for something like :
>>>> http://www.soapclient.com/soaptest.html to be used against a declared
>>>> WSDL.. I doubt if any exists.
>>>>
>>>> Look at the XMLRPC package and see if you can work from there.. if you
>>>> need to adapt something..
>>>>
>>>>
>>>> On Fri, May 2, 2014 at 3:29 PM, Thushar G R <thushar.gr(a)gmail.com>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Do we have a SOAP client in pharo? I checked SoapOpera but seems its
>>>>> too old to work with latest pharo 2.0.
>>>>>
>>>>> Thanks,
>>>>>
>>>>>
>>>>
>>>
>>
>
May 2, 2014
Re: [Pharo-users] SOAP in Pharo
by S Krish
XML-RPC
To use XML-RPC, load the following URL into your XML-RPC client:
http://magentohost/api/xmlrpc/
The XML-RPC supports the version 1 of the Magento API. and the API it
supports is quite extensive..
Another Approach:
One can with some ingenuity mix a bit of groovy to deal with complex SOAP
and reduce it enough for the Pharo to deal with it in XML RPC if you have
to go that way.
SoapOpera I am sure will give you a bit of grief, unless you plan to fix
it.. while you use it.
On Fri, May 2, 2014 at 5:15 PM, Thushar G R <thushar.gr(a)gmail.com> wrote:
> Hi,
> XMLRPC may not be enough. I have tried some of the request using the
> XMLRPC and it works but i am not sure if its enough for managing all the
> requests. I am trying to connect to a magento site. and their recommended
> approach is unfortunately soap. SoapOpera updating is a possibility it
> seems, am i right? Also any paid paid solution is not practical for us at
> the momment.
>
> Also i hope the SoapOpera is latest at squeakSource and that it was last
> updated in 2010.
>
> thanks for the replies
>
> Thushar
>
> *G R Thushar*
> *Team Leader(Technology),*
> *Signos Software Solutions Pvt. Ltd.*
> *Ground Floor **A.R Plaza, TC 11/43 (2),*
> *P.M.G Junction,*
> *Thiruvananthapuram, 695004. Kerala, India.*
>
> *Web: www.signossolutions.com <http://www.signossolutions.com>*
> Email: thushar.gr(a)signossolutions.com, thushar.gr(a)gmail.com
> Phone: +919846577772
>
>
>
>
>
> On Fri, May 2, 2014 at 5:03 PM, phil(a)highoctane.be <phil(a)highoctane.be>wrote:
>
>> Pharo lacks a SOAP stack.
>>
>> This is something that also limits it in environments where a ton of APIs
>> are in SOAP format. E.g. Banks, Insurance, Media, Government (including
>> European Institutions).
>> For SaaS apps, who cares.
>>
>> Java and .NET have full stacks and that's a significant factor for their
>> use.
>> VisualWorks support those: as in:
>>
>> http://www.cincomsmalltalk.com/main/products/visualworks/
>>
>> - *Major improvements to WSDL 2.0 / SOAP 1.2 to handle updated
>> protocols.*
>>
>> FWIW, my approach is to have a Java endpoint that will pass stuff back
>> and forth through RabbitMQ or whatever middleware.
>>
>> When you get into SOAP over JMS, with JMS being WebsphereMQ for example,
>> well, things get complicated, especially when you factor in certificates.
>> And sometimes you need compliance and certification.
>>
>> IBM has a product to help solve those things:
>> http://www-03.ibm.com/software/products/en/datapower.
>> I led a team that used it extensively for a couple of months. It works
>> well. The price tag is quite hard to swallow for little systems and
>> companies.
>>
>> <featurelist>
>>
>> "The IBM® WebSphere® DataPower® Service Gateway XG45 appliance helps you
>> secure and govern web traffic more effectively. It provides an advanced
>> data threat reduction and security enforcement layer for web and
>> on-premises applications, while giving you the flexibility to deploy new
>> applications rapidly.
>>
>> The IBM WebSphere DataPower Service Gateway XG45 appliance helps you:
>>
>> - Strengthen compliance using robust data protection, policy
>> enforcement and auditing capabilities
>> - Gain âfront-line defenseâ for inbound and outbound traffic through
>> a web 2.0 gateway.
>> - Separate security concerns from application code with an optional
>> hardware security module (HSM) that is certified for FIPS 140-2 Level 3.
>> - Integrate applications for improved application and database
>> connectivity."
>>
>> </featurelist>
>>
>> If you have something around, you can bridge SOAP to whatever, including
>> REST. The new versions do support JSON etc as well.
>>
>>
>> Phil
>>
>>
>>
>> On Fri, May 2, 2014 at 12:26 PM, S Krish <
>> krishnamachari.sudhakar(a)gmail.com> wrote:
>>
>>> Are you looking for a SOAP client for RPC style calls or document format.
>>>
>>> For the former adding a simple SOAP Envelope to the request and using
>>> ZnClient should work fairly well.
>>>
>>> But if you are looking for something like :
>>> http://www.soapclient.com/soaptest.html to be used against a declared
>>> WSDL.. I doubt if any exists.
>>>
>>> Look at the XMLRPC package and see if you can work from there.. if you
>>> need to adapt something..
>>>
>>>
>>> On Fri, May 2, 2014 at 3:29 PM, Thushar G R <thushar.gr(a)gmail.com>wrote:
>>>
>>>> Hi,
>>>>
>>>> Do we have a SOAP client in pharo? I checked SoapOpera but seems its
>>>> too old to work with latest pharo 2.0.
>>>>
>>>> Thanks,
>>>>
>>>>
>>>
>>
>
May 2, 2014
Re: [Pharo-users] Updating packages from command line
by Bernat Romagosa
I see, thanks a lot! :)
2014-05-02 13:45 GMT+02:00 Sven Van Caekenberghe <sven(a)stfx.eu>:
> The best approach is to use Configurations and the config handler:
>
> $ ./pharo Pharo.image config
> Command line handler for dealing with Metacello configurations from the
> command line
>
> Usage: config [--help] <repository url> [<configuration>]
> [--install[=<version>]] [--group=<group>] [--username=<username>]
> [--password=<password>]
> --help show this help message
> <repository url> A Monticello repository name
> <configuration> A valid Metacello Configuration name
> <version> A valid version for the given configuration
> <group> A valid Metacello group name
> <username> An optional username to access the
> configuration's repository
> <password> An optional password to access the
> configuration's repository
>
> Examples:
> # display this help message
> pharo Pharo.image config
>
> # list all configurations of a repository
> pharo Pharo.image config $MC_REPOS_URL
>
> # list all the available versions of a confgurtation
> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
>
> # install the stable version
> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install
>
> #install a specific version '1.5'
> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
> --install=1.5
>
> #install a specific version '1.5' and only a specific group 'Tests'
> pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
> --install=1.5 --group=Tests
>
> The following article contains this approach as well:
>
> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/
>
> http://zn.stfx.eu/zn/build-and-deploy-1st-webapp/#deployingforproduction
>
> HTH,
>
> Sven
>
> On 02 May 2014, at 13:28, Bernat Romagosa <tibabenfortlapalanca(a)gmail.com>
> wrote:
>
> > Is there a way to do it?
> >
> > Here's my attempt:
> >
> > pharo-vm-nox MyImage.image eval "Gofer new smalltalkhubUser: 'myUser'
> project: 'MyProject'; package: 'MyPackage'; load. Smalltalk snapshot: true
> andQuit: true"
> >
> > then:
> >
> > pharo-vm-nox MyImage.image eval --no-quit "MyJustLoadedClass start"
> >
> > results in:
> >
> > UndefinedObject>>DoIt (MyJustLoadedClass is Undeclared)
> > MessageNotUnderstood: receiver of "start" is nil
> >
> > Thanks!
> > Bernat.
> >
> > --
> > Bernat Romagosa.
>
>
>
--
Bernat Romagosa.
May 2, 2014