Grails soap webservice wslite没有这样的属性异常

时间:2014-02-13 01:22:31

标签: web-services grails soap groovy

我想使用名为wslite的插件在Grails中调用soap服务。

我只是从官方文档中复制样本。代码是:

withSoap(serviceURL: 'http://www.holidaywebservice.com/Holidays/US/Dates/USHolidayDates.asmx') {
   def response = send(SOAPAction: 'http://www.27seconds.com/Holidays/US/Dates/GetMothersDay') {
      body {
         GetMothersDay(xmlns: 'http://www.27seconds.com/Holidays/US/Dates/') {
            year(2011)
         }
      }
   }
   println response.GetMothersDayResponse.GetMothersDayResult.text()
}

但是我得到了例外:

No such property: GetMothersDay for class:xxxx

0 个答案:

没有答案