Problem with retrieving a blob field

I have a TBlob field (Note) on my entity (TsxeNote). This is lazy loaded so when I hit a record where it has not been loaded I call

AResponse := Await(TXDataClientResponse, WebClient.RawInvokeAsync(LUrl, []));

LUrl = http://localhost:3001/Essentials/sxeNote(1)/Note

pasting the url into the browser works as expected, but using the webclient in the webcore app returns

uncaught (in promise) {FMessage: 'Operation "http://localhost:3001/Essentials/sxeNote(1)/Note" not found', FHelpContext: 0, FJSError: Error: Operation "http://localhost:3001/Essentials/sxeNote(1)/Note" not found

Any ideas?

You should not use RawInvoke, that method receives the name of the operation in format <interface name>.<method name>, like IMyService.DoSomething.

In the case of the mentioned URL, you should just perform a regular HTTP(S) request to the server using vanilla HTTP components, no need to use TXDataWebClient for that.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.