09.12.2012 Views

webMethods Developer User's Guide - Software AG Documentation

webMethods Developer User's Guide - Software AG Documentation

webMethods Developer User's Guide - Software AG Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11. Testing and Debugging Services<br />

Note: If your service expects Object variables that do not have constraints assigned or an<br />

Object defined as a byte[ ], you will not be able to enter those values in the Input dialog<br />

box. To test these values in a service, you must also create a service that generates input<br />

values for your service. Then you need to construct a test harness (a flow service that<br />

executes both the service that produces the test data and the service you want to test) and<br />

use that harness to test your service.<br />

To enter values by typing them<br />

1 Open the service and execute it as described in “Testing Services from <strong>Developer</strong>” on<br />

page 277 or “Testing Services from a Browser” on page 286.<br />

2 For each variable listed in the Input dialog box, type an input value. If the service<br />

takes complex variables such as a String lists, documents, or document lists, use the<br />

following buttons to specify the variable's individual elements.<br />

Use this… To...<br />

Add a row to the variable.<br />

Insert a blank row above the currently selected row.<br />

Add a column to the variable.<br />

Delete the selected row from the variable.<br />

Delete the selected column from the variable.<br />

3 If you want <strong>Developer</strong> to pass empty Strings to the service, select the Include empty<br />

values for String Types check box. When you select this check box, empty Strings are<br />

passed with a zero-length value. If you do not select this check box, empty strings are<br />

not passed to the service.<br />

Note: When you enter values for constrained objects in the Input dialog box, <strong>Developer</strong><br />

automatically validates the values. If the value is not of the type specified by the object<br />

constraint, <strong>Developer</strong> displays a message identifying the variable and the expected type.<br />

<strong>webMethods</strong> <strong>Developer</strong> User’s <strong>Guide</strong> Version 6.5, Service Pack 3 � � � 279

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!