I am trying to modify various XML files corresponding to an OGC service capability such as WFS or WMS.
My script publishes an SD file onto a non federated server that I connect to using the Server class from arcgis.gis.server.
My goal is to manipulate various XML versions with python from within my script but I can't get them.
The ArcGIS server doc (https://enterprise.arcgis.com/en/server/latest/publish-services/windows/available-wms-service-properties.htm#ESRI_SECTION1_4DDC3A0DADF2495D841A02AE0725670D ===> Create external capabilities files) discribes the workflow I'm trying to implement in python.
Q1: Is there a way to retrieve the XML from the service class?
Q2: If not, how would I go about getting the XML with python?
My issue is the get request to the capability:
https://gisserver.domain.com:6443/arcgis/services/folder/service/service_ type/WMSServer/ ?service=wms&request=GetCapabilities&version=1.0.0
returns an error because I'm missing headers in the request.
Any tips are highly appreciated!