Code: Alles auswählen.
DATA(lr_connection) = cl_swdcl_connection=>create_by_user(
EXPORTING
i_server = 'https://cloud.xxxx.de:443'
"p_proxy = i_proxy " Proxy (Server:Port)
i_user = 'ocduYYYYY' " Username
i_password = 'ZZZZZ' " Passwort
"i_server_path = '' " Serverpfad
"ip_http_client = ip_http_client " HTTP Client Abstraction
).
DATA(lo_client) = cl_swdcl_client=>get_instance( ip_connection = lr_connection ).
DATA(prop) = lo_client->get_property_client( ).
DATA(mt_pro) = prop->get_properties(
EXPORTING
i_url = '/apps/files'
i_depth = '1' " Tiefe
).
Code: Alles auswählen.
DATA(lr_connection) = cl_swdcl_connection=>create_by_user(
EXPORTING
i_server = 'https://cloud.xxxx.de/remote.php'
"p_proxy = i_proxy " Proxy (Server:Port)
i_user = 'ocduYYYYY' " Username
i_password = 'ZZZZZ' " Passwort
i_server_path = ''/dav/files/ocduYYYYY" Serverpfad
"ip_http_client = ip_http_client " HTTP Client Abstraction
).
Code: Alles auswählen.
DATA(lr_connection) = cl_swdcl_connection=>create_by_user(
EXPORTING
i_server = 'https://cloud.xxxx.de/remote.php/dav/files/ocduYYYYY'
"p_proxy = i_proxy " Proxy (Server:Port)
i_user = 'ocduYYYYY' " Username
i_password = 'ZZZZZ' " Passwort
" i_server_path = ''" Serverpfad
"ip_http_client = ip_http_client " HTTP Client Abstraction
).
Code: Alles auswählen.
DATA(lr_connection) = cl_swdcl_connection=>create_by_user(
EXPORTING
i_server = 'https://cloud.xxxx.local' " "local=internes Netz; de = extern.
i_user = 'ocduYYYYY' " Username
i_password = 'ZZZZZ' " Passwort
).
DATA(lo_client) = cl_swdcl_client=>get_instance( ip_connection = lr_connection ).
DATA(prop) = lo_client->get_property_client( ).
DATA(mt_pro) = prop->get_properties(
EXPORTING
i_url = '/remote.php/dav/files/ocduYYYYY'
i_depth = '1' " Tiefe
).