@@ -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