Creating the Remedy Web Service

This section shows how to create a Remedy Web service for obtaining category, type, and item data.

StepsObtaining the CTI values

  1. Open the Remedy Administrator wizard and enter your login information.

  2. Select Servers | Host |Web Services, where Host is the name of the Remedy server. Right-click Web Services, and select New Web Service.

  3. In the New Web Service window, make the following entries:

    Figure 8-2: New Web Service window

  4. Click Input Mapping to define the input mapping as shown.

    Figure 8-3: Input mapping window

    Click OK.

  5. Click Output Mapping to define the output mapping as shown.

    Figure 8-4: Output mapping window

    The ROOT element can be left unmapped, but the getListValues entry is mapped to the SHR:Categorization entry in the form. Category, Type, and Item are mapped to the corresponding entries in the form.

    Click OK.

  6. Click the Permissions tab to assign the appropriate permissions to the Web Service. From the No Permission list, select Public and click Add.

  7. From the main menu, select File | Save | Web Service to save the Web Service.

  8. Verify the WSDL is accessible from the Remedy midtier server.

    1. Click the WSDL tab.

    2. Edit the WSDL URL field according to the instructions on the tab.

    3. Click View.

    4. A WSDL similar to the one shown below displays.

      Figure 8-5: Remedy WSDL file

      Now you can use this Web Service in Unwired Accelerator to obtain and link the Category, Type, and Item values automatically to your Remedy UA insert and update applications.

StepsImporting the UA linked parameter application

  1. In Mobile Web Studio, select Build | Applications.

  2. In the toolbar above the detail pane, click Import/Export.

  3. In the Export/Input window, click the Import tab.

  4. Click Browse to navigate to the %UA80%\tomcat\webapps\onepage\portlets\jsp\custom\remedy direcotry, and double-click the RemedyMenuSelections.xml file.

    Click Upload, then click OK in the confirmation pop-up window.

  5. Click Import.

  6. Click OK in the pop-up window that confirms the import was successful. You see see the RemedyMenuSelections application in the list of approved applications.

  7. In the Approved applications detail view, right-click the RemedyMenuSelections application and select Edit.

  8. In the Application Builder, in the left pane, you see the RemedyMenuSelections application contains three elements. Right-click the RemedyRSDList element and select Edit | Definition. The Web Service Element window appears.

  9. In WSDL URL, you must change the server names and port numbers to match your installation of the Remedy server and Remedy midtier server. Click Finish.

  10. Repeat steps 8 and 9 for each element contained in the RemedyMenuSelections application.

  11. After editing the definitions of each of the three elements, click Save in the Application Builder window to save the changes.

StepsLinking the parameters in the ModifyHelpDeskCase and CreateHelpDeskCase applications

  1. In Mobile Web Studio, select the ModifyHelpDeskCase application, and click Edit.

  2. In the Application Builder, click Params.

  3. In the Configure Parameters window, click Next.

  4. For the Category parameter, under Display Type, select Linked.

  5. Next to the Category parameter, click Add.

  6. In the Find Portlet window, click Search.

  7. In the Results pane, select the Category Query Web service you created in Remedy and click Add.

  8. In the Configure Parameters window, click Save.

This procedure enables the ModifyHelpDeskCase and CreateHelpDeskCase application to automatically show the defined CTI values in the relevant fields as drop-down lists.

Now you can deploy the Remedy application and try it out. See Chapter 11, “Deploying Applications to BlackBerry Devices.”

For additional information, see RemedyHelpDeskSample.doc located in %UA80%\tomcat\webapps\onepage\portlets\jsp\custom\remedy, which documents the Remedy sample included in UA.