The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"[Solved] Get Page with Authorisation to a Analytics server"

kuehnkuehn Member Posts: 25 Contributor II
edited June 2019 in Help
Dear all,

I am very familar with RM and RA and I love both.
Now I got a new Issue to solve.

I have to connect with the Operator Get Page to a Rapid Analytics Webservice.
The connections working well with curl request in PHP and RM Requests if the credentials are stored in the password manager.

But I need that this process, that connects to a anaylytics server, is exported as a webservice it self on a Rapid Analytics Server.
Both analytics server don't have to be the same Server.

I assume it is solveable via the request parameters like in Curl Requests. I still miss there a description which parameters are allowed .. or I have to use to implements Get Page in a dynamic way.

Regards Uwe
Tagged:

Answers

  • Nils_WoehlerNils_Woehler Member Posts: 463 Maven
    Hi Uwe,

    you can use BasicAuth with Get Page to authenticate to a RA Webservice.
    Here is an example:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="5.3.009">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="5.3.009" expanded="true" name="Process">
        <process expanded="true">
          <operator activated="true" class="web:get_webpage" compatibility="5.3.000" expanded="true" height="60" name="Get Page" width="90" x="112" y="75">
            <parameter key="url" value="http://localhost:8080/RAWS/process/dynamiclyLoadCategories"/>
            <list key="query_parameters">
              <parameter key="filter" value="2"/>
            </list>
            <list key="request_properties">
              <parameter key="Authorization" value="Basic YWRtaW46Y2hhbmdlaXQ="/>
            </list>
          </operator>
          <connect from_op="Get Page" from_port="output" to_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>
        </process>
      </operator>
    </process>


    I've set the request property 'Authorization' with the basic authentication parameters 'Basic' and Base64 encoded 'username:password'.

    Best,
    Nils
  • kuehnkuehn Member Posts: 25 Contributor II
    Dear Nils,

    sorry for reading and answering by myself lately.
    My colleague said It works fine.
    Thank you.

    Cheers
    Uwe
Sign In or Register to comment.