We were using the SOAP API's for communicating to SharePoint. The SharePoint was hosted on On-Premises server and evertyhing was working fine. Now the SharePoint is migrated to Cloud. To access the contents we need to pass the access_token. But I am not finding a way to pass the accessToken along with the request.
Our code is written in Java.
Code Snippet -
GetListItemsResponse.GetListItemsResult result = port.getListItems(listName, viewName, query, viewFields, rowLimit, queryOptions, webID);
After getting the ports by parsing the wsdl, we call the getListItems method. The getListItems method implementation is as below.
Could anyone suggest how to pass the accesstoken along with this API call.