Identify Operations to Implement

You can use SoapUI to identify an operation you need to implement by making the API fail. You use the OrderTshirt operation to create a request in SOAP UI to place an order for a large t-shirt for John. The API cannot handle this operation and a SOAP fault occurs.

  1. In SoapUI, create a new SOAP project using the URL for your deployed Mule APIkit project for the initial WSDL.
    In this workflow, the URL is http://localhost:8081/TshirtService/TshirtServicePort?wsdl:

    New SOAP project window displaying the initial WSDL as http://localhost:8081/TshirtService/TshirtServicePort?wsdl.
  2. In SoapUI, request a large t-shirt for John by entering some values into the request envelope:

    1. Select Projects > TshirtServicePort?wsdl > TshirtServiceSoapBinding > OrderTshirt > Request 1.

    2. Enter L between the <size> tags.

    3. Enter John between the <name> tags.

  3. Submit the request.

    The result is the SOAP fault.

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
          <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope">
             <faultstring>Operation [OrderTshirt:\soapkit-config] not implemented</faultstring>
Was this article helpful? Thanks for your feedback!
View on GitHub