Browsing for Java Parameter or Return Value Types

Parameters and return values used in a Java Service interface must be Java class names or primitive Java datatypes.

The Parameter Type browser allows you to browse for an xsd file that can bind to a Java Class in the project when specifying the datatype for Java service operation parameters.

Enter parameter datatypes values on the Service Interface/Service Binding editor pages as complex types from XSD files. Complex types automatically have Java types generated for them and the correct types appear in the source. You can also specify Java types as parameter types and method return types in the source code and the Java service will automatically generate XSD files and set the parameter datatype as a reference to those XSD files on the Service Interface/Service Binding editor pages.

Note: If you have types defined in an XML schema, you can generate Java classes for those types. Import the XSD file that contains the XML schema to your project. In WorkSpace Navigator, right-click the XSD file and select Create Java Bindings.
  1. On the Service Interface page, expand the Operation Parameters section.
  2. Highlight the parameter that you want to see.

    Its properties display in the Properties section.

  3. Select the Complex Type button in the Datatype field. The XSD browser looks for XSD files in the current project and its build path. You can use a tree browser to locate an XSD file. The elements and complex types of the XSD file are listed on the right side of the browser.
  4. Click the check box next to the XSD file and select one of its elements or a complex type.
  5. Click OK.
Related tasks
Editing Java Service Operation Parameter Properties
Editing Java Service Operation Parameter Lists

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.