Skip to content
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

Allow call with SOAP envelope #266

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

yousuf-particle
Copy link

soap.call method takes request argument and embeds the request in SOAPEnvelope.

/ /SOAP envelope capable of namespace prefixes
		soapEnvelope := SOAPEnvelope{
			XmlNS: XmlNsSoapEnv,
		}
		soapEnvelope.Headers = s.headers
		soapEnvelope.Body.Content = request
		envelope = soapEnvelope

This generates the message of the form :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <Headers>
        ............
 </Headers>
  </soap:Header>
  <soap:Body>
    <Content xmlns="">
     ......
    </Content>
  </soap:Body>
</soap:Envelope>

This PR allows the option to override this by passing in an envelope. Which would allow for removing and tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants