[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgroupware soap.php, 1.7.4.1, 1.7.4.2 test_soap.php
From: |
Dan Kuykendall <address@hidden> |
Subject: |
[Phpgroupware-cvs] phpgroupware soap.php, 1.7.4.1, 1.7.4.2 test_soap.php, 1.1.2.1, 1.1.2.2 test_xmlrpc.php, 1.1.2.6, 1.1.2.7 |
Date: |
Sat, 08 Nov 2003 01:40:14 +0000 |
Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv12601
Modified Files:
Tag: proposal-branch
soap.php test_soap.php test_xmlrpc.php
Log Message:
wrote my own soap server and am now using that
Index: soap.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/soap.php,v
retrieving revision 1.7.4.1
retrieving revision 1.7.4.2
diff -C2 -d -r1.7.4.1 -r1.7.4.2
*** soap.php 7 Nov 2003 09:05:42 -0000 1.7.4.1
--- soap.php 8 Nov 2003 01:40:11 -0000 1.7.4.2
***************
*** 25,45 ****
$GLOBALS['phpgw_interface'] = 'soap';
- /*
- $GLOBALS['HTTP_RAW_POST_DATA'] = '<?xml version="1.0" ?>
- <SOAP-ENV:Envelope
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:si="http://soapinterop.org/xsd" xmlns:ns6="http://testuri.org"
- SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <SOAP-ENV:Body>
- <ns6:wcm.base.start>
- <phpgw_user xsi:type="xsd:string">admin</phpgw_user>
- <phpgw_pass xsi:type="xsd:string">temppass</phpgw_pass>
- </ns6:wcm.base.start>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>';
- */
$GLOBALS['phpgw_data'] = array();
require_once('api/starter.inc.php');
--- 25,28 ----
Index: test_xmlrpc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/Attic/test_xmlrpc.php,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -C2 -d -r1.1.2.6 -r1.1.2.7
*** test_xmlrpc.php 31 Oct 2003 03:47:05 -0000 1.1.2.6
--- test_xmlrpc.php 8 Nov 2003 01:40:11 -0000 1.1.2.7
***************
*** 10,14 ****
$site = 'localhost';
! $location = '/phpgroupware/xmlrpc.php';
if (!($conn=fsockopen($site,81,$errno,$errstr))) exit($errstr);
--- 10,14 ----
$site = 'localhost';
! $location = '/demo/xmlrpc.php';
if (!($conn=fsockopen($site,81,$errno,$errstr))) exit($errstr);
Index: test_soap.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/Attic/test_soap.php,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** test_soap.php 7 Nov 2003 09:05:42 -0000 1.1.2.1
--- test_soap.php 8 Nov 2003 01:40:11 -0000 1.1.2.2
***************
*** 1,3 ****
--- 1,4 ----
<?php
+ require('api/core_functions.inc.php');
require('nusoap.php');
/**************************************************************************\
***************
*** 12,17 ****
$soapclient = new soapclient('http://'.$site.$location);
! $login_result = $soapclient->call($method,$params);
! $sid = $soapclient->document;
/**************************************************************************\
--- 13,22 ----
$soapclient = new soapclient('http://'.$site.$location);
! $soapclient->call($method,$params);
!
! $login_request = $soapclient->request;
! $login_result = $soapclient->response;
!
! $sid = $soapclient->return['sid'];
/**************************************************************************\
***************
*** 19,40 ****
* The sessionid needs to be the first param I pass. *
\**************************************************************************/
- $sid = $result->scalar;
! $params = array('sid'=>$sid);
$params = array('sid'=>$sid, 'account_id'=>3);
- $params = array('sid'=>$sid, 'account_id'=>3,
'other'=>array('one','two','three'));
- $params = array($sid, 'account_id'=>1);
$method = "api.account_mgr.view";
$soapclient = new soapclient('http://'.$site.$location);
! $next_result = $soapclient->call($method,$params);
- echo '';
- print_r($soapclient);
- echo '';
?>
<html>
<body>
! <h1>This examples the xmlrpc support of the new framework</h1>
The login request
<hr>
--- 24,47 ----
* The sessionid needs to be the first param I pass. *
\**************************************************************************/
! //$params = array('sid'=>$sid);
! //$params = array('sid'=>$sid, 'account_id'=>3,
'other'=>array('one','two','three'));
! //$params = array($sid, 'account_id'=>1);
$params = array('sid'=>$sid, 'account_id'=>3);
$method = "api.account_mgr.view";
$soapclient = new soapclient('http://'.$site.$location);
! $soapclient->call($method,$params);
! $next_request = $soapclient->request;
! $next_result = $soapclient->response;
!
! //echo $sid.'<br>';
! //html_print_r($soapclient);
! //exit;
?>
<html>
<body>
! <h1>This examples the soap support of the new framework</h1>
The login request
<hr>
***************
*** 56,60 ****
Here is the result after its converted to php vars. I use print_r() to
display this.
<hr>
! <?php $result = xmlrpc_decode_request ($result, $method); ?>
<pre><?php print_r($result); ?></pre>
<hr>
--- 63,67 ----
Here is the result after its converted to php vars. I use print_r() to
display this.
<hr>
! <?php $result = $soapclient->return; ?>
<pre><?php print_r($result); ?></pre>
<hr>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgroupware soap.php, 1.7.4.1, 1.7.4.2 test_soap.php, 1.1.2.1, 1.1.2.2 test_xmlrpc.php, 1.1.2.6, 1.1.2.7,
Dan Kuykendall <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] api/interface class.interface_soap.php, 1.1.2.1, 1.1.2.2 class.interface_xmlrpc.php, 1.1.2.9, 1.1.2.10
- Next by Date:
[Phpgroupware-cvs] phpgroupware test_soap.php, 1.1.2.2, 1.1.2.3 test_xmlrpc.php, 1.1.2.7, 1.1.2.8
- Previous by thread:
[Phpgroupware-cvs] api/interface class.interface_soap.php, 1.1.2.1, 1.1.2.2 class.interface_xmlrpc.php, 1.1.2.9, 1.1.2.10
- Next by thread:
[Phpgroupware-cvs] phpgroupware test_soap.php, 1.1.2.2, 1.1.2.3 test_xmlrpc.php, 1.1.2.7, 1.1.2.8
- Index(es):