cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

XUI, Javascript, and calling a simple Web Service

TomLeoboldt
1-Visitor

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:

  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

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.

Announcements

Top Tags