SBT
Example using play-soap-plugin
with sbt-cxf plugin
Add dependency and plugin into your project in project/plugins.sbt
:
libraryDependencies ++= Seq("org.playframework" % "play-soap-plugin" % "2.0.0")
addSbtPlugin("io.paymenthighway.sbt" % "sbt-cxf" % "1.7")
Add the plugin configuration to the build.sbt
file. Additional arguments needed to generate java classes for our web-service WSDLs should be added as parameters to the cxfWSDLs
setting:
enablePlugins(CxfPlugin)
val CxfVersion = "4.0.8"
CXF / version := CxfVersion
cxfWSDLs := Seq(
Wsdl(
"HelloWorld",
(Compile / resourceDirectory).value / "helloWorld.wsdl",
Seq("-fe", "play", "-xjc-Xplay:lang scala", "-xjc-Xplay:target play")
)
)