Giter Site home page Giter Site logo

symfony-rpc-bundle's Introduction

Symfony RPC Bundle

This is a lightweight implementation of Remote Procedure Call (RPC) library for Symfony. It provide an easy way to create a XML-RPC web service within standard Symfony controller.

Quick overview

Build Status

symfony-rpc-bundle's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

symfony-rpc-bundle's Issues

Documentation

Hello,

Can you write some documentation to know how to use your bundle as client of an xml rpc server ?

regards

curl error in makeRequest will result in InvalidArgumentException

When in TransportCurl->makeRequest() an error occured (for example "could not connect to server" - curl error 7) the Response object will be created with the curl error code as http status code. This results in an InvalidArgumentException, because the Request object tests for >=100 and <= 600.

Is this intended behaviour?

ArrayType and StructType not working properly?

when trying to send a xml file with param array in it, i get this faultmsg back from the server:

faultCode0faultStringNotice: Trying to get property of non-object in /var/www/html/symfony/vendor/seven/symfony-rpc-bundle/Seven/RpcBundle/XmlRpc/ValueType/ArrayType.php line 41

Also, trying to send a simple struct and returning sizeof(struct) gives back 0 in the methodResponse.

Are these known issues or am i just overseeing something with these two types? Am i doing something wrong?

DOMDocument::createElement(): unterminated entity reference error

Hi,

I am seeing the following error when a string has a & in it:

my string : "PAO & DAO - Publication et Dessin Assisté par Ordinateur"

Warning: DOMDocument::createElement(): unterminated entity reference  DAO - Publication et Dessin Assisté par Ordinateur in /var/www/vendor/seven/symfony-rpc-bundle/Seven/RpcBundle/XmlRpc/ValueType/StringType.php line 24

There seems to be a reference to avoiding these types of errors:
http://www.php.net/manual/en/domdocument.createelement.php#73617 if it helps.

If I can I'll make a fix !

Thanks,

"The XML document has not valid XML-RPC content" on Server creation

Hi !

I'm facing a big issue... I was reading the documentation to create my own XML-RPC Server but I have the following Exception on method call:

The XML document has not valid XML-RPC content

This is my controller declaration :

<?php                                                                                                                                                                       
                                                                                                                                                                                                                   
use Symfony\Bundle\FrameworkBundle\Controller\Controller;                                                                                                                                                          
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;                                                                                                                                                        
use Symfony\Component\HttpFoundation\Request;                                                                                                                                                                      
use Seven\RpcBundle\XmlRpc\Server;                                                                                                                                                                                 
use Seven\RpcBundle\XmlRpc\Client;                                                                                                                                                                                 
                                                                                                                                                                                                                   
/**                                                                                                                                                                                                                
 * @Route("/xmlrpc")                                                                                                                                                                                               
 */                                                                                                                                                                                                                
class XmlRpcServerController extends Controller                                                                                                                                                                    
{                                                                                                                                                                                                                  
    /**                                                                                                                                                                                                            
     * @return array                                                                                                                                                                                               
     *                                                                                                                                                                                                             
     * @route("/handler", name="handle_xml_rpc_request")                                                                                                                                                           
     */                                                                                                                                                                                                            
    public function handleAction(Request $request)                                                                                                                                                                 
    {                                                                                                                                                                                                              
        // Create XML-RPC Server                                                                                                                                                                                   
        $server = new Server();                                                                                                                                                                                    
                                                                                                                                                                                                                   
        // Add handlers                                                                                                                                                                                            
        $server->addHandler('help', function() {                                                                                                                                                                   
            return "Your XMLRpc Server works (finally !)";                                                                                                                                                         
        });                                                                                                                                                                                                        
                                                                                                                                                                                                                   
        // Handler request and return response                                                                                                                                                                     
        return $server->handle($request);                                                                                                                                                                          
    }                                                                                                                                                                                                              
                                                                                                                                                                                                                   
    /**                                                                                                                                                                                                            
     * @return array                                                                                                                                                                                               
     *                                                                                                                                                                                                             
     * @route("/test", name="test_xml_rpc_request")                                                                                                                                                                
     */                                                                                                                                                                                                            
    public function testAction(request $request)                                                                                                                                                                   
    {                                                                                                                                                                                                              
        $client = new Client($this->generateUrl('handle_xml_rpc_request', array(), true));                                                                                                                         
                                                                                                                                                                                                                   
        echo $client->call('help');die;                                                                                                                                                                            
    }                                                                                                                                                                                                              
} 

Can you tell me where is my errors please ?

Thanks,

Logging errors instead of throwing them

Hi,

I'm facing a big problem. In my application i'm sending a xml-rpc request to an external server.
Currently the server is down and it returns a fault. In your bundle when we've got a fault you throw an exception and the application crashed.

So my question is : How can I prevent the throwing behaviour ?

Sorry for my english,
Thanks a lot !

Schema xmlrpc.xsd

HI.
I would like to know if it's normal if there are a Base64 tag ( with B ) in the schema xmlrpc.xsd.
The response in base64 doesn't decode and i have an null response with an other software.
Thanks

Best regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.