<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SAP BTP CLI sapcpsdk-proxygenerator generates deprecated DataService in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-btp-cli-sapcpsdk-proxygenerator-generates-deprecated-dataservice/qaa-p/12643912#M4743387</link>
    <description>&lt;P&gt;If you want to use Swift.Result-style async, try adding the -online option to the sapcpsdk-proxygenerator tool command line.&lt;/P&gt;&lt;P&gt;If you just want to get rid of the "deprecated" warning, add the "-legacy" option which will still result in the old async style, but without producing a deprecation warning.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 20:31:27 GMT</pubDate>
    <dc:creator>evanireland</dc:creator>
    <dc:date>2022-09-01T20:31:27Z</dc:date>
    <item>
      <title>SAP BTP CLI sapcpsdk-proxygenerator generates deprecated DataService</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-btp-cli-sapcpsdk-proxygenerator-generates-deprecated-dataservice/qaq-p/12643911</link>
      <description>&lt;P&gt;I'm currently working on a project where we generate proxy classes using the command line tool sapcpsdk-proxygenerator provided together with the latest Mac application "SAP BTP SDK Assistant for iOS" version 8.0.0.&lt;/P&gt;
  &lt;P&gt;However, when the proxy classes is generated, we get a warning in Xcode that the generated DataService is deprecated, "&lt;EM&gt;'DataService' is deprecated: renamed to 'LegacyDataService'&lt;/EM&gt;". &lt;/P&gt;
  &lt;P&gt;There doesn't seem to be a way to have the command line tool generate a non-deprecated type, or maybe I'm missing something somewhere. &lt;/P&gt;
  &lt;P&gt;The documentation on DataService states&lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;/// Deprecated. For full backwards compatibility, use `LegacyDataService`.&lt;BR /&gt;/// However it is recommended to use a service class with Swift.Result-style async functions.&lt;BR /&gt;/// This will require application code changes, but makes your code easier to integrate with the Swift Combine framework.&lt;BR /&gt;/// Please consider using one of the service class variants that supports Swift.Result-style async functions: `BaseDataService`, `OfflineDataService` or `OnlineDataService`.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;Preferably, I'd like to migrate to one of the suggested types OnlineDataService, but I'm unsure as to how to do that with the Command line tool.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 13:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-btp-cli-sapcpsdk-proxygenerator-generates-deprecated-dataservice/qaq-p/12643911</guid>
      <dc:creator>jakobvinther</dc:creator>
      <dc:date>2022-09-01T13:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAP BTP CLI sapcpsdk-proxygenerator generates deprecated DataService</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-btp-cli-sapcpsdk-proxygenerator-generates-deprecated-dataservice/qaa-p/12643912#M4743387</link>
      <description>&lt;P&gt;If you want to use Swift.Result-style async, try adding the -online option to the sapcpsdk-proxygenerator tool command line.&lt;/P&gt;&lt;P&gt;If you just want to get rid of the "deprecated" warning, add the "-legacy" option which will still result in the old async style, but without producing a deprecation warning.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 20:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-btp-cli-sapcpsdk-proxygenerator-generates-deprecated-dataservice/qaa-p/12643912#M4743387</guid>
      <dc:creator>evanireland</dc:creator>
      <dc:date>2022-09-01T20:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAP BTP CLI sapcpsdk-proxygenerator generates deprecated DataService</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-btp-cli-sapcpsdk-proxygenerator-generates-deprecated-dataservice/qaa-p/12643913#M4743388</link>
      <description>&lt;P&gt;Thanks a lot  &lt;SPAN class="mention-scrubbed"&gt;evanireland&lt;/SPAN&gt;, that solved my issue&lt;/P&gt;&lt;P&gt;Would be nice if the options you mention could be part of "sapcpsdk-proxygenerator --help". &lt;/P&gt;&lt;P&gt;As well, after looking further, I've found that the CLI version that I'm using is "20.3.0-6b3997-20200324", and the ODate framework is "22.5.2", though I was sure I had installed the newest CLI version. But I'm missing a --version option, or have the version in the help description, since its difficult to figure out what version is actually used.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 07:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-btp-cli-sapcpsdk-proxygenerator-generates-deprecated-dataservice/qaa-p/12643913#M4743388</guid>
      <dc:creator>jakobvinther</dc:creator>
      <dc:date>2022-09-02T07:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAP BTP CLI sapcpsdk-proxygenerator generates deprecated DataService</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-btp-cli-sapcpsdk-proxygenerator-generates-deprecated-dataservice/qaa-p/12643914#M4743389</link>
      <description>&lt;P&gt;the online CLI argument as it stays only works for an OData online project&lt;/P&gt;&lt;P&gt;all our apps used the offline SDK, so it does not work for us, we need to use the old completion handler style&lt;/P&gt;&lt;P&gt;how can we used the new style with an offline project ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;alex&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 22:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-btp-cli-sapcpsdk-proxygenerator-generates-deprecated-dataservice/qaa-p/12643914#M4743389</guid>
      <dc:creator>AlexGiguere</dc:creator>
      <dc:date>2022-09-25T22:11:03Z</dc:date>
    </item>
  </channel>
</rss>

