Pages: [1]
  Print  
Author Topic: [Solved] Get Page with Authorisation to a Analytics server  (Read 2970 times)
Uwe
Newbie
*
Posts: 25


WWW
« on: July 08, 2013, 10:45:36 AM »

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
« Last Edit: September 10, 2013, 09:28:39 AM by Uwe » Logged
Nils
Administrator
Sr. Member
*****
Posts: 409


« Reply #1 on: July 22, 2013, 10:52:22 AM »

Hi Uwe,

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

Code:
<?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>
[code]

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

Best,
Nils
[/code]
Logged

Please add [SOLVED] to the topic title when your problem has been solved! (do so by editing the first post in the thread and modifying the title)
Uwe
Newbie
*
Posts: 25


WWW
« Reply #2 on: September 10, 2013, 09:23:56 AM »

Dear Nils,

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

Cheers
Uwe
Logged
Pages: [1]
  Print  
 
Jump to: