RTC Forums
May 14, 2024, 05:12:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: client rtc with server xml-rpc php  (Read 3447 times)
mkurnia
RTC Expired
*
Posts: 21


« on: November 12, 2015, 01:41:37 PM »

hi danijel,

i try this address https://localhost/transaksi/index.php to use xml-rpc.

and this code for rtcmodule :
RtcClientModule1.Data.NewFunction('rajabiller.cekip');

but i not have response from rtcresult :
With Sender as TRtcDataClient do
  begin
    Memo1.Text := Result.asXMLrpc;
  end;

on property rtchttpclient1
serveraddr : https://localhost/transaksi/index.php
port : 80

property rtcclientmodule1
modulefilename : /index.php

where the wrong from my code?
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: November 12, 2015, 02:20:53 PM »

The default HTTPS port (HTTP over SSL) is 443 and not 80. Also, the "ServerAddr" property should ONLY contain the IP Address or Domain name and nothing else. The rest of the URI you are accessing is set in the ModuleFileName property.

Using your example, this is how you should set up the components:

RtcHttpClient1:
  ServerAddr = '202.43.173.234'
  ServerPort = '443'
  useSSL = True
  AutoConnect = True

RtcClientModule1:
  ModuleFileName = '/transaksi/index.php'
  DataFormat = fmt_XMLRPC

Then, you can call remote functions on the Server by using something like this:

with RtcClientModule1 do
  begin
  Prepare('rajabiller.cekip');
  Call(RtcResult1);
  end;

Best Regards,
Danijel Tkalcec
Logged
mkurnia
RTC Expired
*
Posts: 21


« Reply #2 on: November 12, 2015, 02:39:59 PM »

thanks danijel,
its work.

i'm try change property with other value, but not change port

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 17 queries.