Documentation Center

JavaServer pages tutorial

A tutorial that walks you through some of the system web service JavaServer pages.

Procedure

  1. In WorldServer, go to Tools > Translation Memories.
  2. Select an existing translation memory (TM).
  3. Using the Standard search type, identify a source language, two target languages, and some Search For terms and Minimum Score % percentages that return a couple of TM entries.
  4. Go to Tools > Term databases.
  5. Select an existing term database (TD).
  6. Identify a Search In language and a Search For term that return a couple of TM entries.
  7. In your browser's address bar, enter the following, and then select Enter: http://<ws-host>:<ws-port>/ws-legacy/webservices/WSContext/Main.jsp, where <ws-host> is the name or IP address of the machine on which WorldServer is installed and <ws-port> is the number of the port on which WorldServer is installed.
  8. Under Methods, select loginUser(String, String).
  9. Enter your user name and password in the appropriate boxes, and then select Invoke.
    The method is executed.
  10. Under Result, in the Object column, select WSContext.
  11. On the WorldServer Services page, select TmManager Service.
  12. Under Methods, select getAllTms(), and then, under Parameters, select Invoke.
  13. Under Result, in the Object column, select tm.WSTm in the row corresponding to the TM that you selected in step 2.
  14. Under Methods, select lookupSubstring(String, linguistic.WSLanguage, linguistic.WSLanguage, double).
  15. Under Parameters, in the searchText, sourceLanguage, targetLanguage, and minimumScore boxes, enter the values that you wrote down in step 3.
  16. Select Invoke.
    The TM results for the standard lookup of your search text are displayed under Result.
  17. Under Methods, select searchFreeform(String, linguistic.WSLanguage, linguistic.WSLanguage, int).
  18. Under Parameters, in the freeformQuery, sourceLanguage, targetLanguage, and maxResults boxes, enter the values that you wrote down in step 3.
  19. Select Invoke.
    The TM results for the freeform SQL wildcard query of your search text are displayed under Result.
  20. On the upper-right side of the Parameters frame, select Services to return to the WorldServer Services page.
  21. On the WorldServer Services page, select TdManager Service.
  22. Under Methods, select getTds(), and then, under Parameters, select Invoke.
  23. Under Result, in the Object column, select td.WSTd in the row corresponding to the TD that you selected in step 5.
  24. Under Methods, select lookupWithWildcards2(String, linguistic.WSLanguage, linguistic.WSLanguage).
  25. Under Parameters, in the termPattern, language, and targetLanguage boxes, enter the values that you wrote down in step 6.
  26. Select Invoke.
    The TD results that contain your search term are displayed under Result.