<?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>topic Odata Connector - Can not Test in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/odata-connector-can-not-test/m-p/7193#M3106</link>
    <description>&lt;P&gt;I am attempting to build an Odata connector since there is not one built by Workato.&amp;nbsp; I have a majority of the code working and I can properly authenticate however I can not get past an error to finalize the connection.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;783: unexpected token at '&amp;lt;edmx:Edmx xmlns:edmx="&lt;A href="http://docs.oasis-open.org/odata/ns/edmx" target="_blank"&gt;http://docs.oasis-open.org/odata/ns/edmx&lt;/A&gt;" Version="4.0"&amp;gt; &amp;lt;edmx:DataServices&amp;gt; &amp;lt;Schema xmlns="&lt;A href="http://docs.oasis-open.org/odata/ns/edm" target="_blank"&gt;http://docs.oasis-open.org/odata/ns/edm&lt;/A&gt;" Namespace="OpenAir.OData.V4.Reports"&amp;gt; &amp;lt;EntityType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The test part of the code is below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test: lambda do |connection|&lt;BR /&gt;response = get("#{connection['odata_url']}/$metadata")&lt;BR /&gt;puts "Response: #{response}"&lt;BR /&gt;if response.include?('&amp;lt;edmx:Edmx')&lt;BR /&gt;{ success: true, message: "Successfully connected to OData service" }&lt;BR /&gt;else&lt;BR /&gt;error("Unexpected response from OData service")&lt;BR /&gt;end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 11:13:26 GMT</pubDate>
    <dc:creator>vascoeagles</dc:creator>
    <dc:date>2024-07-31T11:13:26Z</dc:date>
    <item>
      <title>Odata Connector - Can not Test</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/odata-connector-can-not-test/m-p/7193#M3106</link>
      <description>&lt;P&gt;I am attempting to build an Odata connector since there is not one built by Workato.&amp;nbsp; I have a majority of the code working and I can properly authenticate however I can not get past an error to finalize the connection.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;783: unexpected token at '&amp;lt;edmx:Edmx xmlns:edmx="&lt;A href="http://docs.oasis-open.org/odata/ns/edmx" target="_blank"&gt;http://docs.oasis-open.org/odata/ns/edmx&lt;/A&gt;" Version="4.0"&amp;gt; &amp;lt;edmx:DataServices&amp;gt; &amp;lt;Schema xmlns="&lt;A href="http://docs.oasis-open.org/odata/ns/edm" target="_blank"&gt;http://docs.oasis-open.org/odata/ns/edm&lt;/A&gt;" Namespace="OpenAir.OData.V4.Reports"&amp;gt; &amp;lt;EntityType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The test part of the code is below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test: lambda do |connection|&lt;BR /&gt;response = get("#{connection['odata_url']}/$metadata")&lt;BR /&gt;puts "Response: #{response}"&lt;BR /&gt;if response.include?('&amp;lt;edmx:Edmx')&lt;BR /&gt;{ success: true, message: "Successfully connected to OData service" }&lt;BR /&gt;else&lt;BR /&gt;error("Unexpected response from OData service")&lt;BR /&gt;end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 11:13:26 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/odata-connector-can-not-test/m-p/7193#M3106</guid>
      <dc:creator>vascoeagles</dc:creator>
      <dc:date>2024-07-31T11:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Odata Connector - Can not Test</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/odata-connector-can-not-test/m-p/7198#M3111</link>
      <description>&lt;P&gt;The error reads to me like it's expecting to parse JSON, but it's throwing an error because it's receiving XML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are specific methods to use when working with XML responses from APIs. I would try to implement them:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.workato.com/developing-connectors/sdk/guides/data-formats/xml-format.html#forming-xml-payload-in-request" target="_blank"&gt;https://docs.workato.com/developing-connectors/sdk/guides/data-formats/xml-format.html#forming-xml-payload-in-request&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As a cheaper alternative, you can try `&lt;SPAN&gt;if response.to_s.include?('&amp;lt;edmx:Edmx')` but I don't now if a type conversion will work in this situation. Maybe? Worth a try.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:07:01 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/odata-connector-can-not-test/m-p/7198#M3111</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2024-07-31T17:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Odata Connector - Can not Test</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/odata-connector-can-not-test/m-p/7200#M3113</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; I was able to get the connections working by simply adding the method.&amp;nbsp; response_format_xml&amp;nbsp; - Now i can't get my custom action to work but will take advantage of the link you sent to retrieve xml data.&lt;/P&gt;&lt;P&gt;test: lambda do |connection|&lt;BR /&gt;response = get("#{connection['odata_url']}/$metadata")&lt;BR /&gt;response.response_format_xml&lt;BR /&gt;end,&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 18:57:30 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/odata-connector-can-not-test/m-p/7200#M3113</guid>
      <dc:creator>vascoeagles</dc:creator>
      <dc:date>2024-07-31T18:57:30Z</dc:date>
    </item>
  </channel>
</rss>

