Hello All,
Here is my problema using PHP NUSOAP to consume AVAYA ACE webservice.
This is my php code
$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'); |
This is what the Server says:
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
)
)
)
This is how I see from the XSD in 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> |
I'm not sure nopw of anything. I've been testing all the nusoap parameters and I feel absolutly lost.
Anybody could give me some light?
Thanks in advance