You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I am neither an expert in rust or WSDL, the approach is of course pretty naive, but at least it now runs without crashing. The generated code however seems to be wrong. The result should represent a list of type OrderHandle.
Maybe the problem is the interpretation of a sequence as a struct, whereas it can sometimes also represent a list? Maybe the parse_sequence function could check for the according attributes (i.e. minOccurs and maxOccurs) to check whether the result should be a struct, a list or an optional type, and then call e.g. parse_list accordingly.
If you could point me into the right direction I would be happy to implement the fix myself.
The text was updated successfully, but these errors were encountered:
Hi!
I get an compile error when parsing the following WSDL file: http://api.betdaq.com/v2.0/API.wsdl
Specifically, this seems to be the problematic part:
This is the error message I get:
I played a little with the code mentioned in the error message, i.e. xsd-parser/src/parser/sequence.rs:43:18. I added a case to
RsEntity::Struct
:Since I am neither an expert in rust or WSDL, the approach is of course pretty naive, but at least it now runs without crashing. The generated code however seems to be wrong. The result should represent a list of type
OrderHandle
.Maybe the problem is the interpretation of a
sequence
as a struct, whereas it can sometimes also represent a list? Maybe theparse_sequence
function could check for the according attributes (i.e.minOccurs
andmaxOccurs
) to check whether the result should be a struct, a list or an optional type, and then call e.g.parse_list
accordingly.If you could point me into the right direction I would be happy to implement the fix myself.
The text was updated successfully, but these errors were encountered: