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

Library can not parse older formatted WSDL files #110

Open
MehmetCagriK opened this issue Apr 24, 2023 · 1 comment
Open

Library can not parse older formatted WSDL files #110

MehmetCagriK opened this issue Apr 24, 2023 · 1 comment

Comments

@MehmetCagriK
Copy link

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.

@VitorTrin
Copy link

This seems to be soap 1.0. The lib states that the minimum supported version is 1.1.

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

No branches or pull requests

2 participants