EllisLab text mark
Advanced Search
     
Help!! XML-RPC Issues.
Posted: 15 July 2011 12:45 AM   [ Ignore ]
Joined: 2011-07-15
1 posts

I am trying to code for PayPoint’s (formally SecPay) API within CodeIgniter. I am following along their sample code here: http://www.paypoint.net/support/gateway/soap-xmlrpc/xmlrpc-php/

Here is what I have so far.

controllers/paypoint.php

<?php

Class Paypoint extends CI_Controller {

    
function __construct() {

        parent
::__construct();

        
// Load default libraries
        
$this->load->library('xmlrpc');

    
}

    
function index () {

        $this
->xmlrpc->server('https://www.secpay.com/secxmlrpc/make_call'443);
        
$this->xmlrpc->timeout(60);
        
$this->xmlrpc->method('SECVPN.validateCardFull');

        
$request = array(
            array(
'secpay''string'),
            array(
'secpay''string'),
            array(
'trans_id''string'),
            array(
'123.132.321.132''string'),
            array(
'Mr Jo Bloggs''string'),
            array(
'4444333322221111''string'),
            array(
'10.51''string'),
            array(
'12/10''string'),
            array(
'''string'),
            array(
'''string'),
            array(
'''string'),
            array(
'''string'),
            array(
'''string'),
            array(
'test=true,dups=false''string')
        );

        
$this->xmlrpc->request($request);

        if (
$this->xmlrpc->send_request()) {
            
echo '<pre>';
            
print_r($this->xmlrpc->display_response());
            echo 
'</pre>';
        
else {
            
echo $this->xmlrpc->display_error();
        
}

    }

But the output is always: ‘No data received from server.’

Am I doing something wrong?

 
Posted: 20 July 2011 12:17 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2010-03-12
85 posts

Good question! I don’t have the response but I wonder if the xmlrpc library supports https (SSL) communication?

 Signature 

WebMada hacker’s profile on WABLAB

 
Posted: 20 July 2011 05:14 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2009-05-17
1415 posts

XML-RPC doesn’t work with SSL. You’ll have to create your own library and use cURL. I tried to extend the XML-RPC class to use cURL and SSL, but I didn’t get it working 100%, and just made my own solution because XML-RPC usage wasn’t ideal for my situation anyways.

PS. As far as I’m concerned, this is a bug, because of the high likelihood of needing to use SSL for XML-RPC. I wish the CI team would consider this, but I don’t have any more votes left.

 Signature 

Brian
Brian’s Web Design - Temecula
Community Auth - CodeIgniter Authentication Application

 
Posted: 21 July 2011 02:50 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2010-03-12
85 posts
skunkbad - 20 July 2011 09:14 PM

PS. As far as I’m concerned, this is a bug, because of the high likelihood of needing to use SSL for XML-RPC. I wish the CI team would consider this, but I don’t have any more votes left.

I hope so!

 Signature 

WebMada hacker’s profile on WABLAB

 
Posted: 21 July 2011 06:24 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2011-07-21
1 posts

very much http://ask-cheats.ru/

 
Posted: 04 October 2012 02:29 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Joined: 2008-06-02
22 posts

I too am running into this issue with SSL . Has hacked a way around this? Seems the xmlrpc has not been touched since 1.0.0

 Signature 

Mike Yrabedra
Yabdab Inc.
http://www.yabdab.com
Twitter: @yabdab

 
Posted: 04 October 2012 03:15 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2009-05-17
1415 posts
yabdab - 04 October 2012 02:29 PM

I too am running into this issue with SSL . Has hacked a way around this? Seems the xmlrpc has not been touched since 1.0.0

This was working:
https://github.com/skunkbad/MY_Xmlrpc

I don’t know if it needs an update. I don’t use it anymore.

 Signature 

Brian
Brian’s Web Design - Temecula
Community Auth - CodeIgniter Authentication Application

 
Posted: 04 October 2012 06:47 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Joined: 2008-06-02
22 posts

Thanks, I will give that a try.

 Signature 

Mike Yrabedra
Yabdab Inc.
http://www.yabdab.com
Twitter: @yabdab