I'm using VAST 8.0.3 and having problems consuming a third party WS which uses a WSLD with a document/literal wrapped schema. I've been through the WS' help, first the examples then the whole documentation without luck for a couple of days.
As i undestand VAST WS deals with this kind of schema in a different way, there's a special instance creation message on SstWSContainer to set up the container.
I'm getting a debugger at some point and i'm at dead end. Has anyone faced this situation?
- Code: Select all
[
| aContainer aServiceCollection containerName |
SstWSContainer clearAll.
containerName := SciSocketManager default getHostName.
aContainer := SstWSContainer containerNamed: containerName ifNone: [ SstWSContainer createContainerUsingDocLiteralWrappedNamed: containerName ].
aServiceCollection := aContainer deploy: 'http://www.holidaywebservice.com/Holidays/US/Dates/USHolidayDates.asmx?WSDL'.
(aServiceCollection first invoke: 'GetAbrahamLincolnsBirthday' withArguments: (Array with: '2007')) inspect
] fork
Here's another example
- Code: Select all
[
| aContainer aServiceCollection containerName schemas datesSchema mappedElement |
SstWSContainer clearAll.
containerName := SciSocketManager default getHostName.
aContainer := SstWSContainer containerNamed: containerName ifNone: [ SstWSContainer createContainerUsingDocLiteralWrappedNamed: containerName ].
aServiceCollection := aContainer deploy: 'http://demo.argentinaclearing.com.ar/webservice/businessservices.asmx?WSDL'.
schemas := (aContainer serializationManager schemas at: 'https://www.argentinaclearing.com.ar/webservice/businessservices.asmx') content.
datesSchema := schemas detect: [ :s | s name = 'Fechas' ].
mappedElement := datesSchema asMappedElement.
mappedElement TipoFecha: 1.
mappedElement Parametro1: 1.
mappedElement Parametro2: 1.
(aServiceCollection first invoke: 'Fechas' withArguments: (Array with: mappedElement)) inspect
] fork
Thanks in advance for your help and time,
Francisco