bonjour

j'ai un client php utilisant la bibliothèque nusoap qui doit consommer un service web csharp quand je lance le client j'ai la reponse suivante : Array
voici mon client php:
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
	<head>
		<title>PHP test</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       <link rel="stylesheet" media="screen" type="text/css" title="Design" href="style.css" />
	</head> 
<body> 
 
		<p>			
		<?php
              include ('lib/nusoap.php') ;
			 	  $client = new nusoap_client('http://localhost:1102/Service1.asmx');
 
 
				$parametres = array('nom'=>'lettre');
 
		?> 
		<?php
echo $client->call('HelloWorld', $parametres);
?>
</p>
 
</body>
</html>
et voici mon service

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
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Configuration;
using System.Xml.Linq;
 
namespace WebService1
{
    /// <summary>
    /// Description résumée de Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
 
    public class Service1 : System.Web.Services.WebService
    {
        [WebMethod]
        public string HelloWorld(string nom)
        {
            return "Hello " + nom;
 
        }
    }
}