utkarshohm / mf-platform-bse

Library to build a mutual fund transaction platform using the Bombay Stock Exchange StarMF platform and API
MIT License
79 stars 52 forks source link

ValueError: ('name cannot be None', <class 'zeep.xsd.elements.element.Element'>) #3

Open ankit167 opened 5 years ago

ankit167 commented 5 years ago

https://github.com/utkarshohm/mf-platform-bse/blob/4a20cd9e2c58586fddcfb68957604553be73797a/api.py#L1103

Link to zeep element.py- https://github.com/mvantellingen/python-zeep/blob/master/src/zeep/xsd/elements/element.py

debdutgoswami commented 4 years ago

@ankit167 Have you found the solution yet?

debdutgoswami commented 4 years ago
header = zeep.xsd.Element(
        "Header",
        zeep.xsd.ComplexType(
            [
                zeep.xsd.Element(
                    "{http://www.w3.org/2005/08/addressing}Action", zeep.xsd.String()
                ),
                zeep.xsd.Element(
                    "{http://www.w3.org/2005/08/addressing}To", zeep.xsd.String()
                ),
            ]
        ),
    )

This should be the revised code.