r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

GrahamC
22-Apr-2011
[10038]
Interesting ... I just Cheyenne for pure http and don't serve other 
web services yet
Maxim
22-Apr-2011
[10039]
I think this mod can open up new opportunities for cheyenne (well, 
its already opening up one more client of mine to cheyenne  :-). 
 
especially when you'll see how brain-dead it is to setup.
GrahamC
22-Apr-2011
[10040]
brain dead is not a requirement I hope!
Maxim
22-Apr-2011
[10041x2]
hehe
maybe I just make the config file in brainfuck language, just to 
make it look like its a sophisticated thing... I mean, when its too 
easy, it can be taken for granted  ;-)
GrahamC
22-Apr-2011
[10043x2]
I recently implemented a soap api to interface with an online accounting 
package
But I'd like to take it all inhouse as it were.  So, I could use 
this to reimplement the server side SOAP services?
Maxim
22-Apr-2011
[10045x2]
yep.
because the system actually self-identifies its available interface, 
we could even generate the SOAP xml schemas automatically, as in, 
totally dynamically.
GrahamC
22-Apr-2011
[10047x2]
So, all I have to do is provide the WSDL ?
and it creates the soap services for me :)
Maxim
22-Apr-2011
[10049]
actually, you just provide the code and the WSDL would be built for 
you :-)
GrahamC
22-Apr-2011
[10050]
the otherway suits me better .. that way I can use someone else's 
WSDL
Maxim
22-Apr-2011
[10051x5]
yeah, but you still have to put the code behind.   the web-api mod, 
provides an interface automatically based on what is actually being 
served.  you could easily build a little WSDL to REBOL api file converter. 
 just load the XML, extract the methods, the parameters and build 
an equivalent rebol function stub.


Then all you'd have to do is implement the function body....  the 
only detail is the xml datatype which don't all map 1:1 within rebol, 
but that can usually be pretty well cornered within the code itself.
maybe even just provide a little PARSE rule which provides input 
validation representing the given schema.
anyhow... for now SOAP is a larger beast to tackle and I'm more concerned 
with REST stuff right now, but since the system will be working and 
you can easily extend it, there is nothing stopping you from building 
the SOAP interface.
(if you need it before I can tackle it)
what is the most trouble free linux to run cheyenne on?
GrahamC
22-Apr-2011
[10056x3]
I've never had any issues with ubuntu that I couldn't solve
except
how to start Cheyenne automatically ...when linux starts up.
Maxim
22-Apr-2011
[10059]
maybe Someone here knows how?
Kaj
23-Apr-2011
[10060x2]
For me, the most trouble free Linux to run Cheyenne is Syllable Server 
:-)
For autostarting (and shutting down) you have to hook into the init 
scripts, which are very different between Linux distributions. I 
remember having trouble with finding a straightforward way on Ubuntu, 
too
PeterWood
23-Apr-2011
[10062]
This any help? http://embraceubuntu.com/2005/09/07/adding-a-startup-script-to-be-run-at-bootup/
Kaj
23-Apr-2011
[10063x2]
pwd
Oops, that was meant for my terminal
Dockimbel
23-Apr-2011
[10065x2]
Cheyenne revision 134:

- FEAT: new config option (globals section): 'allow-method. Extends 
allowed HTTP methods.

- FEAT: -w command line option extended to allow to specify an additional 
"start" number value.

- FIX: -w 0 now starts Cheyenne with no workers at all (was spawning 
one at start until now).
- DOC: updated %changelog.txt (was lagging behind a bit).

See %changelog.txt for more info.
Linux binaries r134 should be available in an hour at: http://cheyenne-server.org/download.shtml
Kaj
23-Apr-2011
[10067]
Cool, thanks!
Dockimbel
23-Apr-2011
[10068]
I still need to add some documentation to the wiki for .r file handling 
in RSP context and to mention the new cgi-conf script (from onetom).
onetom
24-Apr-2011
[10069]
what does Database C drivers: MySQL 3,Oracle 8 ... mean, btw?
it doesnt work with mysql 5 and ora 10?
Dockimbel
24-Apr-2011
[10070]
Those drivers are built in REBOL/Command. It depends if Mysql 5 and 
Oracle 10 servers are compatible with older drivers. I can only answer 
for Mysql, and the answer is no.
onetom
24-Apr-2011
[10071x2]
so what's the point supplying those builds, only the https support?
or why not if u can anyway?
Dockimbel
24-Apr-2011
[10073x2]
Not everybody run on Mysql 5 and Oracle 10, so it can be useful to 
some users. Also it's all or nothing, I cannot chose which native 
feature I want to include or not.
The ODBC driver and the SSL support are worth it.
onetom
24-Apr-2011
[10075]
makes sense, thx for the explanation. it just looks a bit lame to 
talk about mysql3 in 2011, isn't it?
Dockimbel
24-Apr-2011
[10076]
I should maybe remove that mention from the download page...I agree 
that it looks a bit odd now.
Kaj
24-Apr-2011
[10077x2]
I've upgraded Cheyenne to the latest binary, r135
It recognises the fast-rebol-cgi keyword in the globals now, but 
it doesn't seem to do anything. It seems to try to execute REBOL 
code as real CGI. It tries to use the shebang line and has permission 
problems with CGI files that it didn't have before
Dockimbel
25-Apr-2011
[10079]
Thanks for the report, I will test it locally later today.
Maxim
27-Apr-2011
[10080]
having issues starting the cheyenne server from win. it doesn't find 
the system libs.


 I had a fix for the same issue in some other code I did... I'll try 
 to see if this cures the bug in cheyenne .
Dockimbel
27-Apr-2011
[10081]
What do you mean by "system libs"? kernel32.dll?
Maxim
27-Apr-2011
[10082x3]
it turns out it was a different problem... he was running core.  
 but the proper way of loading libs (and I've had to do it to make 
it work on 64 bit systems)
system-libs-root: rejoin [to-rebol-file get-env "systemroot" %"/system32/" 
 ]

kernel32: load/library join system-libs-root  %kernel32.dll
user32:   load/library join system-libs-root  %user32.dll
advapi32: load/library join system-libs-root  %advapi32.dll
shell32:  load/library join system-libs-root  %shell32.dll
iphlpapi: load/library join system-libs-root  %iphlpapi.dll
I was using the simple setup you are using and it woudn't work in 
all people's windows system... the above does work in all windows 
machines.
Dockimbel
27-Apr-2011
[10085x2]
I never tested it on 64-bit Windows, but I find it a bit odd that 
Windows can't find the system library by itself. It is supposed to 
search automatically in all default system folders.
Also, IIRC, that is the first time someone mentions such issue, and 
I am pretty sure that several peoples here already tried it on 64-bit 
Windows.
Maxim
27-Apr-2011
[10087]
yeah, it should but it doesn't it seems  ...  the code resulted from 
feedback when I shared the windows-chrono.r lib on rebol.org and 
a user reported failing lib loading.