Skip to main content
1-Visitor
March 15, 2011
Question

XUI, Javascript, and calling a simple Web Service

  • March 15, 2011
  • 1 reply
  • 2456 views

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:

  1. call a web service using the two values identified by the user
  2. 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-Visitor
    May 11, 2011

    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.