Overview of web service support for consuming WSDL
Gosu code can import web services (SOAP APIs) from external systems and call these services as a SOAP client, which is an API consumer. The Gosu language handles all aspects of object serialization, object deserialization, basic authentication, and SOAP fault handling.
The following example
uses a hypothetical web service SayHello.
// Get a reference to the service in the package namespace of the WSDL
var service = new example.gosu.wsi.myservice.SayHello()
// Set security options
service.Config.Http.Authentication.Basic.Username = "jms"
service.Config.Http.Authentication.Basic.Password = "b5"
// Call a method on the service
var result = service.helloWorld()
See also
