{"id":29054234,"url":"https://github.com/specmatic/specmatic-order-bff-wsdl","last_synced_at":"2025-06-27T02:07:10.412Z","repository":{"id":274773146,"uuid":"923376680","full_name":"specmatic/specmatic-order-bff-wsdl","owner":"specmatic","description":"Sample project to demonstrate Specmatic WSDL support to Mock and Test services based on WSDL files","archived":false,"fork":false,"pushed_at":"2025-06-02T05:52:58.000Z","size":1818,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-06-02T07:34:47.657Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/specmatic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-28T05:55:58.000Z","updated_at":"2025-06-02T05:54:12.000Z","dependencies_parsed_at":"2025-06-02T07:34:55.099Z","dependency_job_id":"c2eef15f-c2f3-4b8a-968b-5369f5724ad4","html_url":"https://github.com/specmatic/specmatic-order-bff-wsdl","commit_stats":null,"previous_names":["znsio/specmatic-order-bff-wsdl","specmatic/specmatic-order-bff-wsdl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/specmatic/specmatic-order-bff-wsdl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-bff-wsdl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-bff-wsdl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-bff-wsdl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-bff-wsdl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/specmatic","download_url":"https://codeload.github.com/specmatic/specmatic-order-bff-wsdl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/specmatic%2Fspecmatic-order-bff-wsdl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262175245,"owners_count":23270423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-27T02:07:07.816Z","updated_at":"2025-06-27T02:07:10.392Z","avatar_url":"https://github.com/specmatic.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WSDL Java Sample Project\n\n## Architecture\n\n### Production Setup\n\n```\n+-------------------+         +--------------------------+         +-------------------+\n|                   |         |                          |         |                   |\n|  WSDL SOAP Client |         |  Product BFF Search      |         |  order_api        |\n|                   |         |  Service (BFF)           |         |  (WSDL Service)   |\n+---------+---------+         +-----------+--------------+         +---------+---------+\n          |                               |                                  |\n          | 1. Request (SOAP)             |                                  |\n          +------------------------------\u003e|                                  |\n          |                               |                                  |\n          |                               | 2. Request (SOAP)                |\n          |                               +---------------------------------\u003e|\n          |                               |                                  |\n          |                               |                3. Response (SOAP)|\n          |                               |\u003c---------------------------------+\n          | 4. Response (SOAP)            |                                  |\n          +\u003c------------------------------+                                  |\n```\n\n### Contract Test Setup\n\n```\n+-------------------------+         +--------------------------+         +----------------------+\n|                         |         |                          |         |                      |\n| Specmatic Contract Test |         |  Product BFF Search      |         |  Specmatic Mock      |\n|   (WSDL of BFF)         |         |  Service (BFF)           |         |  (WSDL of order_api) |\n+-----------+-------------+         +-----------+--------------+         +----------+-----------+\n            |                                   |                                   |\n            | 1. Request (SOAP)                 |                                   |\n            +----------------------------------\u003e|                                   |\n            |                                   |                                   |\n            |                                   | 2. Request (SOAP)                 |\n            |                                   +----------------------------------\u003e|\n            |                                   |                                   |\n            |                                   |                3. Response (SOAP) |\n            |                                   |\u003c----------------------------------+\n            | 4. Response (SOAP)                |                                   |\n            +\u003c----------------------------------+                                   |\n            |                          \n            |--------------------+\n            | 5. Assert response |\n            | against WSDL spec  |\n            +\u003c-------------------+\n```\n\n## Running Contract Test and Mock Programmatically\n\nPlease refer to [ContractTest.kt](src/test/kotlin/com/component/orders/ContractTest.kt)\n\nOnce you run the test the report should be available at `build/reports/specmatic/html/index.html`.\n\n## Running the Specmatic WSDL Mock Server from Command Line using Docker\n\n```shell\ndocker run -p \"8090:9000\" -v \"$(pwd):/usr/src/app\" znsio/specmatic stub \"./wsdls/order_api.wsdl\"\n```\n\nOR\n\n```shell\njava -jar specmatic.jar stub --port 8090 ./wsdls/order_api.wsdl\n```\n\nNow we can verify if the stub server is running\n1. Open SOAPUI\n2. Import the wsdl in `wsdls/order_api.wsdl`\n3. Remember to set the endpoint URL to host `localhost` and port `8090`\n4. Send the following request using SOAPUI:\n\n```xml\n\u003cS:Envelope xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"\u003e\n    \u003cS:Body\u003e\n        \u003cns0:CreateOrder xmlns:ns0=\"http://www.example.com/orders\"\u003e\n            \u003cproductid\u003e123\u003c/productid\u003e\n            \u003ccount\u003e1\u003c/count\u003e\n        \u003c/ns0:CreateOrder\u003e\n    \u003c/S:Body\u003e\n\u003c/S:Envelope\u003e\n```\n\nAnd you should get a response like this:\n\n```xml\n\u003cSOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"\u003e\n    \u003cSOAP-ENV:Header/\u003e\n    \u003cSOAP-ENV:Body\u003e\n        \u003cOrderId\u003e\n            \u003cid\u003e10\u003c/id\u003e\n        \u003c/OrderId\u003e\n    \u003c/SOAP-ENV:Body\u003e\n\u003c/SOAP-ENV:Envelope\u003e\n```\n\nAs you can notice, id `10` is returned only when the `productid` is `123` and `count` is `1`. This response is based on example file [`create_order.json`](wsdls/order_api_examples/create_order.json).\nPlease refer to documentation for format of the [example file](https://docs.specmatic.io/documentation/soap.html#examples-as-mock-data).\n\nYou can also run the same WSDL spec as a test against the mock server.\n\n```shell\ndocker run --net host -v \"$(pwd):/usr/src/app\" znsio/specmatic test \"./wsdls/order_api.wsdl\" --port 8090\n```\n\nThe HTML API Coverage Report will be available at `build/reports/specmatic/html/index.html`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecmatic%2Fspecmatic-order-bff-wsdl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspecmatic%2Fspecmatic-order-bff-wsdl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecmatic%2Fspecmatic-order-bff-wsdl/lists"}