From 5458f291bbb7fce9a13b66d91bc9f9b2cf8d5eaa Mon Sep 17 00:00:00 2001 From: Romain Reuillon Date: Sun, 1 Jun 2014 21:18:52 +0200 Subject: [PATCH] Fix #253. --- cli/src/main/scala/scalaxb/compiler/wsdl11/GenSource.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main/scala/scalaxb/compiler/wsdl11/GenSource.scala b/cli/src/main/scala/scalaxb/compiler/wsdl11/GenSource.scala index 403da0da2..35fdeebf3 100644 --- a/cli/src/main/scala/scalaxb/compiler/wsdl11/GenSource.scala +++ b/cli/src/main/scala/scalaxb/compiler/wsdl11/GenSource.scala @@ -377,7 +377,7 @@ trait GenSource { val fromXmls = (parts map { p => val v = if (b.literal && p.element.isDefined) "(body.headOption getOrElse {body})" - else if (b.literal) """scala.xml.Elem("", "Body", scala.xml.Null, defaultScope, body.toSeq: _*)""" + else if (b.literal) """scala.xml.Elem(null, "Body", scala.xml.Null, defaultScope, body.toSeq: _*)""" else if (!soap12) """(scalaxb.Helper.resolveSoap11Refs(body.head) \ "%s").head""" format (p.name.get) else """(body.head \ "%s").head""" format (p.name.get)