soapless

command module
v0.0.0-...-19ae1ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

README

soapless (alpha)

Build Status Coverage Status Report Card

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL