get data value from webservice using Python zeep

Hi all, Please help me I’d like using python zeep to get  data value from web service, for a simple example , getObject. below is my partial code wsdl = “http://xxx.xxx.xxx.xxx:7001/CoreService/services/BusinessObject?WSDL” client = Client(wsdl,transport=Transport(session=session)) request_data = {        “requests”: {                  “classIdentifier”:”Users”,                  “objectNumber”: “W110023”         } } client.service.getObject(request_data) but the data I get is with no field name, so I cannot parse the response value. like this

{
    'messageId': None,
    'messageName': None,
    'statusCode': 'SUCCESS',
    'sessionParameters': [],
    'generalParameters': [],
    'notes': [],
    'exceptions': [],
    'warnings': [],
    'responses': [
        {
            'agileObject': {
                'objectIdentifier': {
                    'classId': 11610,
                    'className': 'User',
                    'classDisplayName': 'User',
                    'objectId': 18528835,
                    'objectName': 'w110023',
                    'objectVersion': None,
                    'version': '38'
                },
                '_value_1': [
                    'w110023',
                    {
                        'listName': None,
                        'selection': [
                            {
                                'id': 1,
                                'apiName': 'ACTIVE',
                                'value': 'Active'
                            }
                        ]
                    },
                    '台中廠國外業務部亞洲課專員',

can anybody please teach me and show me  example code that can correctly return value with field name  like SoapUI:

get data value from webservice  using Python zeep

https://ibb.co/x2mZ4W4

Agile User Asked on September 9, 2020 in Webservices.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.