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

Issue parsing wsdl #69

Open
chaz8080 opened this issue Apr 16, 2019 · 1 comment
Open

Issue parsing wsdl #69

chaz8080 opened this issue Apr 16, 2019 · 1 comment
Labels

Comments

@chaz8080
Copy link

I have a wsdl url that seems to be leaving several fields empty when calling init_model: http://services.chromedata.com:80/Description/7a?WSDL

Steps to replicate:

iex> wsdl_path = "http://services.chromedata.com:80/Description/7a?WSDL"
iex> {:ok, wsdl} = Soap.init_model(wsdl_path, :url)
{:ok,
 %{
   complex_types: [],
   endpoint: "",
   messages: [],
   namespaces: %{},
   operations: [],
   schema_attributes: %{
     element_form_default: "qualified",
     target_namespace: "urn:description7a.services.chrome.com"
   },
   soap_version: "1.1",
   validation_types: %{}
 }}
@Nitrino Nitrino added the bug label Apr 17, 2019
@chaz8080
Copy link
Author

The issue seems to be that this particular wsdl has valid namespaces, but none of the prefixes are present. Line 221 of wsdl.ex prepends the prefixes with the namespaces, and since they aren't there in the wsdl, most of the xpath queries return nothing:

defp ns(name, namespace), do: "#{namespace}:#{name}"

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

No branches or pull requests

2 participants