skolodyazhnyy / symfony-rpc-bundle Goto Github PK
View Code? Open in Web Editor NEWSimple JSON and XML RPC Server/Client implementation for Symfony 2
License: MIT License
Simple JSON and XML RPC Server/Client implementation for Symfony 2
License: MIT License
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 !
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.
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,
Hello,
Can you write some documentation to know how to use your bundle as client of an xml rpc server ?
regards
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,
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?
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?
Hello,
I am trying to use your bundle on my new Symfony2 project.
For non Symfony2 project I used this pear package: http://pear.php.net/reference/XML_RPC2-latest/XML_RPC2/XML_RPC2_Client.html
I need to set the prefix to use on the web service but i do not found how to do this with your bundle.
Here is an example of a webservice witch require a prefix :
http://doc.rpc.gandi.net/domain/usage.html
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.