Skip to main content
Solved

Custom Data Provider alternative in latest TX version


Hi everybody,

Our client uses a SOAP API from a supplier. While TX supports SOAP the extraction requires multiple steps and string manipulation. The complete process is:

  • For each table in the list of tables:
    • Call the first SOAP endpoint to retrieve the names of the fields in the table
    • Call the second SOAP endpoint to retrieve a page of data for the table
      • Split the data into individual rows by splitting the string on the ^ character
      • Split the rows into individual colums by splitting the string on the | character
      • Fetch until the number of rows returned is less than the page size
    • Move to next table

We created a custom data provider for the TX custom data connector. This works fine in TX 20.10, but is not supported in 6221, so we need to create an alternative. I’m aware that you can use RSD files for more advanced logic, but as far as I can see this doesn’t include an option to perform the string manipulation (splitting). For the time being, we’ve ported the logic to a Python script, but as this is external to TX it’s not a desirable solution.

What course of action do you suggest to implement this logic?

Best answer by rory.smith

Hi @MorganHeijdemann ,

for CData Connectors if you click the ? in the CData connection window, you get linked to the relevant CData documentation page for the CData provider you are using. These have a heading ‘API Script Reference’ which contains all the calls you can do. There are some examples in the CData documentation to get you started.

View original
Did this topic help you find an answer to your question?

5 replies

Thomas Lind
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 1035 replies
  • June 21, 2023

A RSD file can do string manipulation, there is a few functions that can manipulate what comes from a call. It will be a lot of work to set up though especially splitting out the whole result out into individual fields.

The option to use custom tables has not been applied yet, but it could be, it has been discussed internally. I think it is a bit in the future though.

If you can make a python script that generates a usable file, it could be a workaround for now.


Thomas Lind wrote:

A RSD file can do string manipulation, there is a few functions that can manipulate what comes from a call. It will be a lot of work to set up though especially splitting out the whole result out into individual fields.

I'd love to take a swing at this, even if it is a lot of work. Is there a comprehensive list of all the functions available for use in RSD files, besides the two tutorials?

And yes, a Python script is the next option as a workaround but not ideal since that's outside of TX. 


rory.smith
TimeXtender Xpert
Forum|alt.badge.img+7
  • TimeXtender Xpert
  • 662 replies
  • Answer
  • June 22, 2023

Hi @MorganHeijdemann ,

for CData Connectors if you click the ? in the CData connection window, you get linked to the relevant CData documentation page for the CData provider you are using. These have a heading ‘API Script Reference’ which contains all the calls you can do. There are some examples in the CData documentation to get you started.


Thomas Lind
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 1035 replies
  • June 22, 2023

Hi @MorganHeijdemann 

For reference I have the link to the ? guide in the REST tutorial as well.

 


Thomas Lind wrote:

Hi @MorganHeijdemann 

For reference I have the link to the ? guide in the REST tutorial as well.

 

Thanks, looks like I missed that. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings