PHP - AVAYA WebService consumidos con PHP - ERROR

 
Vista:
sin imagen de perfil

AVAYA WebService consumidos con PHP - ERROR

Publicado por Josep (1 intervención) el 02/09/2013 19:04:28
Hola,

Tengo que consumir unos WebService de AVAYA.

Cuando utilizo SOAPUI no tengo ningún problema, me funcionan!!

Pero cuando creo el cliente nusoap de PHP me devuelve unos errores muy extraños.

Tengo dudas con el namespace, por eso adjunto al final del todo el trozo del xsd...

Adjunto el webservice visto desde 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>

Esta es la llamada PHP:

require_once '../config/clases/nusoap_avaya/lib/nusoap.php';

$endpoint='https://ip:9443/RaptorWeb/services/ThirdPartyCall';
$namespace='http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local';
$client = new nusoap_client($endpoint);

$client->setCredentials($usuario,$contraseña,'preemptive');

$params = array(
"callingParty" => "tel:4552",
"calledParty" => "tel:901134625154789"
);

$result = $client->call('makeCall',$params,$namespace);


ESTE ES EL ERROR:

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

)

)

)


EL XSD (fragmento):

<?xml version="1.0" encoding="UTF-8"?>
<!-- May 26, 2006 -->
<wsdl:definitions
name="parlayx_third_party_call_interface"
targetNamespace="http://www.csapi.org/wsdl/parlayx/third_party_call/v2_3/interface"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:parlayx_third_party_call="http://www.csapi.org/wsdl/parlayx/third_party_call/v2_3/interface"
xmlns:parlayx_common_faults="http://www.csapi.org/wsdl/parlayx/common/v2_0/faults"
xmlns:parlayx_third_party_call_xsd="http://www.csapi.org/schema/parlayx/third_party_call/v2_3"
xmlns:parlayx_common_xsd="http://www.csapi.org/schema/parlayx/common/v2_1"
xmlns:parlayx_third_party_call_local_xsd="http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local">

<wsdl:import namespace="http://www.csapi.org/wsdl/parlayx/common/v2_0/faults" location="parlayx_common_faults_2_0.wsdl"/>

<wsdl:types>
<xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local">
<xsd:import namespace="http://www.csapi.org/schema/parlayx/third_party_call/v2_3" schemaLocation="parlayx_third_party_call_types_2_3.xsd"/>
<xsd:import namespace="http://www.csapi.org/schema/parlayx/common/v2_1" schemaLocation="parlayx_common_types_2_1.xsd"/>

<xsd:element name="makeCall" type="parlayx_third_party_call_local_xsd:makeCall"/>
<xsd:complexType name="makeCall">
<xsd:sequence>
<xsd:element name="callingParty" type="xsd:anyURI"/>
<xsd:element name="calledParty" type="xsd:anyURI"/>
<xsd:element name="charging" type="parlayx_common_xsd:ChargingInformation" minOccurs="0" maxOccurs="1"/>
<xsd:element name="reference" type="parlayx_common_xsd:SimpleReference" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>


Agradezco cualquier ayuda!!! Gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder