Questions tagged [scalaxb]

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.

34 questions
1
vote
1 answer

scalaXB Async Dispatcher java.lang.IllegalStateException: failed to create a child event loop

I am using ScalaXB to make a call to a SOAP Web Service. I generated the code against WSDL using the following command I am making a call to the web service in a loop. I notice that the code runs fine for sometime but then starts throwing the…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
1
vote
1 answer

What is the best way to support multiple packages in scalaxb in a maven project?

In the maven-jaxb2-plugin, it is possible to support multiple generated packages in the same maven project since configuration is a child of execution in the plugin's configuration schema, but this does not seem to be the case for…
bbarker
  • 11,636
  • 9
  • 38
  • 62
1
vote
1 answer

Errors with using Scalaxb for code generation

I had to fiddle with a WSDL document for one of the implementations and I came across Scalaxb! I'm now trying to generate some scala classes from the WSDL file that I have and as expected I'm hitting into some issues: Here is a snippet of the WSDL…
joesan
  • 13,963
  • 27
  • 95
  • 232
1
vote
1 answer

Scalaxb reads from XML, invokes "label", receives UnsupportedOperationException - why?

I'm using scalaxb to convert an instance of XML into another object as follows: val x = xml.XML.load(inputStream) println(x) val ed = scalaxb.fromXML[entityDescriptor.scalaxb.EntityDescriptorType](x) println(ed) When it invokes fromXML, I receive…
drew
  • 2,949
  • 3
  • 25
  • 27
1
vote
1 answer

scalaxb and multiple groups

Using scalaxb 1.1.2 (http://scalaxb.org) on MusicXML (http://www.musicxml.com/for-developers/), I got the following snippet:
choeger
  • 3,562
  • 20
  • 33
1
vote
1 answer

combining scalaxb with scalacheck

I wonder how I could make use of scalacheck on types generated by scalaxb stemming from complex xsds like this one: http://wiki.xmldation.com/@api/deki/files/379/=pain.001.001.03.xsd The actual documents resemble payments and I want to restrict the…
Bastl
  • 2,926
  • 5
  • 27
  • 48
1
vote
1 answer

Simple ScalaXB example causes NoSuchMethodError in Dispatch

I am new to Scala and I was trying out an example with ScalaXB. I am using IntelliJ IDEA and the latest Scala version 2.10.1. ScalaXB uses Dispatch so I added that (version 0.9.5) as a dependency to the project. I also had to add as a dependency…
Teodor Kostov
  • 313
  • 1
  • 11
0
votes
1 answer

Scala: How to remove a duplicate attribute?

In scalaxb I have an element with duplicates: xsi:type="ObjectEventType" xsi:type="ObjectEventType" When duplicates exist how do I traverse the tree and transform to a new tree removing the duplicates?
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
0
votes
1 answer

How to generate case class with annotation using ScalaXB

I am using the ScalaXB plugin to convert XSD files to Scala case classes and it is working fine but is there any way to add javax.xml.bind.annotation with it? The reason I need is to marshal/unmarshal XML to generated classes and I am using JAXB but…
Prabhat Kashyap
  • 139
  • 2
  • 10
0
votes
0 answers

scalaxb.toXML and XML character reference

I use scalaxb.toXML to parse an object to xml and send it using soap. When I have XML character reference in some string property, scalaxb.toXML encodes even the XML character. How to avoid the encode of XML characters? Or escape it? My string:…
0
votes
1 answer

How to create Monocle lenses with sequences?

I am trying to create a Monocle lens with nested case classes and sequences. import monocle.macros.GenLens import monocle.function.Each.each case class A(bs: Seq[B]) case class B(c: Int) val bs = GenLens[A](_.bs) val c = GenLens[B](_.c) val cs =…
pgrandjean
  • 676
  • 1
  • 9
  • 19
0
votes
1 answer

Scalaxb ignore unknown fields

When your server have added new fields for response your client will fail if we don't let scalaxb know to ignore unknown fields its like @JsonIgnore in jackson.
frostcs
  • 353
  • 5
  • 10
0
votes
1 answer

Extracting schema from XSD File in scala: scalaxb

I've a XSD file along with the XML, the schema to which I'm not aware of. You could say that XSD is the schema for the XML present but it's somewhat not very understanding to me how to proceed. During my search I stumbled into scalaxb package…
knowone
  • 840
  • 2
  • 16
  • 37
0
votes
1 answer

Using custom XML Serialization with CXF JAX-WS

I have used scalaxb to generate Scala friendly classes from my xsd and would like to use these classes in the server-side implementation of my JAX-WS (SOAP) WebService. I however, do not know how I can tell CXF to use scalaxb for marshalling as…
Damian
  • 2,709
  • 2
  • 29
  • 40
0
votes
1 answer

scalaxb fails when an element and an attribute at the same level having the same name

I am trying to use the sbt-scalaxb to generate bindings for the FixRepository.xsd and it does not like the SUBJ. As a last resort, of cause, I can to slightly change the schema, but is there maybe a way to tune the sbt-scalaxb to understand the…
bobah
  • 18,364
  • 2
  • 37
  • 70