Tags: fiorix/wsdl2go
Tags
fix inline simpleType restriction resolving to string instead of base… … type Elements with inline <simpleType><restriction base="..."> were not resolving the base type, defaulting to string. Added SimpleType field to wsdl.Element and resolve the restriction base in genElementField. Fixes #146.
add SOAP faults, MTOM, MIME attachments, schema caching, proper date/… …time types, context methods, multiple PortTypes, typed enum consts, AnyType, short/int16 SOAP runtime: - detect and return *soap.Fault from HTTP 500 and inline fault responses - MTOM/XOP binary optimization with multipart encoding/decoding - MIME multipart attachment support (SwA) via RoundTripMIME - per-method context support: RoundTrip*Context variants - XSD date/time types (DateTime, Date, Time, Duration) with XML marshal/unmarshal and timezone tracking - AnyType struct preserving raw XML via InnerXML Code generation: - multiple PortTypes and Bindings per WSDL - typed enum constants instead of reflect-based Validate() - context-aware method variants (OpContext) for every operation - short -> int16, anyType/anySequence/anySimpleType -> *soap.AnyType - date/time types reference soap package instead of inline string aliases - schema download caching (--no-cache to disable) Updated README with current feature matrix.
Add support for new types, and bug fixes This commit adds support for token, anyURI, QName and unions as described in the README. The token and anyURI types are implemented as strings. The QName is currently implemented as a string too but we might have to change it whenever it causes trouble. The union type is currently implemented as an empty interface with a comment about the types accepted in the union. Later on we could have a validator for that. The "any" element of sequences in complex types is also supported now, as a slice of empty interfaces, and the nonNegativeInteger type is implemented as uint. Restricted elements of complex types are still not implemented, the likes of pattern matching (in a validation function) are lacking. Functions in interfaces and methods in structs are now sorted by name. This required a change in the memcache.golden file of unit tests. One more important thing is that elements without a type are automatically set to the string type. I dont know if this is right but it works for now. yolo Closes #20
Bug fixes Performing proper checks for methods having input and output parameters, avoiding crashes. Fixes #17. Compiling the code before calling gofmt, so we can print compiler error messages when bad code is generated. Fixing types defined in WSDL that contain illegal characters for the generated code (e.g. double dots in the type name). Also fixing parameter names that are reserved words in Go.
PreviousNext