Missing Alternate TagMissing Alternate TagMissing Alternate TagMissing Alternate TagMissing Alternate TagMissing Alternate TagMissing Alternate TagMissing Alternate Tag

SoapOperaServices

SoapOpera Web Services:


In this server, some SOAP services are running on port 8823.
Yes, they are completely written in Squeak!

Services are:


For details, see SoapOpera Examples (no WSDLs...sorry!)

After instaling SoapOpera, you can try client codes.

"Print it"
| call |
call := (SoapCallEntry tcpHost: 'swikis.ddo.jp' port: 8823) newCall.
call methodName: 'helloWorld'.
call invokeAndReturn.

More Examples are found in '_samples_' directory.
You can even see a Google API Cliet example.
| googleKey searchKey call |
googleKey := 'gAE2CMNBd1xA+bRPXOmLkmT9+X8Y3bwG'. "your Google API registration key"
searchKey := 'squeak'. "search words"

call := (SoapCallEntry tcpHost: 'api.google.com' port: 80) newCall.
call targetObjectURI: 'http://api.google.com/search/beta2'.
call namespace: 'urn:GoogleSearch'.
call methodName: 'doGoogleSearch'.
call addParameters: {
    {#key. googleKey}.
    {#q. searchKey}. 
    {#start. 0. 'xsd:int'}.
    {#maxResults. 10. 'xsd:int'}.
    {#filter. true}.
    {#restrict. ''}.
    {#safeSearch. false}.
    {#lr. ''}.
    {#ie. 'latin1'}.
    {#oe. 'latin1'}
}.
call invokeAndReturn


See also: Spray (Dolphin Smalltalk SOAP) Interop with SoapOpera (WSDLs are there)
___
[:masashi | ^umezawa]

-----------

Links to this Page