Web Services Operations Details (Magic xpi 4.9)
When you define a Web service in the Settings dialog box's Services section, you need to click the Operations button to open the Operations dialog box. Here, you can define the service's operations and their parameters. Click Add under the dialog box left pane to add a new operation. You should assign a unique name to each operation that you add.
The dialog box consists of the following fields:
|
|
Type
|
The operation type. Select one of the following from the drop-down list:
|
Argument Name
|
Enter a valid argument name.
|
Direction
|
Select one of the following from the drop-down list:
|
Data Type
|
The type of data handled by the operation. Select one of the following from the drop-down list:
-
Alpha
-
Numeric
-
Logical
-
Date
-
Time
-
BLOB
|
Picture
|
Define the returned parameter's format by entering a string of characters. For example, a 15-character alpha-numeric parameter has a picture definition of 15.
|
XSD Type
|
This field defines the XML document's data type format. Select one of the following XSD types from the drop-down list:
-
Attachment
-
XML Document – If you select this option and then click , the Optional schema based document dialog box will open. In this dialog box, you can select the schema that defines the XML that is returned to the invoker. You must select a schema that already has a namespace defined in it.
-
xsd:base64Binary
-
XSD:string
|
XML Schema
|
Select a predefined XML schema from the Settings dialog box's Resources section.
|