scalaxb is an XML data-binding tool for Scala that supports W3C XML Schema (xsd) and Web Services Description Language (wsdl) as the input file.
Questions tagged [scalaxb]
34 questions
7
votes
1 answer
Change output directory of sbt
I want to change my output directory for some generated files, in this case generated objects from an XSD-Schema.
Here is part of my Build file.
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA,
settings =…
user425367
3
votes
2 answers
scalaxb generated code causes stack overflow during compilation
I'm using scalaxb to generate Scala code from an XSD. (In particular I am using the maven scalaxb plugin.) The code generation phase runs without a hitch, and eyeballing them, the generated scala files look good. But when I try to compile I am…

Jim
- 556
- 4
- 12
3
votes
1 answer
Configure Scalaxb SBT Plugin's Generated Source Code Location
I've included scalaxb in my project using the sbt-scalaxb plugin. Everything is working great, but I'm not entirely happy with the default location where the source files are being placed. Currently the files are placed in…

Snowy Coder Girl
- 5,408
- 10
- 41
- 72
3
votes
0 answers
Creating Dataframe from XML parsed by scalaxb
I can successfully parse XML data dropped into a directory by using the Spark streaming fileStream method, and I can write the resulting RDDs out to a text file just fine:
val fStream = {
ssc.fileStream[LongWritable, Text, XmlInputFormat](
…

Chris Matta
- 3,263
- 3
- 35
- 48
3
votes
2 answers
Scala future app terminates before complete
Just trying to get my first futures use up and running and doing a test similar to an example outlined in the Akka in Action MEAP book. I want to call a web service and return the result in a future. I am using scalaxb to access the web service. I…

user79074
- 4,937
- 5
- 29
- 57
2
votes
2 answers
scalaxb and xsd:choice
Using http://scalaxb.org/
val internalAddrress =…

David Portabella
- 12,390
- 27
- 101
- 182
2
votes
0 answers
scalaxb error: Method reads's code too large
I'm using scalaxb with scalaxb-sbt to generate the hl7 FHIR specification classes from the provided XSD files.
I get the following errors:
[error] Could not write class hl7/org/fhir/XMLProtocol$DefaultHl7orgfhir_BackboneElementableFormat because it…

Daniel Severo
- 1,768
- 2
- 15
- 22
2
votes
0 answers
How to use method scalaxb.toXML(...)
project is using sbt and this project is using scalaxb-tool. I have searched with Google and from site http://scalaxb.org, but couldn't find answer. Where can I find documentation for a method 'toXML'?

m3lter
- 21
- 2
2
votes
1 answer
Playframework 2.4 - How to include scalaxb
build.sbt code:
I have copied the code from http://scalaxb.org/sbt-scalaxb
name := """DealerNext"""
version := "1.0-SNAPSHOT"
import ScalaxbKeys._
lazy val commonSettings = Seq(
organization := "com.dn",
scalaVersion := "2.11.5"
)
lazy…

Kishore Relangi
- 1,928
- 16
- 18
2
votes
1 answer
Stubbing SOAP requests in Scala
I use scalaxb to generate models and client part of the SOAP interface. For testing I use Betamax, which can also be used in Scala. However, scalaxb uses Netty as a transport, which ignores proxy settings set up by Betamax. How would you cope with…

mirelon
- 4,896
- 6
- 40
- 70
2
votes
1 answer
scalaxb: ConnectException: Worker has already been shutdown
After updating my Scala SOAP client code to the most recent scalaxb (1.2.1) and switching to Features (instead of Eithers), I'm getting a ConnectException: Worker has already been shutdown when making a simple SOAP request:
val service = (new…

alboko
- 488
- 5
- 15
2
votes
2 answers
Implement a SOAP webservice in scala
What is the best library/framework to implement a SOAP webservice in scala?
an example of using scalaxb to implement a SOAP webservice?
Please, no heavy frameworks such as lift.

David Portabella
- 12,390
- 27
- 101
- 182
2
votes
1 answer
How to convert ant build script to sbt?
I'd like to convert the html5boilerplate build script from ant to sbt. I've spent a few minutes with with scalaxb, but with no luck so far. Doesn't seem to be an xsd for ant build scripts.
Is there a better way to convert an XML build script to…

bgibson
- 17,379
- 8
- 29
- 45
1
vote
1 answer
How to use Scalaxb Async Client
In my current project, I have to implement a client to call a SOAP service. I chose to use ScalaXB in order to generate the client and its model from WSDL files. I managed to compile the project and generate the model but I am stuck in making HTTP…

pik4
- 1,283
- 3
- 21
- 56
1
vote
1 answer
scalaxb generate XML element with attributes
scalaxb has generated the following case class definition based on my XSD:
case class Identifier(
value: String,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map()) {
lazy val typeValue = attributes("@type").as[String]
}
I'm…

Naren
- 21
- 3