I have written 5 CICS Web Services and need to provide examples on how to use them in the different code environments we have here. I've provided examples in ASP.net/C# and need to provide examples in VAST.
I tried to access the WSDL on the mainframe via a URI. But I get : "SGML Error #ResourceNotAvailable: 'Resource could not be accessed. PublicId=''http://. . .". I think this means I need to provide authentication details to access the WSDL on the mainframe - I do this in ASP.net when I consume the WSDL and when I access the services - so I would need to this in VAST. How do I provide USERID and PASSWORD? here is my workspace code:
[ | aContainer containerName aServiceCollection wsdl|
wsdl := 'http://mvsbsys1/cics31/. . ./wsdl/bwsi.wsdl'.
containerName := SciSocketManager default getHostName.
aContainer := SstWSContainer containerNamed: containerName ifNone: [SstWSContainer createContainerNamed: containerName using: SstWSContainerConfiguration defaultConfiguration].
aServiceCollection := aContainer deploy: wsdl.
(aServiceCollection first BWSRPINFOperationRequest) inspect ] fork.