NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
AVAYA SOAP consuming with nusoap PHP - Expected element


Joined: 02 Sep 2013
Posts: 1
Location: BARCELONA
Reply with quote
Hello All,

Here is my problema using PHP NUSOAP to consume AVAYA ACE webservice.

This is my php code

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:

Code:
<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
View user's profileFind all posts by jviladomatSend private messageSend e-mail
AVAYA SOAP consuming with nusoap PHP - Expected element
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic