Can Go Support WSDL/SOAP?
There is no direct support for WSDL in the Go programming language. Support for WSDL in other languages can be either static or dynamic. Static support involves pre-generating structs from the WSDL, while dynamic support creates structs on the fly using hash tables.
Workaround for SOAP Encoding and Decoding
Although WSDL support is absent, it is possible to manually encode and decode SOAP requests in Go. The standard encoding/xml package, however, may not suffice due to various server quirks and encoding limitations.
To overcome these limitations, the github.com/webconnex/xmlutil package can be used. It provides more flexibility by allowing you to specify that a particular server requires xsi types, effectively simplifying the process of encoding SOAP requests.
The above is the detailed content of Can Go Handle WSDL/SOAP Without Direct Support?. For more information, please follow other related articles on the PHP Chinese website!