title: Play Soap Client
body: <p>I am reading this article</p>
  
  <p><a href="https://playframework.github.io/play-soap/SbtWsdl.html" rel="nofollow noreferrer">https://playframework.github.io/play-soap/SbtWsdl.html</a></p>
  
  <p>and based on this. I wrote the following build.sbt file</p>
  
  <pre><code>name := "PlaySOAPClient"
  version := "1.0"
  scalaVersion := "2.11.8"
  libraryDependencies ++= Seq(
     "com.typesafe.play" % "play-soap-client_2.11" % "1.1.3"
  )
  
  WsdlKeys.packageName := Some("com.foo")
  WsdlKeys.wsdlTasks in Compile := Seq(
     WsdlKeys.WsdlTask((sourceDirectory.value / "main" / "wsdl" / "foo.wsdl").toURI.toURL)
  )
  </code></pre>
  
  <p>and plugins.sbt</p>
  
  <pre><code>resolvers += Resolver.url("play-sbt-plugins", url("https://dl.bintray.com/playframework/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)
  
  addSbtPlugin("com.typesafe.sbt" % "sbt-play-soap" % "1.1.3")
  </code></pre>
  
  <p>When I do <code>sbt compile</code> the plugin does generate some code. but that code does not compile</p>
  
  <pre><code>Error:scalac: missing or invalid dependency detected while loading class file 'PlaySoapClient.class'.
  Could not access type Configuration in value play.api,
  because it (or its dependencies) are missing. Check your build definition for
  missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
  A full rebuild may help if 'PlaySoapClient.class' was compiled against an incompatible version of play.api.
  Warning:scalac: Class javax.inject.Singleton not found - continuing with a stub.
  /Users/User/IdeaProjects/PlaySOAPClient/target/scala-2.11/wsdl/main/sources/com/foo/webservices/FooWebService.scala
  Error:(13, 8) object inject is not a member of package javax
  @javax.inject.Singleton
  Error:(14, 107) object api is not a member of package play
  class FooWebService @javax.inject.Inject() (apacheCxfBus: play.soap.ApacheCxfBus, configuration: play.api.Configuration) extends play.soap.PlaySoapClient(apacheCxfBus, configuration) {
  Error:(14, 32) object inject is not a member of package javax
  class FooWebService @javax.inject.Inject() (apacheCxfBus: play.soap.ApacheCxfBus, configuration: play.api.Configuration) extends play.soap.PlaySoapClient(apacheCxfBus, configuration) {
  </code></pre>
  
  <p>Does anyone have an idea of what dependencies are missing. Note that this is a client side application only using this library to make a soap call. I don't want any server side dependencies of play framework.</p>
  
  <p>My hope is that I will be able to use the play-soap as a standalone library in my console application to make soap calls.</p>