In the function Soap.Wsdl.get_soap_namespace, the function searches for one of these URLs
@soap_version_namespaces %{
"1.1" => :"http://schemas.xmlsoap.org/wsdl/soap/",
"1.2" => :"http://schemas.xmlsoap.org/wsdl/soap12/"
}
However, older WSDL files do not have any of these lines since there were only one SOAP format back then. An example is: https://schemas.xmlsoap.org/ws/2005/04/discovery/ws-discovery.wsdl
This error, in return, causes program to give timeout error:
** (HTTPoison.Error) :timeout
(httpoison 1.8.2) lib/httpoison.ex:258: HTTPoison.request!/5
(soap 1.1.0) lib/soap/wsdl.ex:23: Soap.Wsdl.parse_from_url/2
iex:3: (file)
If I hack get_soap_namespace function to return 'soap' value as hardcoded return value, things work well, wsdl is parsed correctly.
In the function Soap.Wsdl.get_soap_namespace, the function searches for one of these URLs
However, older WSDL files do not have any of these lines since there were only one SOAP format back then. An example is: https://schemas.xmlsoap.org/ws/2005/04/discovery/ws-discovery.wsdl
This error, in return, causes program to give timeout error:
If I hack get_soap_namespace function to return 'soap' value as hardcoded return value, things work well, wsdl is parsed correctly.