Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
JWebServices for Exchange
>
Tutorial
> Play on phone
The following example shows you how to play a message on the specified phone.
import com.independentsoft.exchange.UnifiedMessagingService; import com.independentsoft.exchange.ServiceException; public class Example { public static void main(String[] args) { try { UnifiedMessagingService unifiedMessagingService = new UnifiedMessagingService("https://myserver/UnifiedMessaging/service.asmx", "username", "password"); String response = unifiedMessagingService.playOnPhone("AAAAAGsd2rbQLVtLobUGbrq/9IUHAEX2ikn/L8JJtI5WHI0FAW8AAAFXHhsAACxVpEl+KVVLl957wp//x6UAGAetcDUAAA==", "12345"); System.out.println(response); } catch (ServiceException e) { System.out.println(e.getMessage()); System.out.println(e.getXmlMessage()); e.printStackTrace(); } } }
Need help? Ask our developers:
Name*
Email*
Message*