[Q] Adding SOAP as module of KomHttpService(like Seaside)
Sungjin Chun
chunsj at embian.com
Tue Jun 19 08:05:47 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This is what I've done after reading umezawa's mail. Like this,
start
"self start"
"Start a new server on port NXDefaultPort serving both static content
and seaside apps"
| ma seaside soap |
seaside _ WAKomEncoded default.
soap _ SoapHttpModule new.
ma _ ModuleAssembly core.
ma serverRoot: (FileDirectory default directoryNamed: 'Documents')
fullName.
ma alias: '/seaside' to: [ma addPlug: [:request | seaside process:
request]].
ma alias: '/soap' to: [ma addPlug: [:request | soap process: request]].
ma documentRoot: (FileDirectory default directoryNamed: 'Documents')
fullName.
ma directoryIndex: 'index.html index.htm'.
ma serveFiles.
(HttpService startOn: self defaultPort named: 'WebService') plug: ma
rootModule.
And it seems working. :-)
J J wrote:
> (Taken and modified from
> http://www.shaffer-consulting.com/david/Seaside/GettingSoftware/index.html)
>
> "Start a new server on port 9090 servering both static content and seaside apps"
> | ma soap |
> soap := MySoapClass new.
> ma := ModuleAssembly core.
> ma serverRoot: (FileDirectory default directoryNamed: 'FileRoot') fullName.
> ma alias: '/soap' to: [ma addPlug: [:request | soap process: request]].
> ma documentRoot: (FileDirectory default directoryNamed: 'FileRoot') fullName.
> ma directoryIndex: 'index.html index.htm'.
> ma serveFiles.
> (HttpService startOn: 9090 named: 'httpd') plug: ma rootModule
>
>
> Then just make an empty class called MySoapClass and see what breaks! :) But it sounds like there is already a soap module, you should be able to plug that in there.
>
>
>
>> Date: Mon, 18 Jun 2007 11:43:47 +0900
>> From: chunsj at embian.com
>> To: squeak-dev at lists.squeakfoundation.org
>> Subject: [Q] Adding SOAP as module of KomHttpService(like Seaside)
>>
> Hi,
>
> How can I add soap processing module to KomHttpService as Seaside so
> that I can assign "/soap" as url for soap. For example Seaside
> uses "/seaside" for its service url for KomHttpService. What I want to
> do is use same port number for seaside and soap, only url be different.
>
> Sorry for my poor English and Thanks in advance.
>>
> ------------------------------------------------------------------------
> Live Earth is coming. Learn more about the hottest summer event - only
> on MSN. Check it out!
> <http://liveearth.msn.com?source=msntaglineliveearthwlm>
> ------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGd45bQqspS1+XJHgRAhhJAJ45oRpjheyz4hkMxY4/8Oy/WJLmfwCgpZfZ
c3N0E7IxZ+dDqtspFG6bSSg=
=BMEZ
-----END PGP SIGNATURE-----
More information about the Squeak-dev
mailing list
|