skip to main content
Corticon Server: Deploying Web Services with Java : Consuming a Decision Service on Java server : Path 3: Using SOAP client to consume a Decision Service : Creating a Java Server service contract using the Deployment Console

Try Corticon Now
Creating a Java Server service contract using the Deployment Console
Launch the Deployment Console, and then perform the following steps to generate a service contract.
Note: The Deployment Console options are also described in detail in the Corticon Server: Integration & Deployment Guide.
Figure 387. Deployment Console's Service Contract Specification Window
1. Decision Service Level / Vocabulary Level. These radio buttons determine whether one service contract is generated per listed Ruleflow, or if a single master service contract is generated from the entire Vocabulary. A Decision Service-level service contract is usable only for a specific Decision Service, whereas a Vocabulary-level service contract can be used for all Decision Services that were built using that Vocabulary. Choose the option that is most compatible with your SOAP tool.
2. Vocabulary File. If generating a Vocabulary-level service contract, enter the Vocabulary file name (.ecore) here. If generating a Decision Service-level contract, this field is read-only and shows the Vocabulary associated with the currently highlighted Ruleflow row above.
3. Type. This is the service contract type: WSDL, XML Schema, or none. Note, that the Generate Service Contracts button will be enabled only when Type is set to either WSDL or XML Schema.
4. XML Messaging Style.  Describes the message style, flat or hierarchical, in which the WSDL will be structured.
5. SOAP Server URL. URL for the SOAP node that is bound to the Corticon Server. Enabled for WSDL service contracts only. The default URL http://localhost:8850/axis/services/Corticon makes a Decision Service available to the default Corticon Server installation performed earlier. Note: this URL can be changed and additional URLs can be added to the drop-down list. See see Configuring Corticon properties and settings in Server Integration & Deployment Guide for details.
6. Generate Service Contracts. Use this button to generate either the WSDL or XML Schema service contracts into the output directory. If you select Decision Service-level contracts, one service contract per Ruleflow listed at top will be created. If you select Vocabulary-level, only one contract is created per Vocabulary file.