From 463ffd8b6132dedf1ecdafe55174b16a50934e38 Mon Sep 17 00:00:00 2001 From: Chrys Exaucet Date: Tue, 16 Aug 2022 04:01:44 +0000 Subject: [PATCH] BAEL-5540: Sending Soap Request via Postman (#12581) * fix(build): remove jaxb2-maven-plugin plugin XCJ fails due to unresolved/conflicting dependencies. The project runs fine without jaxb2-maven-plugin plugin, given maven-jaxb2-plugin is already there. * fix(build): correct gen files imports maven-jaxb2-plugin generates in com.baeldung.springsoap.client.gen, not com.baeldung.springsoap.gen * chore: add postman collection * revert: set back jaxb2-maven-plugin Didn't run project with Java 1.8, that's why I was facing build errors reverts https://github.com/eugenp/tutorials/pull/12581/commits/cb3aed358c94b1e78d6cfdbdf8668b63f6fa1a14 & https://github.com/eugenp/tutorials/pull/12581/commits/56f2b1fd93f02912ab184e929e00ef5f8df04737 --- ...untriesPortService.postman_collection.json | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 spring-soap/src/main/resources/CountriesPortService.postman_collection.json diff --git a/spring-soap/src/main/resources/CountriesPortService.postman_collection.json b/spring-soap/src/main/resources/CountriesPortService.postman_collection.json new file mode 100644 index 0000000000..867186cf79 --- /dev/null +++ b/spring-soap/src/main/resources/CountriesPortService.postman_collection.json @@ -0,0 +1,93 @@ +{ + "info": { + "_postman_id": "46f8f766-3850-44bd-8f6f-58a6da4488de", + "name": "CountriesPortService", + "description": "\n", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "13842218" + }, + "item": [ + { + "name": "getCountry", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "text/xml; charset=utf-8" + } + ], + "body": { + "mode": "raw", + "raw": "\n\n \n \n Spain\n \n \n", + "options": { + "raw": { + "language": "xml" + } + } + }, + "url": { + "raw": "{{CountriesPortSoap11BaseUrl}}/ws", + "host": [ + "{{CountriesPortSoap11BaseUrl}}" + ], + "path": [ + "ws" + ] + } + }, + "response": [ + { + "name": "getCountry response", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "text/xml; charset=utf-8" + } + ], + "body": { + "mode": "raw", + "raw": "\n\n \n The element or type could not be found undefined\n \n\n", + "options": { + "raw": { + "language": "xml" + } + } + }, + "url": { + "raw": "http://localhost:8080/ws", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "ws" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "xml", + "header": [ + { + "key": "Content-Type", + "value": "text/xml; charset=utf-8" + } + ], + "cookie": [], + "body": "\n\n \n The element or type could not be found undefined\n \n\n" + } + ] + } + ], + "variable": [ + { + "key": "CountriesPortSoap11BaseUrl", + "value": "http://localhost:8080", + "type": "any" + } + ] +} \ No newline at end of file