XUI, Javascript, and calling a simple Web Service
‎Mar 15, 2011
10:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Mar 15, 2011
10:50 AM
XUI, Javascript, and calling a simple Web Service
Hello everyone,
I have a very simple XUI dialog that is launched from ACL that consists of a dropdown control, a text field, an OK button and a Cancel button. When the user clicks the OK button, I need to perform the following tasks:
- call a web service using the two values identified by the user
- grab the body of the web response and return it to the ACL module that launched the XUI dialog
I assume the tasks shown above can be performed from javascript associated with the OK button. Has anyone done this before and can you offer any suggestions? I looked at the AOM javadoc and do not see any HTTP classes listed.
Any suggestions will be greatly appreciated.
Regards,
Tom
1 REPLY 1
‎May 11, 2011
07:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎May 11, 2011
07:22 AM
We use the old apache commons httpclient for tasks like this, but you could use the shiny new Apache HttpComponents Client. Download jar from hc.apache.org, install in custom/classes and you can access it from javascript.