Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muneeb706/soap-request-builder
Sample project to give an idea on how to convert REST API request in JSON to SOAP Request.
https://github.com/muneeb706/soap-request-builder
equifax json json-to-xml-converter python rest-api soap-request soap-web-services xml
Last synced: 30 days ago
JSON representation
Sample project to give an idea on how to convert REST API request in JSON to SOAP Request.
- Host: GitHub
- URL: https://github.com/muneeb706/soap-request-builder
- Owner: muneeb706
- Created: 2020-08-12T06:48:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-14T18:54:55.000Z (12 months ago)
- Last Synced: 2024-10-16T07:45:09.178Z (3 months ago)
- Topics: equifax, json, json-to-xml-converter, python, rest-api, soap-request, soap-web-services, xml
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SOAP Request Builder
This project demonstrates how to convert a JSON request into an XML SOAP request. It uses sample data to build a Start Transaction request for the [Equifax](https://www.equifax.com/personal/) Start Transaction Service.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
The project is written in Python (tested with python 3.9.1). You need to have Python installed on your machine. You can download Python [here](https://www.python.org/downloads/).
### Installation
1. Clone the repository:
```
git clone https://github.com/muneeb706/soap-request-builder.git
```
2. Navigate to the project directory:
```
cd soap-request-builder
```
3. Install the dev dependencies:
```
pip install -r requirements-dev.txt
```### How to run
Run the `main.py` script:
```
python main.py
```This will execute the `main.py` script, which uses the `StartTransactionRequestBuilder` class to convert a JSON request into a SOAP request. The SOAP request will be printed in the terminal.
### Running the Tests
After installing the dev dependencies, you can run the unit tests and generate a coverage report.
1. Navigate to the project directory:
```
cd soap-request-builder
```
2. Run the tests with coverage:
```
coverage run -m unittest discover tests
```
3. Generate the coverage report:
```
coverage report -m
```This will execute the unit tests and print a coverage report in the terminal. The coverage report shows the percentage of your code that is covered by the tests.