Somehow I seem to have trouble getting the Web Services Example from
http://www2.instantiations.com/VAST/Docs/ws/websrvctfrm.htm
to work.
Most likely because I don't know where the hosts file should be located:
The examples in this guide specify URL resources using a host name of 'vasthost'. You must add a line to your 'hosts' file, or use any hostname valid for your environment in place of 'vasthost', in order to successfully execute the described examples.
I loaded the Config map 'z.St: Server, Web Services V 7.5.2 [99]'.
Debugging the example, the problem seems to be caused by
- Code: Select all
SstRemoteEndpoint fromUrl: 'http://www.capescience.com' sstAsUrl
Which produces "SstInvalidAddressError(ENOADDRESS (11004): No address or No Data)" although this service is available (http://www.capescience.com/AirportWeather.wsdl). Since this method is from 1998 and has a comment stating "Object sstToBeFixed" I could imagine the wrong protocol being used...
Did anybody get this example to work? Hints would be appreciated!
Regards, Vincent
P.S. The complete code:
- Code: Select all
|server|
server := SstHttpServerExample
runAt: 'http://:9999'
in: (AbtXmlConfiguration current defaultResourceQualifier).
[ | aContainer |
SstWSContainer clearAll.
aContainer := SstWSContainer
createContainerNamed: SciSocketManager default getHostName
using: (SstWSContainerConfiguration defaultConfiguration).
aContainer startUp.
aContainer inspect ] fork.
"SstWSContainer clearAll."
[ | aContainer aServiceCollection|
aContainer := SstWSContainer containerNamed: SciSocketManager default getHostName.
aServiceCollection := aContainer
deploy: 'http://www.capescience.com/AirportWeather.wsdl'.
( aServiceCollection first getSummary: 'NZCM' ) inspect] fork.