解析一段wsdl数据:
 
 operation_content['input'][operation_name]=
 transferNotification{
    agentRegistrationId: str,
    agentRegistrationKey: str,
    queueId: str,
    notificationType: str,
    sequenceNumber: positiveInteger,
    attachmentProperties: attachmentProperties,
    extensions: [
        u'extension'
    ],
    notificationContent: anyURI
} 
 type(operation_content['input'][operation_name])
<class 'pysimplesoap.helpers.Struct'>
现在想要提取 ‘agentRegistrationId’ 等字典内容,如何解析?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
你可以尝试 print operation_content'input'.__dict__ 看下是否能得到一些有用信息。
实在不行就看源码文件pysimplesoap.helpers是否有转换方法