Skip to content

Commit 1434921

Browse files
authored
Merge pull request #595 from fthomas/topic/transitive-self-types
2 parents 763c98a + faedd1b commit 1434921

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cli/src/main/resources/soap11_async.scala.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ trait Soap11ClientsAsync {
4444
(action map { x => "SOAPAction" -> """"%s"""".format(x)})
4545

4646
val ftr: Future[String] = httpClient.request(r map {_.toString} getOrElse {""}, address, headers.toMap)
47-
ftr map { s: String =>
47+
ftr map { (s: String) =>
4848
try {
4949
val response = scala.xml.XML.loadString(s)
5050
scalaxb.fromXML[Envelope](response)

cli/src/main/resources/soap12_async.scala.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ trait SoapClientsAsync {
4444
(action map {uri => """; action="%s"""".format(uri.toASCIIString)} getOrElse {""})
4545
val headers = Map[String, String]("Content-Type" -> contentType)
4646
val ftr: Future[String] = httpClient.request(r map {_.toString} getOrElse {""}, address, headers)
47-
ftr map { s: String =>
47+
ftr map { (s: String) =>
4848
try {
4949
val response = scala.xml.XML.loadString(s)
5050
scalaxb.fromXML[Envelope](response)

cli/src/main/scala/scalaxb/compiler/wsdl11/GenSource.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ trait GenSource {
9999
val operations = binding.operation map { opBinding => makeOperation(opBinding, interfaceType, soapBindingStyle, false) }
100100
val bindingOps = binding.operation map { opBinding => makeSoapOpBinding(opBinding, interfaceType, soapBindingStyle, false) }
101101
val importFutureString = if (config.async) "import scala.concurrent.{ Future, ExecutionContext }" + NL else ""
102-
val clientTrait = if (config.async) "scalaxb.Soap11ClientsAsync" else "scalaxb.Soap11Clients"
102+
val selfType = if (config.async) "scalaxb.Soap11ClientsAsync with scalaxb.HttpClientsAsync" else "scalaxb.Soap11Clients with scalaxb.HttpClients"
103103

104104
val interfaceTrait = <source>
105105
{importFutureString}
@@ -112,7 +112,7 @@ trait {interfaceTypeName} {{
112112
</source>
113113

114114
val bindingTrait = <source>
115-
trait {name}s {{ this: {clientTrait} =>
115+
trait {name}s {{ this: {selfType} =>
116116
lazy val targetNamespace: Option[String] = { xsdgenerator.quote(targetNamespace) }
117117
lazy val service: {interfaceTypeFQN} = new {name} {{}}
118118
{addressString}
@@ -147,7 +147,7 @@ trait {interfaceTypeName} {{
147147
val operations = binding.operation map { opBinding => makeOperation(opBinding, interfaceType, soapBindingStyle, true) }
148148
val bindingOps = binding.operation map { opBinding => makeSoapOpBinding(opBinding, interfaceType, soapBindingStyle, true) }
149149
val importFutureString = if (config.async) "import scala.concurrent.{ Future, ExecutionContext }" + NL else ""
150-
val clientTrait = if (config.async) "scalaxb.SoapClientsAsync" else "scalaxb.SoapClients"
150+
val selfType = if (config.async) "scalaxb.SoapClientsAsync with scalaxb.HttpClientsAsync" else "scalaxb.SoapClients with scalaxb.HttpClients"
151151

152152
val interfaceTrait = <source>
153153
{importFutureString}
@@ -160,7 +160,7 @@ trait {interfaceTypeName} {{
160160
</source>
161161

162162
val bindingTrait = <source>
163-
trait {name}s {{ this: {clientTrait} =>
163+
trait {name}s {{ this: {selfType} =>
164164
lazy val targetNamespace: Option[String] = { xsdgenerator.quote(targetNamespace) }
165165
lazy val service: {interfaceTypeFQN} = new {name} {{}}
166166
{addressString}

0 commit comments

Comments
 (0)