javascript:void(0);
j'ai un client php utilisant la bibliothèque nusoap qui doit consommer un service web csharp
voici le code de mon client:
Code PHP :
<!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 le code côté client
Code C# :
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;
}
}
}
quand je compile le client avec easyphp 1.8 mon client ne m'envoyer rien pour dire simplement qu'il n'a rien qui s'affiche