Audium Knowledge Base

Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Jump to ID Browse by Category
Can Audium software integrate with web services?
Categories: Audium OpenSDK
Article ID: 269
Last updated: November 02, 2006
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful

SUMMARY

This article explains how you can create custom components that interact with web services.

SYMPTOMS

Developer's organization/company has one or more web services available that the developer would like their voice application's custom components to communicate with.

RESOLUTION

Web services are a valuable cross-language way to share application functionality and data.  Once hosted on a server, they are able to perform HTTP communication with other applications requesting their service.  Interaction between web services and clients that access them is performed via an exchange of XML data, although many APIs shield this layer from the developer.

Since custom Audium components (e.g. start of call classes, elements, loggers, etc.) are written in Java, developers are free to access any technologies that are available in Java, including web services.  One popular API used to help developers integrate Java classes with web services is JAX-RPC.  Since this API can be used in any custom Java class, it can be used in your custom Audium classes as well. 

If you have existing Java classes (outside of Audium) that interact with web services, you may already be making use of APIs and libraries for web services integration; you can use these same APIs and libraries in your custom Audium code.

An example of a custom Audium voice element that interacts with web services might be one that checks the weather.  The element would perform all standard Audium functionality (e.g. providing its name to Studio, providing VoiceXML to Call Services, etc.) but it could also call a web service during any of these processes. 

For example, in its addXmlBody() method, you might first call a web service (maybe utilizing JAX-RPC to simplify this task) to request weather data for the caller's region.  Then, later in that method, the element could produce VoiceXML (via the Voice Foundation Classes) that outputs the newly discovered weather information to the caller.

For more information about creating custom elements, please refer to the following resources, all of which can be found on Audium Support Center:

Visitor Comments
No visitor comments posted. Post a comment
Related Questions
Attachments
No attachments were found.

Copyright (c) 2005 Audium Corporation. All rights reserved.
Audium Home | Audium Support Center Home | Audium Customer Care Home