Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. From the Project Solutions node select the New Solution menu item.
  2. Select the SOAP Agent Wizard tool and enter or select the Group folder to receive the project file and WSDL document.
  3. Enter the project File name. The extension '.soap.prj' is added automatically.
  4. Image Removed
  5. Image Added
  6. Press the OK button to select the WSDL file to be used.
  7. Image Removed
  8. Image Added
  9. Press the browse button to enter the URL to the WSDL file. If the WSDL file resides on the local file system press the next browse button to access the file system dialog box.
  10. Image Removed
  11. Image Added
     If the required URL is on the clipboard, then use CNTRL-V to paste it into the text field.
  12. Image Removed
  13. Image Added
  14. Image Removed
  15. Image Added
  16. Press the OK button to return to the main dialog box. The Project Source field contains the file name that will be used to store the WSDL when it is retrieved using the URL. This file name can be changed.
    The Wrapped Support check box is used to enable/disable "wrapped" document/literal style support.
    The Namespace Map is used to map all namespaces in the WSDL document to the same Java package name.
  17. Image Removed
  18. Image Added
  19. Press the OK button to create the project.
  20. Image Removed
  21. Image Added
    The project name is used in the creation of the JAR file name and the service class name.
    The JAR file contains the Axis generated classes that handle the SOAP transaction and the generated service class.
    SOAP operations that are available are displayed in the left scroll panel.
    When an operation is selected the parameters and return parameter are displayed in right scroll panels.
  22. Image Removed
  23. Image Added

    The parameter nodes can be marked to accept and handle data in different ways.

    Different icons indicate the node types:

  24. Image Removed
  25. Image Added

    Node is ignored.

  26. Image Removed
  27. Image Added

    Node is a field.

  28. Image Removed
  29. Image Added

    Node is a fixed value.

  30. Image Removed
  31. Image Added

    Node is a list.

  32. Image Removed
  33. Image Added

    Node is a list field.

  34. Image Removed
  35. Image Added

    Node is a fragment.

  36. Image Removed
  37. Image Added

    Node is stream file.

    In the following diagram the parameter has been marked as a fragment and a SET FRAGMENT command will be required to set the field values.

  38. Image Removed
  39. Image Added
    Also, it is possible to leave the parameter unmarked and mark the fields. These fields will receive their values when the SET PARAMETER command is executed. The ignore fields will not have their values set and will default to null for Strings and objects and zero for primitive numbers.

  40. Image Removed
  41. Image Added
    Fragment, list, list field and field nodes require the program field name for binding to occur between the program field and SOAP transaction. You can also use the 7.21 LANSA Repository Viewer to drag and drop a LANSA field name onto a node.

  42. Use the pop-up Edit menu or <Enter> key to access the entity attribute dialog.
  43. Image Removed
  44. Image Added

  45.  Enter the program field name, fragment or list name and press the OK button.
      
  46. Image Removed
  47. Image Added
  48. Press the build button to generate and compile the service, this service class will be added to the jar file.
  49. Image Removed
  50. Image Added
    All generated code and compiled classes exist in the compile-agent sub directory. 
    Files containing service properties are created in the solution directory and samples are created in the samples sub directory.
  51. Image Removed
  52. Image Added