gowsdl
gowsdl copied to clipboard
Invalid code generated against training.gov.au web service.
The go code produced by the following is not compilable:
curl https://ws.training.gov.au/Deewr.Tga.WebServices/OrganisationServiceV7.svc?singleWsdl > org.wsdl
gowsdl -i org.wsdl
The output is:
🍀 Reading file /Users/zaddok/training/gowsdl/org.wsdl
🍀 [WARN] Don't know where to find XSD for http://schemas.datacontract.org/2004/07/System
🍀 [WARN] Don't know where to find XSD for http://schemas.microsoft.com/2003/10/Serialization/Arrays
🍀 [WARN] Don't know where to find XSD for http://training.gov.au/services/
🍀 [WARN] Don't know where to find XSD for http://schemas.datacontract.org/2004/07/Deewr.Tga.Model
🍀 [WARN] Don't know where to find XSD for http://training.gov.au/services/5/
🍀 [WARN] Don't know where to find XSD for http://schemas.microsoft.com/2003/10/Serialization/
🍀 [WARN] Don't know where to find XSD for http://schemas.microsoft.com/2003/10/Serialization/
🍀 [WARN] Don't know where to find XSD for http://training.gov.au/services/7/
🍀 6103:2: expected type, found 'type'
The offending line of code that is generated is:
type TrainingComponentTypes *
Im not overly familiar with SOAP/WSDL, but there does appear to be some weirdness with redirection from http to https.