[Freeswitch-users] Calling Web service from Freeswitch

Alain MELIOT alain.meliot at gmail.com
Mon Apr 26 10:12:59 PDT 2010


Hi steven

Thank you for your answer
i will try

2010/4/26 Steven Ayre <steveayre at gmail.com>

> To use mod_curl to do a GET/POST request:
>
> <action application="curl"
> data="http://www.myhost.com/script?getName=myGetValue" />
> <action application="curl" data="http://www.myhost.com/script post
> postName=myPostValue%20a%20space" />
>
> You'd have to form a request string to match what your application expects.
> E.g.
> <action application="curl" data="http://www.myhost.com post
> username=${username}&ip=${network_addr}"/>
>
> You can parse the XML from a script after the curl request, you'll
> find the curl_response_code and curl_response variables contain the
> HTTP status code (200 if ok) and XML result.
>
> -Steve
>
>
> On 26 April 2010 17:28, Alain MELIOT <alain.meliot at gmail.com> wrote:
> >
> > Hi All
> >
> > New to freeswitch i rewrite an asterisk application to freeswitch.
> > I have a javascript application where i collect some user data and i must
> > send  the data to a web service (wsdl) for processing.
> > The problem is that i have no idea  how to call the web service from curl
> or
> > javascript.
> > Any help will be welcome.
> > Thank in advance
> >
> > Alain MELIOT
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> >
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100426/aecdc6cc/attachment.html 


More information about the FreeSWITCH-users mailing list