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
It would be helpful to allow a plugin to alter the args when a method is called before they've been converted to XML within _SoapClient.invokehere before binding.get_message is called. My use case is that I want to be able to inject the credentials for the API I'm using into every message without having to add them to the payload manually every time.
If I'm overthinking things and there's a better way/place to add this functionality, I'd love to hear it.
The text was updated successfully, but these errors were encountered:
Hi @Adrian-at-CrimsonAuzre, thanks for opening an issue. Can you add a short psuedo code example of what you're doing today and what the proposed plugin interface would look like?
We ended up going with a different vendor that does not use SOAP, so our need for this feature has vanished. This is roughly what I had in mind though:
Then when you register a plugin and override invoked, you can modify the object you are passing to the service before it's parsed to XML. In my case, adding a static Credentials object to everything that gets sent so it didn't need to be manually set with every call to the API.
It would be helpful to allow a plugin to alter the args when a method is called before they've been converted to XML within
_SoapClient.invoke
here beforebinding.get_message
is called. My use case is that I want to be able to inject the credentials for the API I'm using into every message without having to add them to the payload manually every time.If I'm overthinking things and there's a better way/place to add this functionality, I'd love to hear it.
The text was updated successfully, but these errors were encountered: