Uso PHP y nusoap para consumir webservice desde hace tiempo.
He conseguido consumir de SAP y de CISCO.
Ahora estoy en un proyecto con AVAYA y llevo tres días sin conseguir ningún resultado.
Lo peor es que con el SOAPUI me funciona correctamente.
Tengo dudas con el NAMESPACE y con la sintaxis de los parámetros, aunque creo que he probado con TODAS las combinaciones posibles.
Aquí esta el código PHP
Código PHP:
$client = new nusoap_client("https://ip:9443/RaptorWeb/services/ThirdPartyCall");
$client->useHTTPPersistentConnection();
$client->setCredentials('usuario','contraseña',"basic");
$params = array('callingParty'=>'tel:4552','calledParty'=>'tel:901134625154789');
$result = $client->call('makeCall',$params,'http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local');
Array
(
[faultcode] => soapenv:Server
[faultstring] => AgileCE service exception
[detail] => Array
(
[ServiceException] => Array
(
[messageId] => SVC0002
[text] => Expected element 'callingParty@http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local' instead of 'callingParty' here in element makeCall@http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local
Expected element 'callingParty@http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local' instead of 'calledParty' here in element makeCall@http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local
Expected element 'callingParty@http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local' before the end of the content in element makeCall@http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local
)
)
)
Agradeceré cualquier ayuda o indicación... estoy bloqueado .
Adjunto como se ve el webservice en SOAPUI
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:loc="http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local">
<soapenv:Header/>
<soapenv:Body>
<loc:makeCall>
<loc:callingParty>tel:4552</loc:callingParty>
<loc:calledParty>tel:901134625154789</loc:calledParty>
</loc:makeCall>
</soapenv:Body>
</soapenv:Envelope>
Muchas gracias