*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
\n\n";
print $soapclient1->request;
print "
\n\n";
print $soapclient1->response;
exit;
}
}
// Test url 2
if ($WS_METHOD2)
{
$parameters = array('authentication'=>$authentication,'id'=>1,'ref'=>'');
dol_syslog("Call method ".$WS_METHOD2);
$result2 = $soapclient2->call($WS_METHOD2,$parameters,$ns,'');
if (! $result2)
{
print $soapclient2->error_str;
print "
\n\n";
print $soapclient2->request;
print "
\n\n";
print $soapclient2->response;
exit;
}
}
// Test url 3
if ($WS_METHOD3)
{
$parameters = array('authentication'=>$authentication,'filterproduct'=>array('type'=>-1));
dol_syslog("Call method ".$WS_METHOD3);
$result3 = $soapclient3->call($WS_METHOD3,$parameters,$ns,'');
if (! $result3)
{
print $soapclient3->error_str;
print "
\n\n";
print $soapclient3->request;
print "
\n\n";
print $soapclient3->response;
exit;
}
}
/*
* View
*/
header("Content-type: text/html; charset=utf8");
print ''."\n";
echo ''."\n";
echo '
' . htmlspecialchars($soapclient1->request, ENT_QUOTES) . ''; //echo '
'; print_r($result1); echo ''; echo '
' . htmlspecialchars($soapclient1->response, ENT_QUOTES) . ''; print '
' . htmlspecialchars($soapclient2->request, ENT_QUOTES) . ''; //echo '
'; print_r($result2); echo ''; echo '
' . htmlspecialchars($soapclient2->response, ENT_QUOTES) . ''; print '
' . htmlspecialchars($soapclient3->request, ENT_QUOTES) . ''; //echo '
'; print_r($result3); echo ''; echo '
' . htmlspecialchars($soapclient3->response, ENT_QUOTES) . ''; echo ''."\n"; echo ''."\n"; ?>