DrupalBin
Submit Code
About
Recent Posts
trace
23 min 57 sec
ago
Fix for Code
7 hours 10 min
ago
Fix for Code
7 hours 11 min
ago
Code
7 hours 16 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Services
Services module node.save XML-RPC sample
November 7, 2008 - 12:35pm — Anonymous
<?php
$request
= xmlrpc_encode_request
(
"node.save"
,
array
(
//$hash,
array
(
'type'
=>
'page'
,
'title'
=>
'Testing'
,
'body'
=>
'Blah blah blah...'
,
)
)
)
;
Services
xml-rpc
Add new comment
Read more
Sample XML test script
November 7, 2008 - 11:43am — Anonymous
<?php
/*
$request = xmlrpc_encode_request(
"system.listMethods", array(
)
);
$request = xmlrpc_encode_request(
"image.getImages", array(
$hash,
31,
)
);
drupal
Services
xml-rpc
Add new comment
Read more
Fix for Access a drupal service from another durpal website as logged in user
October 15, 2008 - 5:47am — Anonymous
<?php
//Dummy $sessid (http://drupal.org/node/284040 ?).
$sessid
=
session_id
(
)
;
$user_login
=
xmlrpc
(
SIMPLEPDM_SERVICE_URL,
'user.login'
,
$sessid
,
'gizra_bot'
,
'12345'
)
;
dpm
(
$user_login
)
;
Services
Read more
Services using json_server example
September 3, 2008 - 6:34pm — Anonymous
Drupal.
service
(
'leadel.getNewMessages'
,
{
uid:userid
}
,
function
(
status
, data
)
{
if
(
status
==
false
)
{
alert
(
"Fatal error: could not load content"
)
;
}
else
{
json_server
Services
Read more
Fix for Use services module to login and save node in remote server (with sessid enabled)
July 24, 2008 - 10:53am — Anonymous
<?php
$sessid
=
session_id
(
)
;
$user_login
= xmlrpc
(
SIMPLEPDM_SERVICE_URL,
'user.login'
,
$sessid
,
'XXX'
,
'12345'
)
;
// Get the real session id.
$sessid
=
$user_login
[
'sessid'
]
;
Services
Read more
Use services module to login and save node in remote server (with sessid enabled)
July 24, 2008 - 5:39am —
amitaibu
<?php
$sessid
=
session_id
(
)
;
$user_login
=
xmlrpc
(
SIMPLEPDM_SERVICE_URL,
'user.login'
,
$sessid
,
'XXX'
,
'12345'
)
;
// Get the real session id.
$sessid
=
$user_login
[
'sessid'
]
;
Services
Read more
Access a drupal service from another durpal website as logged in user
July 17, 2008 - 2:55pm —
amitaibu
<?php
//Dummy $sessid (http://drupal.org/node/284040 ?).
$sessid
=
session_id
(
)
;
$user_login
=
xmlrpc
(
SIMPLEPDM_SERVICE_URL,
'user.login'
,
$sessid
,
'gizra_bot'
,
'12345'
)
;
dpm
(
$user_login
)
;
Services
Read more
Fix for MainWindow.cs
January 5, 2008 - 1:29pm — Anonymous
// Create a connection to the Drupal server
IDrupalServices drupal = (IDrupalServices)XmlRpcProxyGen.Create(typeof(IDrupalServices));
// Define our arguments to pass to the service
C#
DrupalAndTheDesktop
Services
Read more
Fix for MainWindow.cs
January 5, 2008 - 1:27pm — Anonymous
// Define our Drupal Service
[XmlRpcUrl("http://localhost/drupal5/services/xmlrpc")]
public interface IDrupalServices : IXmlRpcProxy
{
/*
Node Service
*/
// Node.Load
C#
DrupalAndTheDesktop
Services
Read more
MainWindow.cs
January 5, 2008 - 1:26pm — Anonymous
// /home/rob/Projects/DrupalAndTheDesktop/MainWindow.cs created with MonoDevelop
// User: rob at 8:10 P 03/01/2008
//
C#
DrupalAndTheDesktop
Services
Read more