Serveur web service avec NuSoap

youess81 Messages postés 40 Date d'inscription vendredi 28 mai 2004 Statut Membre Dernière intervention 5 juin 2005 - 10 avril 2005 à 21:31
youess81 Messages postés 40 Date d'inscription vendredi 28 mai 2004 Statut Membre Dernière intervention 5 juin 2005 - 5 juin 2005 à 01:10
salut
j'utulise easyphp 1.7 sous un envirnement windows XP je veux creer un serveur web service
avec l'API nusoap disponible sur le web le proble ke j ai est lorsque je lance la page serveur j ai tj cet erreur Undefined variable: HTTP_RAW_POST_DATA
est ce ke dd adeja configure NuSoap avec PHP4 sous windows
Merci

3 réponses

malalam Messages postés 10839 Date d'inscription lundi 24 février 2003 Statut Membre Dernière intervention 2 mars 2010 25
11 avril 2005 à 17:15
Hello,



vu sur php.net... :





rick@independence,netI

23-Jul-2001 07:13



It should be noted that $HTTP_RAW_POST_DATA
only exists if the encoding type of the data is -not- the default of
application/x-www.form-urlencoded, and so, to accessing raw post data
from an HTTP form requires setting enctype= in your HTML.







http://us4.php.net/manual/en/language.variables.predefined.php



m dot crawford at nospam dot home dot com

10-Jun-2001 05:48



$GLOBALS["HTTP_RAW_POST_DATA"] contains the raw POSTed data from a request.  Also available (obviously) as $HTTP_RAW_POST_DATA in the global scope.  Thanks to Manuel Lemos' SOAP server class for shedding some light on the subject.



Apres, a toi de voir quelles conclusions en tirer, lol.


0
bniz Messages postés 11 Date d'inscription vendredi 25 mars 2005 Statut Membre Dernière intervention 19 avril 2007
5 juin 2005 à 00:46
www.bnizworks.4t.com the site made in dreams
0
youess81 Messages postés 40 Date d'inscription vendredi 28 mai 2004 Statut Membre Dernière intervention 5 juin 2005
5 juin 2005 à 01:10
merci de votre reponse mais j ai deja trouver la solution a ce probleme et vooila la solution encore 100 merci


$server = new soap_server;
$server->register('get_project_stages');
$server->register('get_project_severity');
$server->register('report_anomalie');
#------------------------------
#La listes des etapes du projet
function get_project_stages($p_project_agresso) {


$rows =array();
$p_project_id = project_get_by_agresso($p_project_agresso);
if ($p_project_id) {
$rows = get_project_all_stages($p_project_id);
$error="ok";
} else {
$error= "Le projet $p_project_agresso n'existe pas des l'application Mantis:";
return $error;
}


return $rows;
}
#---------------------------------
#La listes des servérités d'un bug
function get_project_severity($language = 'FR') {


$t_config_var_value = config_get('severity_enum_string');
switch ($language) {
case 'FR' :
$lang = "french";
break;
case 'EN' :
$lang = "english";
break;
default :
$lang = "french";
break;


}
$t_arr = explode_enum_string($t_config_var_value);
$t_enum_count = count($t_arr);
for ($i = 0; $i < $t_enum_count; $i ++) {
$tmp = explode_enum_arr($t_arr[$i]);
$row[$i]['id'] = $tmp[0];
$row[$i]['name'] = get_serverity_element('severity', $tmp[0], $lang);


} # end for


return $row;
}

// Use the request to (try to) invoke the service
$HTTP_RAW_POST_DATA = isset ($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
$server->service($HTTP_RAW_POST_DATA);
0
Rejoignez-nous