tiaguinho / gosoap

🦉SOAP package for Go
MIT License
507 stars 176 forks source link

How to use different SOAP version? #54

Closed diegovillam closed 4 years ago

diegovillam commented 4 years ago

Hello all,

I'm trying to use this package to make a request to a SOAP resource.

The payload of the request generated by this package starts with the header: <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

However the resource expects something looking like this, I believe SOAP 1.1 syntax: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">

Is there a way to define the schema used when instantiating the client to use the correct markup?