Closed okkdev closed 3 years ago
I'm having the exact same issue.
I noticed that the xsd
is not being parsed correctly.
Soap.Xsd.parse("wsdl/AbaConnectTypes.xsd")
|> IO.inspect()
{:ok, %{complex_types: %{}, simple_types: []}}
I attached the XSD file. AbaConnectTypes.zip
I solved the issue by manually changing the xml-body:
body = Soap.Request.Params.build_body(wsdl, operation, params, request_headers)
body = String.replace(body, "Envelope xmlns:", "Envelope xmlns:wsdl")
HTTPoison.post(url, body, request_headers, opts)
I guess that works, but I'd prefer a proper fix.
As a soap beginner I didn't notice at first, but apparently my xsd file is using the non standard xs
prefix instead of the xsd
prefix. Once I replaced these it worked fine.
Hi, I'm working with soap for the first time and struggling building a request with this library. I need my request to have a specific namespace to work. It should look like this:
But what I currently get is:
How can I add the
ns1
namespace?I attached the WSDL file. Customer.zip