Ok. Try again. I was well off the mark earlier.   :o|

In the example the AddressBook is self populating, it doesnt exist and isnt
populated until I run GetAddress... (is this right?).

What I want to do is remove the creation of AddressBook, (and its
population), into a separate class that I can run (with a main method) so I
know the AddressBook exists and is populated. So I've removed the addEntry
lines from AddressBook constructor, so I can do it in my own separate class.
Then I want to run GetAddress and talk to *that* AddressBook that I've
already created and populated, but it tells me the AddressBook is null, IE
it cant find the one that I've just created.....

Thanks hugely again for any help...

Cheers.



----- Original Message -----
From: "Tom Myers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "soap" <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 1:17 PM
Subject: Re: Running with separate SOAP stacks?


> At 12:00 PM 6/26/2001 +0100, Dylan J Browne wrote:
> >Hi,
> >
> >This is a difficult question to put into words, especially as I am
new-ish
> >to SOAP, but I'll try....
> >
> >All the examples given with SOAP2.2, and all the others I can find on the
> >web, are run using a single SOAP implementation(Ie on one machine)...
>
> >  .....So using the AddressBook example, I would want to
> >create a number of Address objects ....which would be created on a
> >device, eg device1.
> >
> >Then I would want to create a GetAddress example on another device,
device2
> ...
>
> I'm not sure what you mean by saying that the examples run on one machine.
> The AddressBook objec, as part of the service, does need to be deployed on
> one particular machine, the server for that service; that service carries
> with it a JVM with a classpath, and samples.addressbook.AddressBook needs
> to be available to that JVM on that machine. However, when you run the
> PutAddress and GetAddress and so on, they communicate with the server via
> http, so they can live on device2, device3, .. deviceN, and the service
> (i.e., the AddressBook object, with whatever Address objects it contains)
> does not know and does not care.  Thus I have no trouble running a SOAP
> service on this machine and a client on another machine connected via
> ethernet...but maybe I'm just not understanding the difficulty.
>
> Tom Myers
>
>

Reply via email to