Edit the Schema and WSDL Files

To edit the schema and WSDL files:

  1. Create a synchronous BPEL process (for this example, named TestProcess) using the default settings in the Create BPEL Process dialog.
  2. In the Schemas folder of the Applications window, double-click the TestProcess.xsd file.
  3. Click Source view, and add a new element called processFault:
    <element name="processFault">
         <complexType>
             <sequence>
                  <element name="result" type="string"/>
             </sequence>
         </complexType>
    </element>
    
  4. In the Applications window, expand the WSDLs folder.
  5. Double-click the TestProcess.wsdl file.
  6. Click Source view, and add a new message type called TestProcessFaultMessage.
    <wsdl:message name="TestProcessFaultMessage">
         <wsdl:part name="payload" element="client:processFault"/>
    </wsdl:message>
    
  7. Edit the operation element in the WSDL file to add a fault.
    <wsdl:operation name="process">
          <wsdl:input  message="client:TestProcessRequestMessage" />
          <wsdl:output message="client:TestProcessResponseMessage"/>
          <wsdl:fault name="FaultResponse" message=" 
           client:TestProcessFaultMessage"/>
    </wsdl:operation>
    
  8. From the File menu, select Save.