I create a module that implements a services for a user to up a content:
function ws_content_services_resources(){
return array("e-plus_ws"=>
array(
'create_cambio_content' => array(
'file' => array('type' => 'module', 'module' => 'ws_content', 'name' => 'ws_content'),
'callback' => 'get_content_by_ws',
'args' => array(
array(
'name' => 'myarray',
'optional' => FALSE,
'source' => 'data',
'description' => 'The node data to create',
'type' => 'array',
),
),
'access callback' => true,
'help' => 'Web service para subir contenido a cambio content type',
#'access arguments' => array('view'),
#'access arguments append' => TRUE,
),
),
);
}
function get_content_by_ws($myarray){
module_load_include('inc', 'upcontent', 'upcontent');
upcontent($myarray);
return "enviado";
}
*the function upcontent works well
so, I created a endpoint for this module and when i access http://localhost/ws/currency the message "XML-RPC server accepts POST requests only." is showed.
so to tests this module i created another module named tests and the .inc file content is:
<?php
function test_xmlrpc(){
$array=get_array();
$result = xmlrpc('http://localhost/ws/currency', array(