diff --git a/docs/soap_plugin.md b/docs/soap_plugin.md index fb1191ae3..2bf5c6100 100644 --- a/docs/soap_plugin.md +++ b/docs/soap_plugin.md @@ -285,35 +285,35 @@ response: Now, `example.groovy` can control the responses, such as: -1. **the content of a file to return** - - ```groovy - respond().withFile('some-file.xml') - ``` - -2. **a literal string to return** - - ```groovy - respond().withContent(''' - - - - - 3 - Custom pet name - - - - ''') - ``` - -3. **a specific HTTP status code** - - Setting the status code to 500 will trigger a fault message to be returned if one is defined within the WSDL document. - - ```groovy - respond().withStatusCode(500) - ``` +#### Return the content of a file + +```groovy +respond().withFile('some-file.xml') +``` + +#### Return a literal string + +```groovy +respond().withContent(''' + + + + + 3 + Custom pet name + + + +''') +``` + +#### Return a specific HTTP status code + +Setting the status code to 500 will trigger a fault message to be returned if one is defined within the WSDL document. + +```groovy +respond().withStatusCode(500) +``` #### Scripting examples