bonsoir à tous

voici mon web service client

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
28
29
30
31
32
33
 
<?php
$options = array
         (  'location' => 'http://serv:8088/mockClientSearchServiceServiceSoapBinding', 
           'uri' => 'http://serv:8088/',
           'trace' => true // in conjunction with $soapClient->__getLastRequest() below
           );
  $soapClient = new SoapClient(null, $options);
$method = 'searchClientNd';
$parameters = array (new SoapParam('0255', 'nd'));
 
    $success = true;
try
{
$result = $soapClient->__soapCall($method, $parameters,    array('soapaction' => ''));
}
catch (SoapFault $fault)
{
 
$success = false;
}
 
 $response= $soapClient->__getLastRequest(); // output the request XML
//echo $response;
 
//if ($success)
{
$dom = new domDocument();
$dom->loadHTML($response);
      $code=$dom->getElementsByTagName( "adr_inst" )->item(0)->nodeValue;
      echo $code;
}
?>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.webservice.aa.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:searchClientNd>
         <!--Optional:-->
         <nd>0055</nd>
      </ser:searchClientNd>
   </soapenv:Body>
</soapenv:Envelope>
web service serveur
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
28
29
30
31
32
33
34
35
36
37
38
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.webservice.aa.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:searchClientNdResponse>
         <!--Optional:-->
         <clients>
            <!--Zero or more repetitions:-->
            <client>
               <!--Optional:-->
               <adr_inst>?</adr_inst>
               <!--Optional:-->
               <categorie>?</categorie>
               <!--Optional:-->
               <date_creation>wwwww</date_creation>
               <!--Optional:-->
               <derangement_cours>?</derangement_cours>
               <!--Optional:-->
               <nd>021247309</nd>
               <!--Optional:-->
               <nomPrenom>5555</nomPrenom>
               <!--Optional:-->
               <produit>?</produit>
               <!--Optional:-->
               <profession>?</profession>
               <!--Optional:-->
               <qual_abo>?</qual_abo>
               <!--Optional:-->
               <resitriction>?</resitriction>
               <!--Optional:-->
               <nCli>?</nCli>
               <!--Optional:-->
               <nDos>?</nDos>
            </client>
         </clients>
      </ser:searchClientNdResponse>
   </soapenv:Body>
</soapenv:Envelope>
mais voici l'erreur

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
 
Notice: DOMDocument::loadHTML(): Namespace prefix soap-env is not defined in Entity, line: 2 in C:\xampp\htdocs\bt\a.php on line 28
 
Warning: DOMDocument::loadHTML(): Tag soap-env:envelope invalid in Entity, line: 2 in C:\xampp\htdocs\bt\a.php on line 28
 
Notice: DOMDocument::loadHTML(): Namespace prefix soap-env is not defined in Entity, line: 2 in C:\xampp\htdocs\bt\a.php on line 28
 
Warning: DOMDocument::loadHTML(): Tag soap-env:body invalid in Entity, line: 2 in C:\xampp\htdocs\bt\a.php on line 28
 
Notice: DOMDocument::loadHTML(): Namespace prefix ns1 is not defined in Entity, line: 2 in C:\xampp\htdocs\bt\a.php on line 28
 
Warning: DOMDocument::loadHTML(): Tag ns1:searchclientnd invalid in Entity, line: 2 in C:\xampp\htdocs\bt\a.php on line 28
 
Warning: DOMDocument::loadHTML(): Tag nd invalid in Entity, line: 2 in C:\xampp\htdocs\bt\a.php on line 28
 
Notice: Trying to get property of non-object in C:\xampp\htdocs\bt\a.php on line 29