wsdl generates case classes in default package #117

Closed
eed3si9n opened this Issue Nov 13, 2011 · 0 comments

Comments

Projects
None yet
1 participant
@eed3si9n
Owner

eed3si9n commented Nov 13, 2011

originally reported by @hedefalk in google group and by @OlegYch in another topic

steps

  1. compile a wsdl with target namespace set to "http://tempuri.org/" and has an embedded xsd with target namespace set to "http://schemas.datacontract.org/Entities" using the following package name options:
packageName in scalaxb in Compile := "generated"

packageNames in scalaxb in Compile := Map(uri("http://schemas.datacontract.org/Entities") -> "entities")

problem

The case classes are generated under generated package:

// Generated by <a href="http://scalaxb.org/">scalaxb</a>.
package generated


case class ComplexEntity(test: entities.EntityType)

trait EntityType

object EntityType {
  def fromString(value: String): EntityType = value match {
    case "Account" => Account

  }
}

case object Account extends EntityType { override def toString = "Account" }

expectation

The case classes should be generated under entities package.

// Generated by <a href="http://scalaxb.org/">scalaxb</a>.
package entities


case class ComplexEntity(test: EntityType)

trait EntityType

object EntityType {
  def fromString(value: String): EntityType = value match {
    case "Account" => Account

  }
}

case object Account extends EntityType { override def toString = "Account" }

note

see https://github.com/eed3si9n/scalaxb-sample/tree/packagename/packagename

@eed3si9n eed3si9n closed this in 34fe8cc Nov 13, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment