У меня проблема с отправкой запроса xml-строки с помощью soapplient php на WSDL-сервер .net.Это мой код:
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
ini_set('display_startup_errors', true);
$idpiano = 2125718;
/*echo $imprata;*/
$idag = "35852";
$codoper = "PCCPLA66T11L719L";
$xml = '
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<RichiestaPiano>
<DatiRichiesta>
<CodiceOperatore>$codoper</CodiceOperatore>
<IdentificativoAgenzia>$idag</IdentificativoAgenzia>
<IdPiani>
<IdPianoINPS>$idpiano</IdPianoINPS>
</IdPiani>
</DatiRichiesta>
</RichiestaPiano>
</soap:Body>
</soap:Envelope>';
$wsdl = "https://portalws.inps.it/ws/wsCessioneQuintoWeb/WsInpsCessioneQuinto.asmx?WSDL";
$local_cert = "C:\\Apache24\htdocs\sirio2.pem";
$soapClient = new SoapClient($wsdl, array('local_cert' => $local_cert, 'trace' => 1, 'soap_version' => SOAP_1_1));
try{
$order_return = $soapClient->RichiestaPianiEnte($xml);
//Get response from here
var_dump($order_return);
}catch (SoapFault $exception){
//var_dump(get_class($exception));
var_dump($exception);
}
?>
В XML есть единственная информационная строка.Ответ сервера: Bad Request