2> soap:wsdl2erlang("false.wsdl").
What must be generated?
1: client
2: server
3: both
Select a number: 1
Do you want to generate test stubs/skeletons?
1: no
2: yes, client only
3: yes, server only
4: yes, client and server
Select a number: 1
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,{"2 - Unexpected event, expected end-tag"}}},
{stack,['wsdl:definitions']},
{received,{startElement,"http://schemas.xmlsoap.org/wsdl/",
"message","wsdl",
[{attribute,"name",[],[],"personIn"}]}}]}
in function soap_parse_wsdl:get_services/3 (src/soap_parse_wsdl.erl, line 104)
in call from soap:wsdl2erlang/2 (src/soap.erl, line 305)
Moving wsdl:portType below all wsdl:message elements solve the issue.
But I don't see any order specification in the wsdl schema, so guess it's potentially a bug in soap model.
While trying to generate erlang modules from wsdl faced with the following scenario:
Moving
wsdl:portType
below allwsdl:message
elements solve the issue. But I don't see any order specification in the wsdl schema, so guess it's potentially a bug in soap model.