The following example task describes how you can use complex input data:
-
Call the method
echoStringArray of the sample Web service.
The sample Web service is available from
http://demo.borland.com/BorlandSampleService/BorlandSampleService.asmx?WSDL. This service requires an object of the generated class
ArrayOfString as a parameter.
-
Right click
init() and choose
Invoke in the
Design pane to instantiate the
ArrayOfString object.
The
Output Value Wizard opens.
-
Check the
Store as variable check box.
-
Type
myArrayOfString into the
Variable name text box.
-
Click
OK.
The
Output Value Wizard closes.
-
Right click
setString(String[]) and choose
Invoke in the
Design pane to call the
setString method and define the array elements.
-
Use the
Input Value Wizard to pass
myArrayOfString to the
echoStringArray method.