|
Scala example source code file (t0486.scala)
The Scala t0486.scala source codeobject Test extends App { import scala.xml._ def wsdlTemplate1(serviceName: String): Node = <wsdl:definitions name={serviceName} xmlns:tns = { "target1" } > </wsdl:definitions>; def wsdlTemplate2(serviceName: String, targetNamespace: String): Node = <wsdl:definitions name={serviceName} xmlns:tns = { targetNamespace } > </wsdl:definitions>; def wsdlTemplate3(serviceName: String): Node = <wsdl:definitions name={serviceName} xmlns:tns = { Text("target3") } > </wsdl:definitions>; def wsdlTemplate4(serviceName: String, targetNamespace: () => String): Node = <wsdl:definitions name={serviceName} xmlns:tns = { targetNamespace() } > </wsdl:definitions>; println(wsdlTemplate1("service1")) println(wsdlTemplate2("service2", "target2")) println(wsdlTemplate3("service3")) println(wsdlTemplate4("service4", () => "target4")) } Other Scala examples (source code examples)Here is a short list of links related to this Scala t0486.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.