Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore SoapClient last_received() function #79

Closed
waynesun09 opened this issue Jun 17, 2022 · 3 comments
Closed

Restore SoapClient last_received() function #79

waynesun09 opened this issue Jun 17, 2022 · 3 comments

Comments

@waynesun09
Copy link
Contributor

The last_received function have been removed with commit:

8eaf105

The last_received function could be used to extract sessionId, which could be used to set into soapheaders for reuse the session.

Example usage could be found:
https://github.com/RedHatQE/pylero/blob/main/src/pylero/session.py#L127

Please restore the function as can't find other way to get the sessionId from return message

@leelavg
Copy link

leelavg commented Jun 18, 2022

@phillbaker
Copy link
Member

phillbaker commented Jun 18, 2022 via email

waynesun09 added a commit to waynesun09/suds that referenced this issue Jun 19, 2022
This revert 8eaf105 with add back the two _SoapClient functions.

Also add back the messages attribute of the client class.

The messages attribute and two functions could be used to get the
send/reply message Document of soap request, which could be used to
get the element like 'sessionId' of a soap session.

Updated test_operation_request_and_reply with the messages
attribute and function check.

This resolves issue:
suds-community#79

Signed-off-by: Wayne Sun <[email protected]>
@waynesun09
Copy link
Contributor Author

@phillbaker PR raised, please help check, thanks

waynesun09 added a commit to waynesun09/suds that referenced this issue Jun 20, 2022
This revert 8eaf105 with add back the two _SoapClient functions.

Also add back the messages attribute of the client class.

The messages attribute and two functions could be used to get/set
the send/reply message Document of soap request, which could be
used to get the element like 'sessionId' of a soap session.

Updated test_operation_request_and_reply with the messages
attribute and function check.

This resolves issue:
suds-community#79

Signed-off-by: Wayne Sun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants