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
Either prefixing each tag with ns: or adding ' xmlns="SaaS.Services"' to the envelope attributes solves the problem but I could no see how to get WSDL2GO to do this without altering the code. In the end I modified the Envelope struct definition and the doRoundTrip function in client.go to add the default namespace to the envelope attributes using the same namespace as the NSAttr attribute.
Am I missing something here?
The text was updated successfully, but these errors were encountered:
I used WSDL2GO to create a template from a WSDL for Ivanti Service Manager at https://portal.flycastpartners.com/HEAT/ServiceAPI/FRSHEATIntegration.asmx?WSDL.
The resulting calls failed because the parameters have no namespace and there is no default namespace directive in the envelope...
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="SaaS.Services" xmlns:tns="SaaS.Services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
SOAP-ENV:Body
User
Password
TenantId
Role
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Either prefixing each tag with ns: or adding ' xmlns="SaaS.Services"' to the envelope attributes solves the problem but I could no see how to get WSDL2GO to do this without altering the code. In the end I modified the Envelope struct definition and the doRoundTrip function in client.go to add the default namespace to the envelope attributes using the same namespace as the NSAttr attribute.
Am I missing something here?
The text was updated successfully, but these errors were encountered: