Skip to content

Parse WSDL Without Services #30

@greenyouse

Description

@greenyouse

I have some WSDLs that pull in services from other WSDLs using imports. When I try running soap:wsdl2erlang on the files, it errors out with:

** exception error: no function clause matching 
                    soap_parse_wsdl:'-services/1-lc$^0/1-0-'(undefined) (src/soap_parse_wsdl.erl, line 114)
     in function  soap_parse_wsdl:get_services/3 (src/soap_parse_wsdl.erl, line 105)
     in call from soap_parse_wsdl:get_services/3 (src/soap_parse_wsdl.erl, line 110)
     in call from soap:wsdl2erlang/2 (/tmp/soap/_build/default/lib/soap/src/soap.erl, line 305)

For reproduction I uploaded a modified version of the w3schools TempConverter WSDL from the docs. There's a services WSDL that contains all the services and an abstract WSDL with the rest of the code.

I'm not sure what the best way to handle this would be. In Java wsimport outputs class files for each service but since this outputs a file per WSDL maybe there's a way to merge abstract and service WSDLs? If this doesn't sound like a common use case then feel free to close it and I'll stick to editing the files by hand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions