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

WSDL - #26

Open
ulutomaz opened this issue May 11, 2017 · 1 comment
Open

WSDL - #26

ulutomaz opened this issue May 11, 2017 · 1 comment

Comments

@ulutomaz
Copy link

Hi,

while trying to go with the procedure, I get an error while calling soap:wsdl2erlang("<local fs .wsdl>")


.
.
.
Which http client must be used?
1: ibrowse
2: inets
Select a number: 1
** exception error: no match of right hand side value {error,[{exception,{error,"Unexpected attribute (not namespace qualified): final"}},
{stack,[schemaType]},
{received,{startElement,"http://www.w3.org/2001/XMLSchema",
"simpleType","xs",
[{attribute,"final",[],[],"restriction"},
{attribute,"name",[],[],"LocationServiceType"}]}}]}


Though, if I use SoapUI with this wsdl and it works.

This error is something that I don't know how to interpret.

I am really not sure how to proceed

Best

@willemdj
Copy link
Contributor

This is probably an error in erlsom, the XML parser. It should accept the 'final' attribute here (as it does elsewhere).

The solution is easy (if not very satisfactory): simply remove it. The 'final' attribute imposes some restrictions on the messages, but erlsom will not enforce those anyway. Erlsom does do quite a few checks on the structure of the messages, but it is not exhaustive, see the limitations listed in the erlsom README.

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