通过https在php中调用wsdl

通过https在php中调用wsdl,php,https,wsdl,nusoap,exchangewebservices,Php,Https,Wsdl,Nusoap,Exchangewebservices,我正在尝试连接到下一个Web服务: 我还必须添加一个我已经创建的header元素 我可以用PHPsoapclient或zend_soap_client来调用它吗?或者我必须使用nusoap\u客户端 我试着做如下事情: $soapclient = new nusoap_client($wsdl); $header = "<o:Security s:mus... ../>"; // including my password and username $soapclient->

我正在尝试连接到下一个Web服务:

我还必须添加一个我已经创建的header元素

我可以用PHP
soapclient
zend_soap_client
来调用它吗?或者我必须使用
nusoap\u客户端

我试着做如下事情:

$soapclient = new nusoap_client($wsdl);
$header = "<o:Security s:mus... ../>"; // including my password and username

$soapclient->call("FindGemeentenResult",
array("houseNumberId" => 2306852),
"https://grab.beta.agiv.be/Tools/CRABTools.svc",
"http://ws.agiv.be/crabtools/ICRABTools/FindGemeentenResult",
$header);
$soapclient=newnusoap_客户端($wsdl);
$header=”“;//包括我的密码和用户名
$soapclient->call(“FindgeMeentResult”,
数组(“houseNumberId”=>2306852),
"https://grab.beta.agiv.be/Tools/CRABTools.svc",
"http://ws.agiv.be/crabtools/ICRABTools/FindGemeentenResult",
$header);
但现在我明白了:

错误:HTTP错误:不支持的HTTP响应状态415无法处理消息,因为内容类型为“text/xml”;charset=ISO-8859-1“不是预期的类型”text/xml;charset=utf-8.
(soapclient->response包含响应的内容)


我是新手,欢迎任何帮助

在服务器上调用该方法之前,需要将SOAP客户端编码设置为
utf-8
,而不是默认的
ISO-8859-1

e、 g

$soapclient = new nusoap_client(...);
$soapclient->soap_defencoding = 'UTF-8';
$soapclient->call(...);
/**
* charset encoding for outgoing messages
*
* @var      string
* @access   public
*/
  var $soap_defencoding = 'UTF-8';
 //var $soap_defencoding = 'ISO-8859-1';