-
Notifications
You must be signed in to change notification settings - Fork 75
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
Wrong Type in attribute type, expected qname #47
Open
Ghaliger opened this issue
Dec 12, 2019
· 0 comments
· Fixed by willemdj/erlsom#94 · May be fixed by #53
Open
Wrong Type in attribute type, expected qname #47
Ghaliger opened this issue
Dec 12, 2019
· 0 comments
· Fixed by willemdj/erlsom#94 · May be fixed by #53
Comments
danielfinke
added a commit
to 2600hz/erlang-soap
that referenced
this issue
Jun 26, 2024
Fixes bet365#47 When using `soap:erlang2wsdl` on the referenced `.hrl`, a crash occurs as described in the above issue. This is because the nesting of the translated `hobbies` field is doubled up; the return value from `erlsom_type2xsd:translateType/2` has the `MinOccurs`/`MaxOccurs` wrapper applied twice for lists. Ignore the list element type's `MinOccurs`/`MaxOccurs` and use the 0 and unbounded values, for lists, respectively. This will produce the same result as shown on https://github.com/bet365/soap/blob/6848d29d9d123c37f22b309f19de848f6309b66a/doc/generating_a_wsdl.md?plain=1#L160. [Source .hrl](https://github.com/bet365/soap/blob/856b5c418d8d40a6b5bcbbe3fd390c6a0b8d4f18/test/soap_SUITE_data/store.hrl)
danielfinke
added a commit
to 2600hz/erlang-erlsom
that referenced
this issue
Jun 26, 2024
For bet365/soap#47 When using `soap:erlang2wsdl` on the referenced `.hrl`, a crash occurs as described in the above issue. This is because the nesting of the translated `hobbies` field is doubled up; the return value from `erlsom_type2xsd:translateType/2` has the `MinOccurs`/`MaxOccurs` wrapper applied twice for lists. Ignore the list element type's `MinOccurs`/`MaxOccurs` and use the 0 and unbounded values, for lists, respectively. This will produce the same result as shown on https://github.com/bet365/soap/blob/6848d29d9d123c37f22b309f19de848f6309b66a/doc/generating_a_wsdl.md?plain=1#L160. [Source .hrl](https://github.com/bet365/soap/blob/856b5c418d8d40a6b5bcbbe3fd390c6a0b8d4f18/test/soap_SUITE_data/store.hrl)
danielfinke
added a commit
to 2600hz/erlang-erlsom
that referenced
this issue
Jun 26, 2024
For bet365/soap#47 When using `soap:erlang2wsdl` on the referenced `.hrl`, a crash occurs as described in the above issue. This is because the nesting of the translated `hobbies` field is doubled up; the return value from `erlsom_type2xsd:translateType/2` has the `MinOccurs`/`MaxOccurs` wrapper applied twice for lists. Ignore the list element type's `MinOccurs`/`MaxOccurs` and use the 0 and unbounded values, for lists, respectively. This will produce the same result as shown on https://github.com/bet365/soap/blob/6848d29d9d123c37f22b309f19de848f6309b66a/doc/generating_a_wsdl.md?plain=1#L160. [Source .hrl](https://github.com/bet365/soap/blob/856b5c418d8d40a6b5bcbbe3fd390c6a0b8d4f18/test/soap_SUITE_data/store.hrl)
jamesaimonetti
pushed a commit
to 2600hz/erlang-erlsom
that referenced
this issue
Jul 11, 2024
For bet365/soap#47 When using `soap:erlang2wsdl` on the referenced `.hrl`, a crash occurs as described in the above issue. This is because the nesting of the translated `hobbies` field is doubled up; the return value from `erlsom_type2xsd:translateType/2` has the `MinOccurs`/`MaxOccurs` wrapper applied twice for lists. Ignore the list element type's `MinOccurs`/`MaxOccurs` and use the 0 and unbounded values, for lists, respectively. This will produce the same result as shown on https://github.com/bet365/soap/blob/6848d29d9d123c37f22b309f19de848f6309b66a/doc/generating_a_wsdl.md?plain=1#L160. [Source .hrl](https://github.com/bet365/soap/blob/856b5c418d8d40a6b5bcbbe3fd390c6a0b8d4f18/test/soap_SUITE_data/store.hrl)
danielfinke
added a commit
to 2600hz/erlang-soap
that referenced
this issue
Jul 18, 2024
Fixes bet365#47 - update to latest `erlsom` with fix for 2x-nested translation of record list fields - fix crash when generating WSDL from `store.hrl` - regenerate doc/test clients/servers/headers based on new `erlsom` - amend tests based on regen'd files - start/stop `ssl` app per suite to make a lot of tests pass
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running
soap:erlang2wsdl("store.hrl", "store", "http://localhost:8080")
in the examples provided for generating an WSDL from Erlang specifications, i get this error:** exception throw: {error,"Wrong Type in attribute type, expected qname, got {{qname,\"http://www.w3.org/2001/XMLSchema\",\"string\",undefined,undefined},\n undefined,undefined}"} in function erlsom_write:processAttributes/5 (src/erlsom_write.erl, line 435) in call from erlsom_write:processAlternativeValue/8 (src/erlsom_write.erl, line 306) in call from erlsom_write:processElementValues/7 (src/erlsom_write.erl, line 239) in call from erlsom_write:struct2xml/6 (src/erlsom_write.erl, line 130) in call from erlsom_write:processAlternativeValue/8 (src/erlsom_write.erl, line 326) in call from erlsom_write:processElementValues/7 (src/erlsom_write.erl, line 239) in call from erlsom_write:struct2xml/6 (src/erlsom_write.erl, line 114) in call from erlsom_write:processAlternativeValue/8 (src/erlsom_write.erl, line 326)
The text was updated successfully, but these errors were encountered: