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

Panics trying to generate from ws-discovery.wsdl #157

Open
Alibirb opened this issue Jan 28, 2024 · 0 comments
Open

Panics trying to generate from ws-discovery.wsdl #157

Alibirb opened this issue Jan 28, 2024 · 0 comments

Comments

@Alibirb
Copy link

Alibirb commented Jan 28, 2024

When trying to generate code for https://github.com/lumeohq/onvif-rs/blob/main/wsdl/ws-discovery.wsdl, I get:

thread 'main' panicked at wsdl-parser/src/generator/function.rs:53:17:
internal error: entered unreachable code: No present in ONVIF

I added a debugging line and found that the operation it fails on is:

Operation {
    node: Element { tag_name: {http://schemas.xmlsoap.org/wsdl/}operation, attributes: [Attribute { name: name, value: "HelloOp" }], namespaces: [Namespace { name: Some("tns"), uri: "http://schemas.xmlsoap.org/ws/2005/04/discovery" }, Namespace { name: Some("wsa"), uri: "http://schemas.xmlsoap.org/ws/2004/08/addressing" }, Namespace { name: Some("wsdl"), uri: "http://schemas.xmlsoap.org/wsdl/" }, Namespace { name: Some("xs"), uri: "http://www.w3.org/2001/XMLSchema" }] },
    ty: Notification {
        output: Param {
            node: Element { tag_name: {http://schemas.xmlsoap.org/wsdl/}output, attributes: [Attribute { name: message, value: "tns:HelloMsg" }, Attribute { name: {http://schemas.xmlsoap.org/ws/2004/08/addressing}Action, value: "http://schemas.xmlsoap.org/ws/2005/04/discovery/Hello" }], namespaces: [Namespace { name: Some("tns"), uri: "http://schemas.xmlsoap.org/ws/2005/04/discovery" }, Namespace { name: Some("wsa"), uri: "http://schemas.xmlsoap.org/ws/2004/08/addressing" }, Namespace { name: Some("wsdl"), uri: "http://schemas.xmlsoap.org/wsdl/" }, Namespace { name: Some("xs"), uri: "http://www.w3.org/2001/XMLSchema" }] },
        },
    },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant