Topic: PHP Soap Client klaidos
Sveiki,
Darbe susidūriau su tokia problema, kad reikia sukurti SOAP Clientą kuris kreipiasi į servisą.
Turiu pasirašęs tokį Client scriptuką:
require_once 'nusoap/nusoap.php';
$oClient= new nusoap_client('http://SomeLinkOf/?WSDL','wsdl');
$oClient->loadWSDL();
$oClient->http_encoding='utf-8';
$oClient->soap_defencoding = 'UTF-8';
$aDataArray = array(
'Param1' => 1,
'Param2' => 1,
'Param3' => 030220131130,
'Param4' => 030220131150,
'Param5' => 'Some String'
);
$aFunctions= $client->getProxy();
$aResult= $aFunctions->SoapServerScript($aDataArray);
Problema, kad ir ką bedaryčiau, kokį metodą benaudočiau gaunu klaidą:
HTTP Error: Unsupported HTTP response status 415 Cannot process the message because the content type 'text/xml; charset=UTF-8' was not the expected type 'application/soap+xml; charset=utf-8'. (soapclient->response has contents of the response)
Gal būti galite padėti šią klaidą pašalinti.