Skip to content

Instantly share code, notes, and snippets.

@jagedn
Created November 29, 2016 08:34
Show Gist options
  • Save jagedn/df5b7d962fb4907e14e134e3da029398 to your computer and use it in GitHub Desktop.
Save jagedn/df5b7d962fb4907e14e134e3da029398 to your computer and use it in GitHub Desktop.
consumir un soap con Grails Framework
def client = new SOAPClient('http://www.holidaywebservice.com/Holidays/US/Dates/USHolidayDates.asmx')
def response = client.send(SOAPAction:'http://www.27seconds.com/Holidays/US/Dates/GetMothersDay') {
body {
GetMothersDay('xmlns':'http://www.27seconds.com/Holidays/US/Dates/') {
year(2011)
}
}
}
response.GetMothersDayResponse.GetMothersDayResult.text()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment