SOAP for multiple images on the same host

Masashi Umezawa umejava at mars.dti.ne.jp
Sun Mar 3 12:04:51 UTC 2002


Hi,

Following is the repost of my reply to the original question.

----- Original Message -----
From: "Bloom, Lyle" <lbloom at grci.com>
To: <umejava at mars.dti.ne.jp>
Sent: Saturday, March 02, 2002 12:21 AM
Subject: [SoapOpera] feedback

> Thank you for your SOAP implementation!! I do have some questions. Can
> this be used for communication between two images on the same host? Is the
> PORT used in this context? How do I interpret the port setting for Windows
> and Linux hosts?

SoapOpera uses 8823 as a default port.
So, If you would like to run two images on the same machine, you should
explicitly set the unused ports to SoapOpera images.

Changing the port is simple: SoapSetting defaultPort: 1212 (or something you
like).

Example:
First, you run the SoapOpera without explicit setting. (8823 will be used).
Second, you run the SoapOpera after setting the default port to 1212.

In the first image,
SoapExampleServiceImpl registerAllServices.

In the Second image,
SoapSetting defaultPort: 1212.
SoapExampleServiceImpl registerAllServices.

If you would like to access from the first image to the second one:
SoapExampleClient port: 1212.
SoapExampleClient new callHelloWorld.

The inverse way:
SoapExampleClient port: 8823.
SoapExampleClient new callHelloWorld.

Hope this helps,
---
[:masashi | ^umezawa]








More information about the Squeak-dev mailing list