VoiceGuide IVR Software Main Page
Jump to content

Wcf From Php

Recommended Posts

Can you post a simple PHP script that connects to the voiceguide WCF and echos the status of the ports?

All of the help I have seen in this forum refers to the example script which is in C.

I do not have a C compiler, I would simply like to see a short script that connects and prints the status.

This should amount to only a few lines of code, so I hope you will consider it.

 

Also, is there a reference or a way to get a list of the interfaces that voiceguide exposes to WCF?

 

I have used WCF with other web services, and have tried a script similar to this one that I have used before, with no luck ...

 

<?php

header('Content-Type: text/plain');

echo "WCF Test\r\n\r\n";

$client = new SoapClient('http://gamma/wcftest/MathService.svc?wsdl');

$obj->x = 2.5;

$obj->y = 3.5;

$retval = $client->Add($obj);

echo "2.5 + 3.5 = " . $retval->AddResult;

?>

Share this post


Link to post

These below ones are the WCF implemented services. Try connecting to these:

 

http://localhost:7131/PortCommandLink?wsdl

 

http://localhost:7131/PortStatus?wsdl

 

The PortStatus one is the that you shoud be using to get port status information.

 

NB. other ones supported are:

 

http://localhost:7131/AcdService?wsdl

 

http://localhost:7131/LineCommandLink?wsdl

 

the WCF service host base addresses are defined in vgIvrService.exe.config - so you can change the base addresses and bindings there if you'd like.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×