We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When generating a client for the Domibus.wsdl, wsdl-tsclient throws the following error: TypeError: Cannot use 'in' operator to search for 'undefined'
TypeError: Cannot use 'in' operator to search for 'undefined'
I reduced the wsdl to isolate the issue. You can reproduce it with the following minimal wsdl:
<?xml version='1.0' encoding='UTF-8'?> <wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://org.ecodex.backend/1_1/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" name="BackendService_1_1" targetNamespace="http://org.ecodex.backend/1_1/"> <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://org.ecodex.backend/1_1/" targetNamespace="http://org.ecodex.backend/1_1/"> <xsd:simpleType name="max255-non-empty-string"> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="255"/> </xsd:restriction> </xsd:simpleType> <xsd:element name="getStatusResponse" nillable="true" type="tns:max255-non-empty-string"/> </xsd:schema> </wsdl:types> <wsdl:message name="getStatusResponse"> <wsdl:part element="tns:getStatusResponse" name="getStatusResponse"> </wsdl:part> </wsdl:message> <wsdl:portType name="BackendInterface"> <wsdl:operation name="getStatus"> <wsdl:input message="tns:getStatusResponse" name="getStatus"> </wsdl:input> </wsdl:operation> </wsdl:portType> <wsdl:binding name="BackendService_1_1SoapBinding" type="tns:BackendInterface"> <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getStatus"> <soap12:operation soapAction="" style="document"/> <wsdl:output name="getStatusResponse"> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="BackendService_1_1"> <wsdl:port binding="tns:BackendService_1_1SoapBinding" name="BACKEND_PORT"> <soap12:address location="http://localhost:8081/domibus/services/backend"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
produces this compilation error:
TypeError: Cannot use 'in' operator to search for 'undefined' in max255-non-empty-string|xsd:string|minLength,maxLength
I tests it using "wsdl-tsclient": "1.3.1" and node v16.13.2
"wsdl-tsclient": "1.3.1"
v16.13.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When generating a client for the Domibus.wsdl, wsdl-tsclient throws the following error:
TypeError: Cannot use 'in' operator to search for 'undefined'
I reduced the wsdl to isolate the issue. You can reproduce it with the following minimal wsdl:
produces this compilation error:
I tests it using
"wsdl-tsclient": "1.3.1"
and nodev16.13.2
The text was updated successfully, but these errors were encountered: