skip to main content
Corticon Server: Integration & Deployment Guide : Service contract examples : Examples of XSD and WSDLS available in the Deployment Console : Decision-service-level XML schema, HIER XML messaging style
 

Try Corticon Now
Decision-service-level XML schema, HIER XML messaging style
When Decision Service is selected in input option 1 of Deployment Console: Service Contract Specifications, the XML Messaging Style input option becomes inactive (grayed out). This occurs because the XML Messaging Style option at the Decision Service level becomes the governing setting.
As many sections are identical from one type to another, the following links connect to the relevant sections in Vocabulary-level XML schema, FLAT XML messaging style, with variances noted:
*Decision-Service-Level XSD, HIER XML Messaging Style - See below.
*Header
*CorticonRequestType and CorticonResponseType
*WorkDocumentsType
*MessagesType
*VocabularyEntityNameType and VocabularyAttributeNameTypes - The structure of this section of the XSD is identical to the Vocabulary-level HIER version. However, a Decision-Service-level service contract will contain only those entities and attributes from the Vocabulary that are actually used by the rules in the Decision Service. This means that a Decision-Service-level service contract will typically contain some subset of the entities and attributes contained in the Vocabulary-level service contract.

Decision-Service-Level XSD, HIER XML Messaging Style

<?xml version=1.0 encoding=UTF-8?>
<definitions xmlns=http://schemas.xmlsoap.org/wsdl/
xmlns:tns=http://localhost:8850/axis/services/Corticon/tutorial_example
xmlns:cc=urn:decision:tutorial_example
xmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/
targetNamespace=http://localhost:8850/axis/services/Corticon/tutorial_example>
  <types>
    <xsd:schema xmlns:tns=urn:decision:tutorial_example
targetNamespace=urn:decision:tutorial_example
elementFormDefault=qualified>
      <xsd:element name=CorticonRequest type=tns:CorticonRequestType />
      <xsd:element name=CorticonResponse type=tns:CorticonResponseType />
      <xsd:complexType name=CorticonRequestType>
        <xsd:sequence>
          <xsd:element name=WorkDocuments type=tns:WorkDocumentsType />
        </xsd:sequence>
The Decision Service Name has been automatically included here:
<xsd:attribute name=decisionServiceName use=required
fixed=tutorial_example type=xsd:string />
        <xsd:attribute name=decisionServiceTargetVersion use=optional
type=xsd:decimal />
        <xsd:attribute name=decisionServiceEffectiveTimestamp
use=optional type=xsd:dateTime />
      </xsd:complexType>
      <xsd:complexType name=CorticonResponseType>
        <xsd:sequence>
          <xsd:element name=WorkDocuments type=tns:WorkDocumentsType />
          <xsd:element name=Messages type=tns:MessagesType />
        </xsd:sequence>
The Decision Service Name has been automatically included here:
<xsd:attribute name=decisionServiceName use=required
fixed=tutorial_example type=xsd:string />
        <xsd:attribute name=decisionServiceTargetVersion
use=optional type=xsd:decimal />
        <xsd:attribute name=decisionServiceEffectiveTimestamp
use=optional type=xsd:dateTime />
      </xsd:complexType>
      <xsd:complexType name=WorkDocumentsType>
      <xsd:choice minOccurs="0">
<xsd:choice maxOccurs=unbounded>
<xsd:element name=Cargo type=tns:CargoType />
      </xsd:choice>
HIER message style:
<xsd:attribute name=messageType fixed=HIER use=optional />
      </xsd:complexType>
      <xsd:complexType name=MessagesType>
        <xsd:sequence>
          <xsd:element name=Message type=tns:MessageType minOccurs=0
maxOccurs=unbounded />
        </xsd:sequence>
        <xsd:attribute name=version type=xsd:string />
      </xsd:complexType>
      <xsd:complexType name=MessageType>
        <xsd:sequence>
          <xsd:element name=severity>
            <xsd:simpleType>
              <xsd:restriction base=xsd:string>
                <xsd:enumeration value=Info />
                <xsd:enumeration value=Warning />
                <xsd:enumeration value=Violation />
              </xsd:restriction> 
           </xsd:simpleType>
          </xsd:element> 
         <xsd:element name=text type=xsd:string /> 
         <xsd:element name=entityReference>
            <xsd:complexType> 
             <xsd:attribute name=href type=xsd:anyURI />
            </xsd:complexType>
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name=CargoType>
        <xsd:sequence>
          <xsd:element name=container type=xsd:string nillable=false
minOccurs=0 />
          <xsd:element name=needsRefrigeration type=xsd:boolean nillable=true
minOccurs=0 />
          <xsd:element name=volume type=xsd:long nillable="false
minOccurs=0 />
          <xsd:element name=weight type=xsd:long nillable="false
minOccurs=0 />
        </xsd:sequence> 
       <xsd:attribute name=id type=xsd:ID use=optional /> 
       <xsd:attribute name=href type=xsd:anyURI use="optional /> 
     </xsd:complexType>
    </xsd:schema>
  </types>
  <message name=CorticonRequestIn>
    <part name=parameters element=cc:CorticonRequest /> 
</message>
  <message name=CorticonResponseOut>
    <part name=parameters element=cc:CorticonResponse /> 
</message>
  <portType name=tutorial_exampleSoap>
<operation name=processRequest>
      <input message=tns:CorticonRequestIn /> 
     <output message=tns:CorticonResponseOut />
    </operation>
  </portType>
  <binding name=tutorial_exampleSoap type=tns:tutorial_exampleSoap>
    <soap:binding transport=http://schemas.xmlsoap.org/soap/http
style=document />
    <operation name=processRequest>
      <soap:operation soapAction=urn:Corticon style=document />
      <input> 
       <soap:body use=literal namespace=urn:Corticon />
      </input>
      <output>
        <soap:body use=literal namespace=urn:Corticon />
      </output>
    </operation>
  </binding>
  <service name=tutorial_example>
    <documentation />
    <port name=tutorial_exampleSoap binding=tns:tutorial_exampleSoap>
      <soap:address location=http://localhost:8850/axis/services/Corticon />
    </port>
  </service>
</definitions>