Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ABAP consume local file as web service

I am trying to consume a local file (file://c:/xxx.html) as a web service using method CL_HTTP_CLIENT=>CREATE_BY_URL.  When I do that, I get the 'ARGUMENT_NOT_FOUND' exception returned.  I know the file exists and when I launch  it from the Windows start menu, it launches fine and I see the JSON output that I am expecting when I try to call it from ABAP.  Is there another way to address the file using this - or another - method?

Asking the question from the complete opposite direction; I have ABAP logic looking to see if a HID device (i.e. - signature pad) is attached to my PC via USB.  My web developer has supplied me with the local web service that will tell me if the device is attached (the file mentioned above), but it is not working.  Is there a more direct way to query the presentation server / local PC to see if an individual device is attached?  I thought maybe I could find the device listed in the registry (so I could read it using CL_GUI_FRONTEND_SERVICES methods) but so far had no luck in finding it there.

Any help would be appreciated.


Former Member
Not what you were looking for? View more on this topic or Ask a question