hooklift / gowsdl

WSDL2Go code generation as well as its SOAP proxy
Mozilla Public License 2.0
1.14k stars 390 forks source link

Some complex types are missing the namespace #240

Closed go-aegian closed 2 years ago

go-aegian commented 2 years ago

This applies to cases where its expected to have nodes prefixed with the alias namespace or fully defined the namespace that it belongs to.

Any idea how to resolve this maybe in types_tmpl.go ?

This complex type does have the namespace when generated

Abstract base type for item identifiers. Should never be used in web base calls Generated Code type BaseItemIdType struct { XMLName xml.Name `xml:"http://schemas.microsoft.com/exchange/services/2006/types BaseItemId"` } ------------------------------------------------------------------ This complex type does not have the namespace when generated Generated Code type CalendarItemType struct { *ItemType UID string `xml:"UID,omitempty" json:"UID,omitempty"` type ItemType struct { MimeContent *MimeContentType `xml:"MimeContent,omitempty" json:"MimeContent,omitempty"` ItemId *ItemIdType `xml:"ItemId,omitempty" json:"ItemId,omitempty"` ParentFolderId *FolderIdType `xml:"ParentFolderId,omitempty" json:"ParentFolderId,omitempty"` ------------------------------------------------------------------ Generated xml HERE is missing xmlns="http://schemas.microsoft.com/exchange/services/2006/types"