PyXB AssertionError:中没有元素绑定http://www.w3.org/1999/xhtm

2024-05-15 17:55:04 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用PyXB为WSDL生成绑定,它在标题中给出了AssertionError异常。在

根据PyXB文档,我的理解是,http://www.w3.org/1999/xhtml的bundle归档包含在PyXB中。然而,似乎出了问题。它要么没有被使用,要么内容不正确。在

我使用以下命令行尝试生成绑定:

python c:\Python27\Scripts\pyxbgen.py --wsdl-location=http://xx.xxx.xxx.xxx/YYY.asmx?WSDL --module=client --write-for-customization

回溯:

^{pr2}$

此外,我还将PYXB_ARCHIVE_PATH环境变量设置为:

C:\Python27\Lib\site-packages\pyxb\bundles\common\raw

我不确定这样做是否正确。我还尝试指定--archive path命令行选项,但我返回了相同的错误。在


Tags: 命令行文档orghttp标题wwwwsdlxxx