I'm attempting to connect to a third party, non-Smalltalk web service for which I only have the WSDL.
The Is there a simple walkthrough that will guide me in wrapping this interface for use in VAST and setting up appropriate deserialization (the two paragraphs the Getting Started guide fail to discuss dealing with handling returned objects)?
Are you able to call the web service and get a soap message back? If you are unable to call it, what kind of error is returned?
Normally, a schema file (.xsd) is used to generate ST classes and a mapping file. The structure seen in the XML is being enforced by a schema file.
You mentioned 100 classes to be created, that would be a lot of work because if one expects ST to populate the variables automatically, the ivars would have to made public in the public interface editor.
Step 1 is get the soap message.
Step 2 is get the schema file that enforces the structure of the XML you see in the SOAP message.
| container ddStrategy mapping spec |
container := SstWSContainer createContainerNamed: 'SampleContainer' .
ddStrategy := SstWSVastServicesDeploymentDescriptorStrategy new.
mappingSpec := ddStrategy resolveMappingSpec: 'C:\myMappingSpec'.
container serializationManager addMappingSpec: mappingSpec named: mappingSpec nameSpaceURI.
Users browsing this forum: Yahoo [Bot] and 1 guest