You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am very new to Go and unable to find help on other sources. I am trying to create go code with standard vim25.wsdl file. It generated the go code successfully. Two structures are here..
type RetrieveServiceContentRequestType struct {
XMLName xml.Name xml:"urn:vim25 RetrieveServiceContentRequestType"
This *ManagedObjectReference `xml:"_this,omitempty"`
}
type ManagedObjectReference struct {
XMLName xml.Name xml:"urn:vim25 ManagedObjectReference"
Value string
Type string `xml:"type,attr,omitempty"`
}
Now I am unable to assign values to RetrieveServiceContentRequestType as follows with following error:
client := mysoap.NewVimPortType("https://myvc/sdk", true)
Error xml: name "_this" in tag of mysoap.RetrieveServiceContentRequestType.This
conflicts with name "ManagedObjectReference" in *mysoap.ManagedObjectReference.X
MLName
Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
I am very new to Go and unable to find help on other sources. I am trying to create go code with standard vim25.wsdl file. It generated the go code successfully. Two structures are here..
type RetrieveServiceContentRequestType struct {
XMLName xml.Name
xml:"urn:vim25 RetrieveServiceContentRequestType"
}
type ManagedObjectReference struct {
XMLName xml.Name
xml:"urn:vim25 ManagedObjectReference"
}
Now I am unable to assign values to RetrieveServiceContentRequestType as follows with following error:
client := mysoap.NewVimPortType("https://myvc/sdk", true)
Error xml: name "_this" in tag of mysoap.RetrieveServiceContentRequestType.This
conflicts with name "ManagedObjectReference" in *mysoap.ManagedObjectReference.X
MLName
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: