我需要在此Grails Spring Bean的XSD列表中添加多个XSD:
springws {
wsdl {
Holiday {
wsdlName= 'Holiday-v2'
xsds= '/WEB-INF/Holiday.xsd'
portTypeName = 'HolidayPort'
serviceName = 'HolidayService'
locationUri = grails.serverURL + '/services/hr/v2/Holiday'
targetNamespace = 'http://www.myveryimportantcompany.com/hr/v2/definitions'
}
}
}
所以我想将多个值传递给xsds ...如何在Groovy / Grails中表示这一点?
谢谢
最佳答案
我希望您指的是springws插件。您可以使用多个架构,如下所示:
springws {
wsdl {
Holiday {
wsdlName= 'Holiday-v2'
xsds= '''/WEB-INF/Holiday.xsd,
/WEB-INF/Example1.xsd,
/WEB-INF/Example2.xsd'''
portTypeName = 'HolidayPort'
serviceName = 'HolidayService'
locationUri = grails.serverURL + '/services/hr/v2/Holiday'
targetNamespace = 'http://www.myveryimportantcompany.com/hr/v2/definitions'
}
}
}
您可以参考this sample project了解有关springws插件用法的更多详细信息。