elixir-soap / soap

SOAP client for Elixir programming language
MIT License
135 stars 75 forks source link

SalesForce metadata WSDL parsed incorrectly #109

Open adworse opened 1 year ago

adworse commented 1 year ago

First of all, thank you for this library!

I spotted an odd behaviour recently, though.

Parsing Salesforce Metadata WSDL (https://raw.githubusercontent.com/developerforce/Force.com-Toolkit-for-PHP/master/soapclient/metadata.wsdl.xml) gives pretty much data, but a list of available operations is empty.

This seems to be incorrect. The same file parsed with Ruby's wasabi SOAP library gives a correct list.

VitorTrin commented 9 months ago

I was able to get the list of operations by setting allow_empty_soap_actions in the options. The following worked for me:

{:ok, wsdl} = Soap.init_model("https://raw.githubusercontent.com/developerforce/Force.com-Toolkit-for-PHP/master/soapclient/metadata.wsdl.xml", :url, allow_empty_soap_actions: true)