diff --git a/gowsdl.go b/gowsdl.go index 32aee6b..dbd139b 100644 --- a/gowsdl.go +++ b/gowsdl.go @@ -494,29 +494,30 @@ func goString(s string) string { } var xsd2GoTypes = map[string]string{ - "string": "string", - "token": "string", - "float": "float32", - "double": "float64", - "decimal": "float64", - "integer": "int32", - "int": "int32", - "short": "int16", - "byte": "int8", - "long": "int64", - "boolean": "bool", - "datetime": "soap.XSDDateTime", - "date": "soap.XSDDate", - "time": "soap.XSDTime", - "base64binary": "[]byte", - "hexbinary": "[]byte", - "unsignedint": "uint32", - "unsignedshort": "uint16", - "unsignedbyte": "byte", - "unsignedlong": "uint64", - "anytype": "AnyType", - "ncname": "NCName", - "anyuri": "AnyURI", + "string": "string", + "token": "string", + "float": "float32", + "double": "float64", + "decimal": "float64", + "integer": "int32", + "int": "int32", + "short": "int16", + "byte": "int8", + "long": "int64", + "boolean": "bool", + "datetime": "soap.XSDDateTime", + "date": "soap.XSDDate", + "time": "soap.XSDTime", + "base64binary": "[]byte", + "hexbinary": "[]byte", + "unsignedint": "uint32", + "nonnegativeinteger": "uint32", + "unsignedshort": "uint16", + "unsignedbyte": "byte", + "unsignedlong": "uint64", + "anytype": "AnyType", + "ncname": "NCName", + "anyuri": "AnyURI", } func removeNS(xsdType string) string {