Bonjour à tous et à toutes,

comment insérer des champs en utilisant le protocole SOAP?
J'aimerai le code java permettant de faire cela.

Voici le Service inscription :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
require_once ('lib/nusoap.php');
$ns="http://localhost:8080/nusoap/";
$serveur = new soap_server();
$serveur->configureWSDL('inscription',$ns);
$serveur->wsdl->schemaTargetNamespace=$ns;
$serveur->register('inscription',array('cin'=> 'xsd:string','nom'=> 'xsd:string','email'=> 'xsd:string','password'=> 'xsd:string','tel'=> 'xsd:string'),array('return'=> 'xsd:string'),$ns) ;
function inscription ($cin, $nom, $email, $password, $tel)
{
 
   if (!empty($cin) && !empty($nom)&& !empty($email)&& !empty($password) && !empty($tel) ) {
        $link = mysql_connect("localhost", "root", "");
            mysql_select_db("testservice", $link);
			mysql_query("INSERT INTO client (cin, nom, email, password, tel)
VALUES ('$cin', '$nom', '$email', '$password', '$tel')");
   mysql_close($link);
    $bool = "ok";
           return new soapval('return','xsd:string',$bool);
   } else {
  $bool1 = "notok" ;   
       return new soapval('return','xsd:string',$bool1 );  
   }
}
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA)? $HTTP_RAW_POST_DATA : '';
$serveur->service($HTTP_RAW_POST_DATA);
 
?>
Merci d'avance