Giter Club home page Giter Club logo

soapsimulator's Introduction

SoapSimulator

ASP.Core Server for Simulating SOAP Protocol. Only useful as a testing environment. This sample uses opensource package SoapCore

General Usage

The current configuartion ignores any request validation this is mainly for cases where you just want to test various responses from actual soap services. To change this behaviour set RequestValidation property inside appsettings.json file to true.

{
  "ConnectionStrings": {
    "DefaultConnection": "Data Source = sysConfig.db"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information",
      "Microsoft.EntityFrameworkCore": "Information"
    }
  },
  "AllowedHosts": "*",
  "urls": "http://::5003",
  "RequestValidation": true
}

Sample Response from the server for the soap request http://locahost:5003/soap/GetTransactions

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapcore="http://soapsimulator/SoapSimulator.Core" xmlns:core="http://schemas.datacontract.org/2004/07/SoapSimulator.Core" xmlns:array="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <s:Body>
        <soapcore:ExecuteActionResponse>
            <soapcore:ExecuteActionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                <soapcore:Data i:type="core:DynamicXmlObject">
                    <Transaction>
                        <Transaction>
                            <Date>2022-02-16T17:30:45</Date>
                            <CreditValueDate>2022-02-16T17:30:45</CreditValueDate>
                            <DebitValueDate>2022-02-16T17:30:45</DebitValueDate>
                            <CreditAmount>250.00</CreditAmount>
                            <DebitAccount>10010002</DebitAccount>
                            <CreditAccount>10010003</CreditAccount>
                            <Narration>Transfer to Savings</Narration>
                            <DestinationBankSortCode>BR003</DestinationBankSortCode>
                        </Transaction>
                        <Transaction>
                            <Date>2022-02-17T14:20:10</Date>
                            <CreditValueDate>2022-02-17T14:20:10</CreditValueDate>
                            <DebitValueDate>2022-02-17T14:20:10</DebitValueDate>
                            <CreditAmount>120.00</CreditAmount>
                            <DebitAccount>10010002</DebitAccount>
                            <CreditAccount>10010001</CreditAccount>
                            <Narration>ATM Withdrawal</Narration>
                            <DestinationBankSortCode>BR001</DestinationBankSortCode>
                        </Transaction>
                        <Transaction>
                            <Date>2022-02-18T09:12:34</Date>
                            <CreditValueDate>2022-02-18T09:12:34</CreditValueDate>
                            <DebitValueDate>2022-02-18T09:12:34</DebitValueDate>
                            <CreditAmount>2500.00</CreditAmount>
                            <DebitAccount>10010002</DebitAccount>
                            <CreditAccount>10010001</CreditAccount>
                            <Narration>Salary Payment</Narration>
                            <DestinationBankSortCode>BR001</DestinationBankSortCode>
                        </Transaction>
                    </Transaction>
                </soapcore:Data>
                <soapcore:Message></soapcore:Message>
                <soapcore:Method>GetTransactions</soapcore:Method>
                <soapcore:Status>Success</soapcore:Status>
            </soapcore:ExecuteActionResult>
        </soapcore:ExecuteActionResponse>
    </s:Body>
</s:Envelope>

soapsimulator's People

Contributors

izzyjere avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.