Author Message
JosepViladomat
Joined: Feb 4, 2013
Messages: 0
Offline
Hi,

My company has recently (yesterday) get ACE.

We have Avaya Aura ASAI.

We've tested parlayx_third_party_call_service_2_3.wsdl using SOAPui and it seems to work.

Our Project is to consume those webservice with php.

I need help, because I'm getting errors.

For example, if we want to make a call, we use TPC 2.3.

The php code that I'm using, based on nusoap class:

$client = new nusoap_client('https://myuser:mypassword@myip:9443/RaptorWeb/services/ThirdPartyCall');
$param = array('loc:callingParty'=>'tel:1781','loc:calledParty'=>'tel:3308');
$answer = $client->call('makeCall',$param);


I miss the urn in the wsdl document.

If I execute this php, I get that:

Response not of type text/xml: text/html;charset=ISO-8859-1

Could you please refer me to an example of how consume ACE webservice using PHP?

Thanks a lot.
DipeshGandhi2 [Avatar]

Joined: Nov 14, 2011
Messages: 35
Offline
Hi Josep,

The ACE Web Services are exposed so that web client can be written in variety of different languages (Java, .NET, PHP, etc). Currently we only have examples illustrating ACE Web Services in Java as Java is most commonly used language by our members.

I am not a PHP expert by any means but the error seems to indicate issue is with the header in your soap request. The response type expected does not match. You will need to investigate this further with PHP development experts.

I will also recommend using TCP monitoring tools such as WireShark or TCPMON to see what the actual request header is generated by your PHP soap_client call. You can execute same API call from SoapUI and observe the header there. The header seen from SoapUI should match request being sent from your PHP code. Again, to determine why request is not being formulated correctly, you will need to seek out help with PHP developers/community.


Thank you,
Dipesh




Dipesh Gandhi Software Engineer, Avaya DevConnect
JosepViladomat
Joined: Feb 4, 2013
Messages: 0
Offline
Hi Dipesh.

Thanks for your words.

Any way, I've been going ahead and I've got, finally, some response from the server.

Please, I know that you are not PHP expert, but, I think that I need the NAMESPACE of the parlayx_third_party_call_service_2_3.wsdl. When I see in the definition, I can see Internet links for that....

Could you please confirm if I'm using the correct NAMESPACE (http://www.csapi.org/schema/parlayx/third_party_call/v2_3/local).

The error that the server is providing me is:

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

)

)

)


Please, understand that my company has expent a lot of money with the ACE and now I'm really fill sad, I expected some PHP examples as well. I've been in this portal and I've not found any think!!!
DipeshGandhi2 [Avatar]

Joined: Nov 14, 2011
Messages: 35
Offline
Hi Josep,

The namespace looks correct as I see it here and as I mentioned previously, we do not have any PHP examples available. As you may know, we require technical support ticket opened via DevConnect portal for assistance with technical issues. In addition, the free technical support at your Registered membership level is limited to basic Tier 1-2 type questions which cover basic informational questions and API / Documentation issues.

Tier 3 and 4 support for more detailed questions, as you have submitted here, is provided through Support-enabled membership. For details please review https://devconnect.avaya.com/public/dyn/d_dyn.jsp?fn=876 Support enabled membership offers more in-depth investigation including trace capture, log file analysis or investigation with Avaya R & D.

We strongly recommend Support-enabled membership as a minimum level of support which allows you to take advantage of additional benefits including; priority response to technical questions, Tier 3 & 4 support for application development and more. A 2013 Support-enabled membership provides a block of ten (10) Enhanced Technical support hours for $2000.

If you wish to gain access to support without becoming a Support-enabled member, you may purchase support for this product at $300 per hour. To continue with per hour support, please open and reply in support ticket with your detailed questions and we will provide an estimate of the number of support hours required. You may then move forward with payment, or take some other avenue to get your issue resolved.

Regards,
Dipesh

Dipesh Gandhi Software Engineer, Avaya DevConnect
Go to:   
Mobile view