soapless (alpha)
soapless is a go library providing a procedural and configurable SOAP messaging API.
Usage
Working examples can be demonstrated with the open source SOAP web service from Weather.gov.
Simple default Latitude & Longitude request
curl \
-d '{
"service": "https://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php",
"requestBody": "https://graphical.weather.gov/xml/docs/SOAP_Requests/LatLonListZipCode.xml",
"responseMap": { "latLonList": {} }
}' \
-H 'Content-Type: application/json' \
https://gfv1670v1c.execute-api.us-east-1.amazonaws.com/release | jq
Simple configurable Latitude & Longitude request
curl \
-d '{
"service": "https://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php",
"requestBody": "https://graphical.weather.gov/xml/docs/SOAP_Requests/LatLonListZipCode.xml",
"requestMap": { "listZipCodeList": "33401" },
"responseMap": { "latLonList": {} }
}' \
-H 'Content-Type: application/json' \
https://gfv1670v1c.execute-api.us-east-1.amazonaws.com/release | jq
Complex configurable Latitude & Longitude request
curl \
-d '{
"service": "https://graphical.weather.gov:443/xml/SOAP_server/ndfdXMLserver.php",
"requestBody": "https://graphical.weather.gov/xml/docs/SOAP_Requests/GmlLatLonList.xml",
"requestMap": {
"requestedTime": "2019-06-22T23:59:59"
},
"responseMap": {
"gml:boundedBy": {
"gml:coordinates": ""
},
"gml:featureMember": {
"gml:coordinates": "",
"app:validTime": "",
"app:maximumTemperature": ""
}
}
}' \
-H 'Content-Type: application/json' \
https://gfv1670v1c.execute-api.us-east-1.amazonaws.com/release | jq