Title: client rtc with server xml-rpc php Post by: mkurnia 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? Title: Re: client rtc with server xml-rpc php Post by: D.Tkalcec (RTC) 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 Title: Re: client rtc with server xml-rpc php Post by: mkurnia on November 12, 2015, 02:39:59 PM thanks danijel,
its work. i'm try change property with other value, but not change port |