-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespace problem #243
Comments
+1 |
1 similar comment
+1 |
Hi guys, I'm facing that kind of issue too. For example, your SOAPEnvelope struct should be something like that, notice the soapenv in the xml struct tag : type SOAPEnvelope struct {
XMLName xml.Name `xml:"soapenv:Envelope"`
XmlNS string `xml:"xmlns:soapenv,attr"`
XmlCustomNS string `xml:"xmlns:end,attr"`
Header *SOAPHeader
Body SOAPBody
}
type SOAPHeader struct {
XMLName xml.Name `xml:"soapenv:Header"`
Headers []interface{}
}
type SOAPBody struct {
XMLName xml.Name `xml:"soapenv:Body"`
...
} You will need to set your XmlCustomNS in the SOAPEnv instance : Line 418 in 0f6b60e
envelope := SOAPEnvelope {
XmlNS: XmlNsSoapEnv,
XmlCustomNS: "http://enduser.service.web.vcp.netcup.de/",
} I'm kinda thinking it could be a good use of the new golang generics : define your types and pass them at runtime to the soap Client... keep an eye on my fork, if I get around to implement that. For Line 206 in 0f6b60e
That's where the "xmlns="url..." comes from, but we want a prefix to the xml tag name instead.
|
this is related to an issue on the main branch hooklift#243 We are just hardcoding a fix for opengi use within the org
During testing, I found the following error:
Results in the following generated Request (getVServers)
But it should be generated into something like this to work:
Can I configure the SOAP Client to use the right namespaces (soapenv and end)?
The text was updated successfully, but these errors were encountered: