https://github.com/dottorblaster/soappatrol
Run a an easily configurable SOAP mock server
https://github.com/dottorblaster/soappatrol
Last synced: about 1 year ago
JSON representation
Run a an easily configurable SOAP mock server
- Host: GitHub
- URL: https://github.com/dottorblaster/soappatrol
- Owner: dottorblaster
- License: apache-2.0
- Created: 2024-05-29T17:44:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T08:44:17.000Z (over 1 year ago)
- Last Synced: 2025-03-25T09:42:36.412Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# soappatrol
**soappatrol** is a program written in the Go programming language that spawns a SOAP mock server generated from a configuration file. It allows you to simulate a SOAP server for testing and development purposes, having it listening on a Unix socket of your choice.
## Features
- Generates a SOAP mock server from a configuration file
- Supports multiple SOAP endpoints and responses
- Listens on a UNIX socket
- Easy to use command-line interface
## Installation
To install soappatrol, you will need to have Go installed on your system. You can then install it using the Go package manager:
Text Only
go install github.com/dottorblaster/soappatrol@latest
## Usage
To use soappatrol, you need to create a configuration file that defines the SOAP endpoints and responses. Here's an example configuration file:
```toml
[[request]]
action = "operationFoo"
tagname = "barRequest"
response = """
Hello, world!
"""
```
To start the SOAP mock server, run the following command:
```
soappatrol /path/to/socket.sock path/to/config.toml
```
The server will start listening on the socket of your choice. You can then send SOAP requests to the configured endpoints.
## Thanks to
- [Teknoraver](https://github.com/teknoraver) for [this gist](https://gist.github.com/teknoraver/5ffacb8757330715bcbcc90e6d46ac74) about implementing http listen on Unix sockets
- [Foomo](https://github.com/foomo/) for their SOAP library, which I embedded in this project because I needed some downstream modifications
## Contributing
If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on the GitHub repository.