简体   繁体   English

python ZEEP:SOAP响应中未从XML将GUID解析为JSON

[英]python ZEEP: GUID not parsed from XML to JSON in SOAP response

I am connecting to a SOAP web service using the ZEEP library for python and found that one of the fields that is returned in the XML is not parsed correctly. 我正在使用ZEEP库(用于python)连接到SOAP Web服务,发现未正确解析XML中返回的字段之一。 I have copied the fragment from the XML response below, as well as the parsed JSON. 我已经从下面的XML响应以及已解析的JSON复制了片段。

Also refer to https://gist.github.com/bsteverink/dede1f3341828d069a502f16ccc5da0b for the full demonstration as per instruction in the ZEEP documentation. 另请参阅https://gist.github.com/bsteverink/dede1f3341828d069a502f16ccc5da0b ,以获取ZEEP文档中的完整演示。

I am using Zeep 2.0.0. 我正在使用Zeep 2.0.0。

The fragment that is returned from the SOAP service: 从SOAP服务返回的片段:

<GetDataExchangeQueryResultRow>
    <DataType>System.Guid</DataType>
    <ReturnObject xmlns:q1="http://microsoft.com/wsdl/types/" xsi:type="q1:guid">16fed64c-9b6d-4383-bdd1-fd5cde084afe</ReturnObject>
    <DisplayName>Auto_ID</DisplayName>
</GetDataExchangeQueryResultRow>

The JSON result from the client: 客户端的JSON结果:

{
    'DataType': 'System.Guid',
    'ReturnObject': [],
    'DisplayName': 'Auto_ID'
}

Any tips, hints would be welcome. 任何提示,提示都将受到欢迎。

该库的作者指出,我需要将该库更新为github master。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM